On Saturday, February 4, 2017 at 6:27:01 PM UTC-8, [email protected] wrote:
> On Saturday, February 4, 2017 at 9:36:13 AM UTC-8, [email protected] wrote:
> > the only thing i dont get with this is. How do i initially store a vert 
> > selection, rather than just the transform node itself. Do i need to get the 
> > dagPath of each piece of geo as well as provide a list off all the verts i 
> > want to copy across?
> > 
> > thanks, 
> > Sam
> 
> the vertex selection is being stored in the component MObject.
> 
> calling MSelectionList.getActiveSelectionList(MDagPath, MObject) fills the 
> MObject with those components.
> 
> But you need to use a Fn set to get the Indices, in order to use them in the 
> way you want to. 
> 
> The transform is being returned in the MDagPath, however.  calling 
> extendToShape() on the dagPath, extends it to the shapeNode.
> 
> There's a mistake in my code above, that you would actually need to call 
> MFnMesh(dagNode.node()) since the constructor takes an MObject and not a 
> dagPath.


sorry, I meant MSelectionList.getDagPath(DagPath, MObject)  ;) doh!


-- 
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/678913e5-25af-45ce-b6ec-8ded9bacf41f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to