Last active
September 15, 2019 02:09
-
-
Save nobolu-ootsuka-unrealengine/9f310f61606a721873dce00bae149855 to your computer and use it in GitHub Desktop.
matchRotationJointAndRig.py
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
import maya.cmds as cmds | |
# ジョイントに回転をマッチさせたいから ジョイントにカーブを拘束と書く | |
node=cmds.orientConstraint( 'joint1', 'Cube' ,maintainOffset=False) | |
# ジョイントに回転をマッチさせたら消す。 | |
cmds.delete(node) | |
# リグとしてはカーブで動かしたいから カーブにジョイントを拘束と書く | |
cmds.orientConstraint( 'Cube', 'joint1' ,maintainOffset=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment