PF_ADD_POPUP issues in Premiere Pro

Contributor ,
Aug 17, 2021 Aug 17, 2021

Copy link to clipboard

Copied

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)

 

TOPICS
SDK

Views

34

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Aug 17, 2021 Aug 17, 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. 

Likes

Translate

Translate
Engaged ,
Aug 17, 2021 Aug 17, 2021

Copy link to clipboard

Copied

LATEST

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. 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

Make your promotional social content with Adobe Express.

Get started quickly with free templates: