Skip to main content
zsaaro
Inspiring
October 19, 2022

"Unknown Exception" when using app.beginUndoGroup() on startup

  • October 19, 2022
  • 2 replies
  • 333 views

With Ae 2023 (does not seem to happen on either 2022 or the latest beta) seems like scripts that run on startup and use:

app.beginUndoGroup(), app.endUndoGroup()

Result in After-Effects throwing an erorr:

It's pretty simple to reproduce:

1. Create a jsx file with the following contents:

app.beginUndoGroup("Undo Group Test");
app.endUndoGroup();

 2. Save it and place it in the "Startup" folder of After-Effects

3. Relaunch After-Effects 2023

 

This is also relevant to ScriptUI panels that are docked to the interface.

Let me know if you need any further information. It happens to my on my M1 MacBook Pro 14" but users reported the same on Windows 11.

This topic has been closed for replies.

2 replies

JohnColombo17100380
Community Manager
Community Manager
October 19, 2022

Hi @zsaaro,

Thank you for reporting this issue. As you mentioned, it doesn't appear to happen in the latest Beta builds, so it is likely already fixed as part of ongoing work.

 

I will caution that any undo groups created as part of scriptUI/CEP panel startup should be avoided. Undo groups are intended for actions that modify items in the project. Starting an extension or opening a panel as part of app launch or switching workspaces should not do so without some explicit command from the end user.

 

Cheers,

- John, After Effects Engineering Team 

Dan Ebberts
Community Expert
Community Expert
October 19, 2022

I got the same result with your test on Windows 10, but I didn't notice any impact on docked ScriptUI panels.