• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Can't undo when script GUI opened

New Here ,
Dec 11, 2020 Dec 11, 2020

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.

Ylex_0-1607694562278.png

Any solution to have opportunity to Undo when click button in script's GUI?

TOPICS
Error or problem , Scripting

Views

329

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 11, 2020 Dec 11, 2020

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 11, 2020 Dec 11, 2020

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Dec 13, 2020 Dec 13, 2020

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 13, 2021 Jan 13, 2021

Copy link to clipboard

Copied

LATEST

Thank you. The only mistake that we have only two types of Window object - "dialog" and "palette". And it works with palette for me.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines