Skip to main content
Inspiring
August 17, 2021
Answered

PF_ADD_POPUP issues in Premiere Pro

  • August 17, 2021
  • 1 reply
  • 256 views

I have a plugin with a popup that functions as expected in AE. In Premiere it only displays the first option. And even though I can click on other options - the UI does not display the changed option.

 

A_char* popup0 = "Preset1|""(""-|Preset2|""(""-|Preset3|""(""-|Preset4|"
        "(""-|Preset5|""(""-|Preset6|""(""-|Preset7|""(""-|Preset8|""(""-|Preset9|""(""-|Preset10";
    PF_ADD_POPUP("Presets", 1, 19, popup0, TYPE_ID);

In. the header,

enum {
    Preset1=1,
    PADDING_1,
    Preset2,
    PADDING_2,
    Preset3,
    PADDING_3,
   Preset4,
    PADDING_4,
   Preset5,
    PADDING_5,
   Preset6,
    PADDING_6,
   Preset7,
    PADDING_7,
   Preset8,
    PADDING_8,
   Preset9,
    PADDING_9,
   Preset10,
    Num_Choices
};

 

#define FX_OUT_FLAGS (PF_OutFlag_USE_OUTPUT_EXTENT + PF_OutFlag_PIX_INDEPENDENT + PF_OutFlag_DEEP_COLOR_AWARE + PF_OutFlag_I_DO_DIALOG + PF_OutFlag_SEND_UPDATE_PARAMS_UI)

#define FX_OUT_FLAGS2 (PF_OutFlag2_PARAM_GROUP_START_COLLAPSED_FLAG + PF_OutFlag2_SUPPORTS_SMART_RENDER + PF_OutFlag2_FLOAT_COLOR_AWARE + PF_OutFlag2_DOESNT_NEED_EMPTY_PIXELS)

 

This topic has been closed for replies.
Correct answer James Whiffin

The popup macro is:

#define PF_ADD_POPUP(NAME, CHOICES, DFLT, STRING, ID) \

Looks like you've swapped the second and third params. AE is kind enough to still show all options, but the functionality doesn't work as expected. 

1 reply

James Whiffin
James WhiffinCorrect answer
Legend
August 18, 2021

The popup macro is:

#define PF_ADD_POPUP(NAME, CHOICES, DFLT, STRING, ID) \

Looks like you've swapped the second and third params. AE is kind enough to still show all options, but the functionality doesn't work as expected.