Created
September 23, 2022 05:57
-
-
Save oishimilk/2fab406f3a2dbae221f5e2303315e61d to your computer and use it in GitHub Desktop.
表示パネル移行用スクリプト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 受け取り側 (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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 送り側 (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