Last active
February 9, 2021 18:56
-
-
Save madsjakobsen/71f6001292e017c12a5452683c4a20f5 to your computer and use it in GitHub Desktop.
Maya proxy attribute
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 pymel.core as pymel | |
transform1 = pymel.createNode('transform', name='fk_control') | |
transform2 = pymel.createNode('transform', name='ik_control') | |
transform3 = pymel.createNode('transform', name='blender') | |
transform3.addAttr('ikFkSwitch', keyable=True, min=0, max=1) | |
for node in transform1, transform2: | |
node.addAttr('ikFkSwitch', usedAsProxy=True, keyable=True, min=0, max=1) | |
transform3.ikFkSwitch.connect(node.ikFkSwitch) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment