Skip to main content
Known Participant
November 14, 2018
Question

about app.beginUndoGroup() function

  • November 14, 2018
  • 1 reply
  • 2047 views

I use

app.beginUndoGroup();

<some code>

app.executeCommand(app.findMenuCommandId("Convert Expression to Keyframes"));

<some code>

app.endUndoGroup()

in my javascript;

after run my script,

I use keyboard shortcut "Ctrl + M" add a comp to render queue;

then I use "Ctrl + Z" want to undo add comp to render queue;

but AE told me "Undo group mismatch, will attempt to fix";

and AE back to before run my script;

in my other script, I found

app.project.renderQueue.render()

this function will affect undo group,

did convert expression will affect undo group too ?

any other command else ??

This topic has been closed for replies.

1 reply

zlovatt
Inspiring
November 15, 2018

There are plenty of commands that mess with undoGroups; importing an aep would famously cause issues when you try to undo it afterwards. "Undo group mismatch" is usually fine to ignore, though; yes the error is shown, but there aren't (often) any other effects.

Crown丶Author
Known Participant
November 16, 2018

thanks for your answer, I will try to find more commands, before I find some rules I will ignore that error