[SDK] named selection set


#1

hello,

I want to get the named vertex selection set from objects.
When I use

IMeshSelectData* msd = GetMeshSelectDataInterface(object);
GenericNamedSelSetList &ss = msd->GetNamedVertSelList();

I can get selection set from Editable Mesh or Editable Poly Object.
But I can’t get the list from objects which having EditMesh / Poly Modifier. Result of “msd” is NULL.

How should I get the selection set list from those modifiers objects?


#2

There is an example of this in the SDK.

maxscript\mxsagni\common_funcs.cpp
get_IMeshSelData_for_mod()


#3

Thank you very much! I get information from modifier with it.!!
But I have one more question.

That method finding only in modifier.
So, in the situation which “Editable Mesh + Bend modifier”, How do I get selection set from Editable mesh?
GetMeshSelectDataInterface(object);
can’t get imformation. But
get_IMeshSelData_for_mod()
is only for modifier.

thanks


#4

what is the difference with what you tell in the original post?
all is the same simple - just ask GetMeshSelectDataInterface(obj) where obj is a BaseObject


#5

Sorry, I forgot to find BaseObject.
Now, I got everything. thank you very much!