I want to get a shape/mesh object under a transform node active in Maya.
If I select and object (e.g. a poly sphere) in Maya, when calling getActiveSelectionList
method, it returns a transform node, not a shape/mesh one.
I'm getting crazy reading the API classes (MDagPath, MSelectionList, MFnDependencyNode
) and methods which would achieve that but I can't find a way to do it.
So, I want to get the info (vertex coordinates) of a selected/active poly object in Maya GUI through C++ API.