Skip to main content
Participating Frequently
June 16, 2024
Question

A question about AE plugin development Panelator template

  • June 16, 2024
  • 1 reply
  • 360 views

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!

This topic has been closed for replies.

1 reply

Community Expert
June 16, 2024

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.

Participating Frequently
June 22, 2024

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.