Copy link to clipboard
Copied
I am new to writing scripts so if I mention something incorrectly I am sorry
I wrote an after effects script that creates a shape layer and moves the created shape layer above the selected layer(s), the in and out points, and according to the selected layer(s) but I can't undo the whole script at one time I have to undo 4-5 time to undo the actions performed by the script completely
What do I need to add to the script so it can be undone in 1 time?
You can do this by putting the code between app.beginUndoGroup() / app.endUndoGroup() methods:
app.beginUndoGroup("description that appears in undo menu");
< your code here >
app.endUndoGroup();
https://ae-scripting.docsforadobe.dev/general/application.html#app-beginundogroup
Copy link to clipboard
Copied
You can do this by putting the code between app.beginUndoGroup() / app.endUndoGroup() methods:
app.beginUndoGroup("description that appears in undo menu");
< your code here >
app.endUndoGroup();
https://ae-scripting.docsforadobe.dev/general/application.html#app-beginundogroup
Copy link to clipboard
Copied
Thank you so much. It worked.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more