Borgus
06-06-2007, 10:46 AM
hello! i want to modify the selected edge(s) when the command is running but how can i querry the selected components of a poly object?
MSelectionList mySelList;
MGlobal::getActiveSelectionList(mySelList);
MDagPath myDagPath;
MItSelectionList iterateOverSelection(mySelList, MFn::kEdgeComponent);
for( ;!iterateOverSelection.isDone(); iterateOverSelection.next()) {
iterateOverSelection.getDagPath(myDagPath); //i only get the path of the object, but not to the component :(
//here i want to run through my selected edges, but how???
or is there a general brainbug??
please help me! :)
MSelectionList mySelList;
MGlobal::getActiveSelectionList(mySelList);
MDagPath myDagPath;
MItSelectionList iterateOverSelection(mySelList, MFn::kEdgeComponent);
for( ;!iterateOverSelection.isDone(); iterateOverSelection.next()) {
iterateOverSelection.getDagPath(myDagPath); //i only get the path of the object, but not to the component :(
//here i want to run through my selected edges, but how???
or is there a general brainbug??
please help me! :)
