Skip to main content
Inspiring
November 17, 2023
Answered

`PF_PUI_INVISIBLE` not always applied to `PF_Param_POPUP`

  • November 17, 2023
  • 3 replies
  • 559 views

In my PremierPro plugin, I have one popup that controls the visibility of a list of `PF_Param_POPUP`.

 

So I set one to visible and all the other to invisible. This works most of the time but sometime, one does not get hidden !!!

 

I have tried changing the visibility in PF_Cmd_USER_CHANGED_PARAM when the controling popup change and them I moved the update UI logic in PF_Cmd_UPDATE_PARAMS_UI. But I get the same issue.

 

My update code looks like this :

static PF_Err UpdateParamsUI(PF_InData *in_data,
                             PF_OutData *out_data,
                             PF_ParamDef *params[])
{
    PF_Err err = PF_Err_NONE;
    AEGP_SuiteHandler suites(in_data->pica_basicP);
    PF_ParamDef param;
    A_long num = in_data->num_params;
    for (int i = 0; i < num; i++)
    {
        bool bSecret = computeSecret(i);
        AEFX_CLR_STRUCT(param);
        param = *params[i];
        if (bSecret)
            param.ui_flags |= PF_PUI_INVISIBLE;
        else
            param.ui_flags &= ~PF_PUI_INVISIBLE;

        ERR(suites.ParamUtilsSuite3()->PF_UpdateParamUI(in_data->effect_ref,
                                                        i, &param));
}

 

If I test the param.ui_flags that is still (incorrectly) visible, I see that the PF_UI_VISIBLE bit is correctly set but the UI does not honor this invisible flag.

 

Almost all my UI elements has the PF_ParamFlag_SUPERVISE set.

 

Thanks for your help

 

This topic has been closed for replies.
Correct answer r2d3_

So, it seems related to using the mac remotely via macOS Screen Sharing.

 

When manipulating the popup locally or via keyboard (locally or remotely), I have no problems. So this is probably due to the way Premiere Pro is handling mouse events.

3 replies

Bruce Bullis
Community Manager
Community Manager
November 18, 2023

> sometime, one does not get hidden !!!

 

Figuring out "sometime" will be the key.

 

Can you reliably reproduce "sometime" behavior?

r2d3_Author
Inspiring
November 18, 2023

Unfortunately not. It happens one out of 10.

First I thought that was a out of screen popup causing the issue but not.

 

if I read back the ui_flags of all the control they are OK but the display does not match the ui_flags

Participant
November 17, 2023
Help
r2d3_Author
Inspiring
November 17, 2023

If I use the flag PF_PUI_DISABLED, I have the same issue and we could see that the popup label is disabled but the popup itselt is still enable