Hey guys and gals,
I have a question about selecting a transform node from a kLocator selection in the Maya API (C++).
Here is some pseudo code for what I am doing:
MSelectionlist selection;
MGlobal::getActiveSelectionList(selection);
for(MItSelectionList sIter(selection, MFn::kLocator); !sIter.isDone(); sIter.next())
{
MDagPath dagPath;
MObject mLocator;
sIter.getDagPath(dagPath, mLocator);
...how to select the locators transform here?
}
I would image you would get it via MDagPath, but I am totally blanking on how to achieve this.
Thanks for reading! :):