on May 31, 2020 at 9:08:15 am Last Edited By Arne Münch on May 31, 2020 at 9:12:01 am
How does it generally work to create several layers with several effects via script.
For example if I build up a rig of several Layers and Controllers and want it to be recreated (in another project) by one click via script.
Do I have to write code for all single steps to build that rig or is there another solution to copy all layers at once somehow and use that data in the script?
If you want to do it by yourself, you would have to create a variable(maybe a JSON file) with all the characteristics of the layers and effects.(names, size, position etc).
There isn't anything AE provides right now that could save your rig inside a jsx.
Thank you Andrei for your thoughts on this. It was helpful.
When you copy several layers into the clipboard, I thought there must be a way to save that data.
And then a script simply had to read that data, put it back to the clipboard and paste it.
Is that what you mean by the JSON file?
Because manually I thought you can repeat all the steps you did to build up the comp in the .jsx, and there seems no need to create a JSON, but it can be a lot especially if you are not familiar with all the commands.
Another approach would of course be to save selected comps in an .aep and import via script from there. But you cannot just add layers to an existing comp with that way.