Copy link to clipboard
Copied
Hi guys, when I want to hide parameter, PF_PUI_DISABLED works as expected, it greys out param, but when I want to hide it's not doing anything. This is within UserChangedParam function:
if (which_hitP->param_index == TEST){
if (params[TEST]->u.pd.value == 1) {
params[TEST]->uu.change_flags = PF_ChangeFlag_CHANGED_VALUE;
params[POSITION]->ui_flags |= PF_PUI_INVISIBLE; //PF_PUI_DISABLED works
AEGP_SuiteHandler suites(in_data->pica_basicP);
ERR(suites.ParamUtilsSuite3()->PF_UpdateParamUI(in_data->effect_ref, POSITION, params[POSITION]));
}
}
Can someone please explain why PF_PUI_INVISIBLE is not working like PF_PUI_DISABLED, thanks!
Have something to add?