okay, I think I'm getting this...
#==========================
import maya.OpenMaya as om
mSel = om.MSelectionList()
om.MGlobal.getActiveSelectionList( mSel )
mDag = om.MDagPath()
mComp = om.MObject()
selIter = om.MItSelectionList( mSel, om.MFn.kComponent )
while not selIter.isDone():
selIter.getDagPath( mDag, mComp )
print mDag.fullPathName(), mComp.apiTypeStr()
selIter.next()
#==========================
I think that's the correct way to use MItSelectionList like Justin was
mentioning, right?
Then I can just use switch/case like in the example you provided. Awesome!
Kev
--
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/c4fedc0a-c40d-463e-a2f5-e1daec39c1f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.