How to undo complete script action by only undoing 1 time
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?
