Skip to main content
Inspiring
April 4, 2024
Answered

How to "fail" a plugin ?

  • April 4, 2024
  • 2 replies
  • 534 views

Hi all,

 

I have a plugin that is checking for a valid license. Today, I return a `PF_Err` from `EffectMain` callback for the `PF_Cmd_SEQUENCE_SETUP` selector but the plugin UI still displays.

 

How do I make the plugin "fail" and don't appear in PremierePro or appear as disabled ?

 

Thanks in advance.

This topic has been closed for replies.
Correct answer JayB80

Disabled plugins don't exist in Premiere Pro.

It's either recognized as a valid plugin or it's unrecognized.
To prevent the plugin from appearing in Premiere Pro, you throw a PF_Err_INVALID_CALLBACK error during PF_Cmd_GLOBAL_SETUP

2 replies

JayB80Correct answer
Participating Frequently
April 4, 2024

Disabled plugins don't exist in Premiere Pro.

It's either recognized as a valid plugin or it's unrecognized.
To prevent the plugin from appearing in Premiere Pro, you throw a PF_Err_INVALID_CALLBACK error during PF_Cmd_GLOBAL_SETUP

Bruce Bullis
Community Manager
Community Manager
April 4, 2024

What PF_Err value did you return?

r2d3_Author
Inspiring
April 4, 2024

I have tried multiples errors from `PF_Cmd_SEQUENCE_SETUP` selector:

- `PF_Err_BAD_CALLBACK_PARAM`

- `PF_Err_INTERNAL_STRUCT_DAMAGED`

- `PF_Err_INVALID_CALLBACK`

- `PF_Err_OUT_OF_MEMORY`

 

And they all gave the same final result, UI is displayed.

 

At the moment, my plugin architecture does not allow to know the license status when in `PF_Cmd_GLOBAL_SETUP` or `PF_Cmd_PARAMS_SETUP`

Bruce Bullis
Community Manager
Community Manager
April 4, 2024

Those are all what I would have suggested. 🙂

In response to what selector, are you displaying your plugin's dialog?

Perhaps you could save yourself a "license is bad" message in PF_InData->sequence_data, and take note of that, before displaying the dialog?