I use c++ to build maya command and situation the same but in some cases it
different
MObject dependNode;
MItSelectionList iter( listObjects, MFn::kInvalid, &stat );
for ( ; !iter.isDone(); iter.next() )
{
stat = iter.getDependNode( dependNode ); CHK
MFnDependencyNode fn(dependNode);
for(int j = 0; j < totalAttrs; ++j)
{
MObject attrObj = fn.attribute(j, &stat); CHK
MPlug plug = fn.findPlug(attrObj, &stat ); CHK
std::cerr << "ATTR: " << j << " "
<< plug.partialName(includeNodeName, useAlias,
useFullAttributePath, useLongNames, &stat) ;
<< std::endl;
...
ATTR: 27 blendShape1.it[0].itg[0].iti[6000].igt
ATTR: 28 blendShape1.it[-1].itg[-1].iti[-1].ipt
....
For some attribute it's works for other it not (((
--
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/cd350481-fca0-410a-8b6d-7823d45b2ba8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.