Skip to main content
Inspiring
August 22, 2023
Answered

PF_Cmd_SEQUENCE_SETUP called multiple times on the same plugin instance

  • August 22, 2023
  • 3 replies
  • 780 views

Hello,

 

I am developing a PremierePro plugin and I would like to allocate an heavy structure (loading files, ...) ONCE per plugin instance.

 

I was thinking to use PF_Cmd_SEQUENCE_SETUP, but this is called multiple times for the same plugin instance. Even when I change one parameter in the UI, I got succesive calls to 

PF_Cmd_SEQUENCE_SETUP/PF_Cmd_SEQUENCE_FLATTEN

PF_Cmd_SEQUENCE_SETUP/PF_Cmd_SEQUENCE_SETDOWN

So the in_data->sequence_data keeps being allocated/filled/destroyed. 

 

Thanks in advance

 

David

 

 

 

This topic has been closed for replies.
Correct answer reimundd1593001

Did you try setting the PF_OutFlag2_PPRO_DO_NOT_CLONE_SEQUENCE_DATA_FOR_RENDER in out_flags2 in in you GlobalSetup selector?

3 replies

reimundd1593001Correct answer
Inspiring
August 22, 2023

Did you try setting the PF_OutFlag2_PPRO_DO_NOT_CLONE_SEQUENCE_DATA_FOR_RENDER in out_flags2 in in you GlobalSetup selector?

r2d3_Author
Inspiring
November 6, 2023

Thanks @reimundd1593001 this is exactly what I needed.

Bruce Bullis
Legend
August 22, 2023

>...ONCE per plugin instance.

PF_Cmd_GLOBAL_SETUP is the right scope for such allocation. 


r2d3_Author
Inspiring
August 22, 2023

Sorry I am an not native English. But plugin "instance", I mean the specific instance (with associated parameters) used for a specific sequence. 

If I have 2 sequences A and B with paramA and paramB, I will have pluginInstanceA (using paramA) and pluginInstanceB (using paramB)

Bruce Bullis
Legend
August 22, 2023

Ahhh...then PF_Cmd_SEQUENCE_SETUP is the right place. 🙂

From what you've described, it seems as though you've set PF_OutFlag_SEQUENCE_DATA_NEEDS_FLATTENING, during PF_Cmd_GLOBAL_SETUP.

Is that correct?

r2d3_Author
Inspiring
August 22, 2023

This is a Video Effect plugin using AE SDK for the  moment. I am wondering if some PremierePro suite could give me a hint ?