I everyone,

I found an error on get attribute "rotatePivot" with api.

It's possible to get this attribute with MFnDependencyNode like this

m_sl = OpenMaya.MSelectionList()
m_sl.add("null1")

mo = OpenMaya.MObject()
m_sl.getDependNode(0, mo)

mfn = OpenMaya.MFnDependencyNode(mo)
mp = mfn.findPlug("rotatePivot")

But is not possible to get this attribute with MSelectionList

m_sl = OpenMaya.MSelectionList()
m_sl.add("null1.rotatePivot")

mp = OpenMaya.MPlug()
m_sl.getPlug(0, mp)

But it's possible to get children like this

m_sl = OpenMaya.MSelectionList()
m_sl.add("null1.rotatePivotX")

mp = OpenMaya.MPlug()
m_sl.getPlug(0, mp)

It's normal ?

-- 
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/9aae0c9a-9897-4d5d-87bb-5fbc23e9a3ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to