Last active
December 25, 2019 04:40
-
-
Save redglasses67/5a467df2adca4f2d50af7b3b4cba078c to your computer and use it in GitHub Desktop.
ノードをリネームする
This file contains hidden or 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
| import maya.api.OpenMaya as om2 | |
| dgModifier = om2.MDGModifier() | |
| dgModifier.renameNode(mObject, "hogehoge") # 第1引数は MObject で、第2引数に 変更したい名前 です | |
| dgModifier.doIt() # この doIt() を書き忘れると実行されないのでご注意を |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment