Skip to content

Instantly share code, notes, and snippets.

@oishimilk
Created September 23, 2022 05:57
Show Gist options
  • Save oishimilk/2fab406f3a2dbae221f5e2303315e61d to your computer and use it in GitHub Desktop.
Save oishimilk/2fab406f3a2dbae221f5e2303315e61d to your computer and use it in GitHub Desktop.
表示パネル移行用スクリプト
# 受け取り側 (MMD Tools 2.5.1)
with open("/tmp/panel.txt") as f:
for name in f.readlines():
C.active_object.pose.bones[name[:-1]].bone.select = True
# 送り側 (MMD Tools 0.6.0)
with open("/tmp/panel.txt", "w") as f:
for item in C.active_object.mmd_root.display_item_frames[C.active_object.mmd_root.active_display_item_frame].items:
f.write(item.name + "\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment