(c++ API) Do you have any idea how to change selection on Poly_Select modifier?


#1

The topic tells the problem.

IMeshSelect* ms = GetMeshSelectInterface(modi) ;
IMeshSelectData* msd = GetMeshSelectDataInterface(modi);

the modifier has IMeshSelect interface, but doesn’t have IMeshSelectData … :face_with_raised_eyebrow:


#2

You need to enumerate the modifiers modcontext with

Modifier::EnumModContexts ( ModContextEnumProc * proc )

then from the modcontext sent to the proc object function…

IMeshSelectData* msd = GetMeshSelectDataInterface(mc->localData);

as the selection is local to the mesh not the modifer


#3

Oh! Of course. How could I forgot it… Thank you so much