4/1/2024 0 Comments Maya python ls with name![]() Log.warning("Please only select 1 piece of Audio to use for reference") SelectedAudio=cmds.ls(sl=True, type='audio') If you pass it a node, and that node has the timecode attrs, then it caches the offset itself. If you pass this a bwav then it caches that bwav for use as the offset. : PRO_PACK : set the internal reference offset used to offset the audionode. R_bc = cmds.createNode('blendColors', name='%s_rotate_bc' % driven)Ĭmds.connectAttr('%s.rotate' % targ2, '%s.color1' % r_bc)Ĭmds.connectAttr('%s.rotate' % targ1, '%s.color2' % r_bc)Ĭmds.connectAttr(blendAttr, '%s.blender' % r_bc)Ĭmds.connectAttr('%s.output' % r_bc, '%s.rotate' % driven)ĭef _uicb_setReferenceBwavNode(self, *args): T_bc = cmds.createNode('blendColors', name='%s_translate_bc' % driven)Ĭmds.connectAttr('%s.t' % targ2, '%s.color1' % t_bc)Ĭmds.connectAttr('%s.t' % targ1, '%s.color2' % t_bc)Ĭmds.connectAttr(blendAttr, '%s.blender' % t_bc)Ĭmds.connectAttr('%s.output' % t_bc, '%s.t' % driven) Return showDialog( 'Argument Error', 'Please supply or select targ1, targ2 and driven nodes' ) If not targ1 and not targ2 and not driven: If a blendAttr is supplied, this is connected to the blender value Sets up blending of translation / rotation values from targs 1 & 2 on the driven node. Def blendAttrs(targ1=None, targ2=None, driven=None, blendAttr=None, translate=1, rotate=1):
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |