-
Menu commands don't work properly while running extension
Hi guys I am trying to make an extension with a function that can copy and paste selected keyframes at CTI (playhead) within multiple layers
In my jxs file I decided to use app.executeCommand(id) for copy (id – 19) and paste (id 20) functions instead of doing it programmatically. Everything seems to work fine when I run the script from the JSX file ( I use a custom vscode shortcut for that). In the video you can see if I select both multiple layers with mulple proprties and single layers with properties and run JSX file, then everything works fine. But once I launch the extension and select multiple properties with keyframes on multiple layers then it doesn’t work at all, however, if I select multiple properties with keyframes within a single layer, it works fine.
copy and paste commands rely on which after-effects panel is active (with a blue box around it), within timeline, it will copy layers, keyframes, properties, and so on, while within project files it will copy solids, folders, footage, comps, etc, so my guess is that the script somehow deselects the timeline panel and stop working on the multiple layers. But I am not sure how to check it, as I don’t know if is it possible to set the after-effects panels to active (blue box around the panel) somehow the
first of all, it doesn’t work if the keyframes were selected
Sorry, there were no replies found.