Hi, if I want to select both nurbsCurves and nurbsSurfaces from the active list, I can do :
CODE
MSelectionList selection;
MGlobal::getActiveSelectionList( selection );
MItSelectionList iter( selection);
iter.setFilter(MFn::kNurbsSurface);
for (iter.reset(); !iter.isDone(); iter.next() )
do something
iter.setFilter(MFn::kNurbsCurve);
for (iter.reset(); !iter.isDone(); iter.next() )
do the same things
you can see I have to use 2 loops to do the same things and it makes my code look horrible especially when the code is long. Is there a way to select both nurbsCurves and nurbsSurfaces at the same time? thanks!