offsetCurve ( curveObj, ugn = 0, d = offsetDistance ) offset2 = mc. ![]() #select object and curve and run code import maya.cmds as mc def curveOnSurfaceFromCurve ( curveObj, offsetDistance =. connectAttr ( obj + '.uVal', pathA + '.uValue', f = 1 ) Pop-up (HUD) slider to change channel box attribute speed pathAnimation ( obj, follow = True, fm = 1, c = pathShp ) mc. duplicate ( profile, n = profile + '_copy' ) mc. ![]() group ( n = 'copies', em = 1 ) for i in range ( count ): obj = mc. listRelatives ( path, s = 1 ) profile = mc. promptDialog ( query = True, text = True )) path = mc. Check uVal attr on objects to displace along curve \n\n Number of copies spread on curve:', button =, defaultButton = 'OK', cancelButton = 'Cancel', tx = 10, dismissString = 'Cancel' ) if result = 'OK' : count = int ( mc. promptDialog ( title = 'Copy along curve', message = 'Uses motionPath to spread copies of your first object on the second object selected (a path) \n This means you can animate the curve.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |