Skip to main content
Participant
October 10, 2024
Question

Adobe Illustrator group undo or some transition combine one undo stack?

  • October 10, 2024
  • 1 reply
  • 209 views
In Adobe Illustrator, when working with a CEP (Common Extensibility Platform) panel that modifies TextFrame objects and dispatches events, all these changes should be grouped under a single entry in the undo history. Currently, each modification, whether it's a TextFrame change or an event dispatch, creates a separate entry in the undo stack. How to fix.
This topic has been closed for replies.

1 reply

m1b
Community Expert
Community Expert
October 10, 2024

Hi @saravanan_MK, as far as I know there is no way to directly control this behaviour. The best you can do is ensure you are not performing certain operations that specifically cause a new Undo record to be added. For example, avoid using

 

app.redraw();

 

for this reason. But otherwise in your CEP panel, the only option you have is to somehow collect the operations (without doing them) and then evaluate them all as one call, which means they can be Undone as one.

 

Sorry this answer doesn't help you much. Maybe someone will answer with better ideas.

- Mark

 

Edit: just to add that (I think) every time you evaluate ExtendScript code from CEP panel it will add an Undo record.