Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
732 B
4
Indexable
Never


for sr, dc, dj in zip_object:
    mc.createNode('setRange', n=sr)
    mc.connectAttr(dj + '.rotateX', sr + '.valueX')
    mc.connectAttr(dj + '.rotateX', sr + '.valueY')
    mc.connectAttr(dj + '.rotateX', sr + '.valueZ')
    mc.connectAttr(sr + '.outValueX', dc + '.translateX')
    mc.connectAttr(sr + '.outValueY', dc + '.translateY')
    mc.connectAttr(sr + '.outValueZ', dc + '.translateZ')




--->

for sr, dc, dj in zip_object:
    set_range_node = mc.createNode('setRange', n=sr)
    for axis in "XYZ":
        mc.connectAttr('{}.rotateX'.format(dj), '{}.value{}'.format(set_range_node, axis))
        mc.connectAttr('{}.outValue{}'.format(set_range_node, axis), '{}.translate{}'.format(dc, axis))