Copy link to clipboard
Copied
When i create script windows Undo doesn't work.
So i can't use app.executeCommand(16) and also in After Effects interface Undo option doesn't available.
Any solution to have opportunity to Undo when click button in script's GUI?
Copy link to clipboard
Copied
The scripts themselves will have to make provision for this and have to create an undogroup. If they don't, then there is nothing you can do. You have to contact the author of the script and ask them to polish up their stuff.
Mylenium
Copy link to clipboard
Copied
The problem is that I have to make some changes in project on button click, make some calculations and export file, after that I need to undo changes and make the same with other layers in cycle. So if I have GUI i can't Undo, but it works in script when i don't show GUI.
Copy link to clipboard
Copied
That's because you're using a modal window to draw your elements. In your case, it's something like this:
var win = new Window("dialog", "name", undefined);
However, you can change it to this (dialog to panel), and the AE interface will not be locked:
var win = new Window("panel", "name", undefined);
Cheers.
Copy link to clipboard
Copied
Thank you. The only mistake that we have only two types of Window object - "dialog" and "palette". And it works with palette for me.