Can we get the eventUndo?
Copy link to clipboard
Copied
Hi All!
I am designing a plugin for Photoshop CS5 onwards. My plugin has a UI which shows the current background color in an HBox. My problem is as follows:
Suppose there is a text layer whose font color is red. The user then applies blue color to the same layer. He then undoes this action so that the text color is red again.
The problem is that whenever user undoes any such action, my plugin doesn't know it and so the UI displays incorrect information. I want to capture the undoEvent and get my plugin to the same state as that of Photoshop. I found that an event by the name of eventUndo exists in PITerminology.h class. I added code to add notifications for this event. I found that the event does not get called. I looked into the script generated by the Listener plugin and found that eventSelect event gets triggered when user does 'Step backwards'. I require an event that detects 'Step backwards' as well as 'Undo <last action>'. How can I go about this so that my plugin detects whenever user undoes his action?
Thanks!
Explore related tutorials & articles
Copy link to clipboard
Copied
Can someone help me...?? Its urgent...
Copy link to clipboard
Copied
The answer is NO. There is no Undo notifier in PS.
Copy link to clipboard
Copied
This is a Photshop bug. Undo is a registered event to listening.....
The list of supported events is on:
http://cssdk.host.adobe.com/sdk/1.0/docs/WebHelp/app_notes/photoshop.htm
Also, the history changes is a supported event.
Adobe should fix this bug.
Copy link to clipboard
Copied
....I'm sure is a Photshop bug.
Listeners capture the undo event if is called from de menu.
Listeners don't capture the undo event if is called from de keyboard acelerator (Cmd.+Z).

