Why after script execution AE project not changed?
alyfreym opened this issue · comments
For example:
Simple script that create 2 folders
const filesFolder = app.project.items.addFolder("files")
const compositionsFolder = app.project.items.addFolder("compositions")
When rendering complete new ae project moving to the .nexrender folder.
When I open this copied project, all modification made from script not applied
The folders I specified were not created. Or for example i wrote to create two layer inside composition
I know the script execution not failed and everything okey.
But how can I make sure that all changes made by the script are saved in the project?
Config
const config = {
"template": {
"src": "file:////Users/user/Documents/Projects/WEB/aftereffectstemplatesbuilder/project.aep",
"composition": "main"
},
"assets": [
{
"src": "file:////Users/user/Documents/Projects/WEB/aftereffectstemplatesbuilder/build.jsx",
"type": "script",
"parameters": [
{
"key":"templates",
"value": [
]
}
]
}
],
"actions": {}
};
const main = async () => {
const result = await render(config, {
workpath: '/Users/user/Documents/Projects/WEB/aftereffectstemplatesbuilder/.nexrender/',
binary: '/Applications/Adobe After Effects 2024/aerender',
skipCleanup: true,
addLicense: false,
debug: true,
})
}
For anyone with a similar problem, a call to app.project.save()
is required to save the project.