Hi all,
I’m trying to achieve this..
createNode transform -n "myCurve";
createNode nurbsCurve -n "myCurveShape" -p "myCurve";
setAttr "myCurveShape.cached" -type "nurbsCurve"
3 2 no no 3
7 -2 -1 0 1 2 3 4
5
1.0 0.0 0.0
1.0 0.0 1.0
0.0 0.0 1.0
-1.0 0.0 1.0
-1.0 0.0 -1.0
;
..using API (any version, Maya 2015+)..
from maya.api import OpenMaya as om
mfn = om.MFnDagNode()
parent = mfn.create("transform", "myCurve")
shape = mfn.create("nurbsCurve", "myCurveShape", parent=parent)
attr = mfn.findPlug("cached", False)
attr.set...(?)
Does anyone know how to set this attribute?
Best,
Marcus
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOD_%2Bw7CEsc%2B2R7KQ%3D4%3D3Qt%2BzhyXiPo_atgDwqTCHa-HxA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.