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

A question about AE plugin development Panelator template

New Here ,
Jun 16, 2024 Jun 16, 2024

Copy link to clipboard

Copied

Hello, I have a question to consult, that is, I use AEGP Panelator this sample template to write a plug-in, I wrote a custom function called GetSelectedLayerNames(). This function is used to get the name of the selected layer. Because this function is used to AEGP_GetNewCollectionFromCompSelection the function, the function inside the first parameter is the ID of the plug-in. So I put the implementation of GetSelectedLayerNames() in Panelator.cpp. Then I created a custom button in PanelatorUI_Plat.cpp that, when pressed, executes GetSelectedLayerNames() in Panelator.cpp. I don't know if my above idea is correct, so I want to instantiate the Panelator object in PanelatorUI_Plat.cpp, but I find that in this example the Panelator class is declared and implemented in panelator.cpp. I can't instantiate him. So should I move the declaration of the Panelator class into panelator.h? Or is there an easier way? Hope to get your answer, thank you!

TOPICS
Error or problem , FAQ , Scripting , SDK

Views

186

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
Community Expert ,
Jun 16, 2024 Jun 16, 2024

Copy link to clipboard

Copied

1. you can pass a NULL instead of the plugin ID, if that simplifies things for you.

2. the panel class is a nice wrapper for initializing the panel and handling the window events. but by all means, you don't have to use that class.

Votes

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
New Here ,
Jun 22, 2024 Jun 22, 2024

Copy link to clipboard

Copied

LATEST

Thank you very much for your answer, but I have one more question. I want to get the keyframe value in the layer, the time of the keyframe value, and the keyframe Bezier curve. Then copy these to another layer. So what I do is I use AEGP_GetStreamNumKFs to get the number of all keyframes on that layer, and then loop through AEGP_GetKeyframeTime to get the keyframe time, Then use AEGP_GetNewKeyframeValue to get the keyframe value. Then get the keyframe interpolation type with AEGP_GetKeyframeInterpolation. But in the end I didn't know how to get the Bezier curve of the keyframe.

Votes

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