Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Is there any way to get a Unique effectId

Participant ,
May 25, 2023 May 25, 2023

Is there any way to get a unique EffectId from in_data or something that is specific to thar Effect only.

 

Title edited by Mod.

TOPICS
How to , SDK
418
Translate
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
Community Expert ,
May 25, 2023 May 25, 2023

generally speaking, you obtain one using AEGP_RegisterWithAEGP during global setup, as you only need to get it once.

however, most functions that require an AEGP_PluginID are fine with a NULL instead.

Translate
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
Participant ,
May 26, 2023 May 26, 2023

I want to save different frame data for each effect and while rendering I want to show all effects' data.
Currently I'm saving layer mapped frames data, as I get layerId from in_data using AEGP_GetEffectLayer and AEGP_GetLayerID.
I want to save effect mapped frames

Translate
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
Participant ,
May 26, 2023 May 26, 2023

Also I am saving an incrementing effectId during sequenceSetup and saving it to sequenceData, However, could not get it in the render function, I get it at all other places except Render.

Translate
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
Community Expert ,
May 26, 2023 May 26, 2023

indeed, changes in sequence data don't sync between the ui copy and the render copy of the effect, except for some very specific times. to sync, you need to set PF_OutFlag_FORCE_RERENDER during specific events, but idle_hook is not one of them...

perhaps you should use a hidden arb param instead of sequence data, as that both gets synced between the ui and render calls, is saved with the project, AND forces a re-render when changed. alas, the change is also undoable by the user, so i don't know if that plays well into your design.

Translate
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
Participant ,
May 26, 2023 May 26, 2023
LATEST

Sounds good

Translate
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