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


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:


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


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