Hello,
I’m missing something fundamental about retrieving objects by their node type and I could really use some guidance.
When I instantiate an object, I’ll create the object and assign it a variable like so:
my_curve = mc.curve(name="my_curve",d=1,p=[(0,0,0),(1,1,1),(2,2,2)])
#print my_curve.getCVs(space="world") <-----my_curve is seen as a Transform, so getCVs doesn't work
curveList = pm.ls("my_curve")
print curveList[0].getCVs(space="world")
For some reason, the variable my_curve isn’t seen as a NurbsCurve node (it’s seen as a Transform), but when I use the PyMel list command, it returns an indexed object that is recognized as a NurbsCurve.
What am I missing? This would clear up a lot of my thinking about PyMel scripting.
Thank you! :):