
Pci = cmds.createNode("pointOnCurveInfo", n = name )Ĭmds.connectAttr(crv + '.worldSpace', pci + '.inputCurve')Ĭmds.connectAttr( pci + '.position', s + '. Pos = cmds.xform(s ,q = 1, ws = 1, t = 1) SelectionList = OpenMaya.MSelectionList() Point = curveFn.closestPoint(point,paramPtr,0.001,) IsOnCurve = curveFn.isPointOnCurve(point)ĬurveFn.getParamAtPoint(point, paramPtr,0.001, ) Point = OpenMaya.MPoint(pnt,pnt,pnt)ĬurveFn = OpenMaya.MFnNurbsCurve(getDagPath(crv)) cmds.duplicate( 'group1sphere1', icTrue ) cmds.move( 0, 0, 0 ) tAttr( 'makeNurbSphere1.radius', 2 ) Duplicate selected objects along with their upstream nodes and connections. The second error is raised because the function getUParam is not defined at that moment, so you must define this getUParam function before using it, like this: from maya import cmds, OpenMaya Note that changing the radius for the makeNurbSphere for the sphere1 affects the duplicated sphere. You can rate examples to help us improve the quality of examples. These are the top rated real world Python examples of mayacmds.progressWindow extracted from open source projects. To: pci = cmds.createNode("pointOnCurveInfo", n = name ) Python progressWindow - 30 examples found. So, to solve the syntax error just change: pci = cmds.createNode(""pointOnCurveInfo", n = name ) (I selected 'widget 1' first), and I want the rotate XYZ values from widget 1 to be multiplied by '2' and then plugged into 'widget 2''s rotate XYZ values. Now I say I have 'widget 1' and 'widget 2' selected. String literals in Python are formed using only " or ' for one line strings. Like the example above, run this in the Maya Python script editor to enable it.
