Skip to main content
Inspiring
November 6, 2016
Answered

How to delete an Undo group?

  • November 6, 2016
  • 2 replies
  • 1298 views

Hi there,

Does anyone know how to remove the undo group?

I create several groups and at some point of execution I would like to remove all the groups I created as they are not valid anymore.

Any ideas how this can be achieved?

Best regards,

Yuri

This topic has been closed for replies.
Correct answer kotuk81

This one worked perfectly for me:

app.purge(PurgeTarget.UNDO_CACHES);

2 replies

Community Expert
November 6, 2016

3. an AEGP can monitor the undo command using the command hook.

when triggered, you can check if your operation is being undone and do

something.

HOWEVER, i have tried that in the past, and ae DID NOT like it. the

inteference worked, but ae became... zombie-ish afterwards... i guess some

processes assumed the undo was successful and jamming this process caused

all hell to break loose.

Community Expert
November 6, 2016

hi Yuri.

there's no way to "invalidate" the operations so that the user can't "undo".

i can think of a hack or two...

1. there used to be a setting in the preferences for how many undo levels

will be available.

perhaps setting changing this value to 0 and then back up would delete all

entries... however i don't see the preference anymore.

perhaps it was dropped at some point, or i need to set an appointment with

a neurologist...

2. you can crate a TON of empty undo groups (or that don't do anything

important), so you eventually push the groups you wanted to invalidate out

of availability.

it would be a bit messy though...

kotuk81Author
Inspiring
November 7, 2016

Wow.... I thought I just missing the setting somewhere..

Though, pretty strange to me.

If I render in the AE, the "undo" groups are invalidated,.. so if it an option of AE, I would expect the it to be invalidated as well when I make an undo from the AEGP. If it's not the default AE option I would expect to get an access to the "invalidation" API

kotuk81AuthorCorrect answer
Inspiring
November 16, 2016

This one worked perfectly for me:

app.purge(PurgeTarget.UNDO_CACHES);