I want to have possibility to list point or primitive attributes in my menu according to type user will pick. Lets say that my operator default state for attribute type is Point attrbute which I got covered by
PRM_Template(PRM_STRING, 1, &attributeParm_Name, PRMzeroDefaults, &SOP_Mantragora::pointAttribMenu);
and user switched type to Primitive. Should I update the menu with
PRM_Template::setChoiceListPtr(&SOP_Mantragora::primAttribMenu)
?
If so, where I should do this? Putting it in cook() method didn't worked.
EDIT: The same case is for groups. There is
SOP_Mantragora::groupMenu
But it lists all group types at once. And I want to have listed only those specified by user and switch between
SOP_Mantragora::pointGroupMenu
and
SOP_Mantragora::primGroupMenu
Thanks