Created
July 14, 2017 04:04
-
-
Save tomihanayu/5d7e59ad4da86df9e1d6a1f145cfa9cd 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
def togglePreserveChildPosition(): | |
if cmds.manipMoveContext("Move",q=True,preserveChildPosition=True): | |
cmds.manipMoveContext("Move",e=True,preserveChildPosition=False) | |
cmds.manipRotateContext("Rotate",e=True,preserveChildPosition=False) | |
cmds.manipScaleContext("Scale",e=True,preserveChildPosition=False) | |
else: | |
cmds.manipMoveContext("Move",e=True,preserveChildPosition=True) | |
cmds.manipRotateContext("Rotate",e=True,preserveChildPosition=True) | |
cmds.manipScaleContext("Scale",e=True,preserveChildPosition=True) | |
togglePreserveChildPosition() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment