Hey Guys,

Working on some more tools right now, using python 1.0 api to try to speed 
things up.

It's not immediately obvious to me how to deal with different component types.

So If I do something like

#==========
sel = om.MSelectionList()
om.MGlobal.getActiveSelectionList( sel )

mDag = om.MDagPath()
mComp = om.MObject()
for i in xrange( sel.length() ):
    mSel.getDagPath(i, mDag, mComp)

#===========

What sort of function set, or Iterator would I use on mComp, if mComp contains 
vertices, faces, and or edges?

I know I can do something like 

if mComp.hasFn( MFn.kMeshVertComponent )

But how do I best deal with not knowing the type of component(s) in 
mComp(MObject)?

Thanks!
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/52e9da24-18fe-43c5-8498-78cd872dd421%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to