Is there any events associated with UNDO command?
I have a script UI with a dropdow menu filled with layer names. My script generates new layers and those are added to the dropdown menu. But if the user perform an undo(menu command or keyboard), the layers get removed from the composition, but remain in the dropdown. I would need an event handler for the undo to call a function that updates the dropdown. Any ideas? There are ways to listen to the keyboard events but how about the menu command?
Cheers.
