Skip to main content
Participating Frequently
Jun 16, 2024 2:55 PM UTC
Question

A question about AE plugin development Panelator template

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 is closed to new replies. Start a new post to keep the conversation going.

2 replies

Community Expert
Jun 16, 2024 8:10 PM UTC

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.

Translate
Participating Frequently
Jun 22, 2024 2:36 PM UTC

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.

Translate