• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Can we get the eventUndo?

Engaged ,
Nov 02, 2012 Nov 02, 2012

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!

TOPICS
SDK

Views

1.8K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Engaged ,
Nov 06, 2012 Nov 06, 2012

Copy link to clipboard

Copied

Can someone help me...?? Its urgent...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 06, 2012 Nov 06, 2012

Copy link to clipboard

Copied

The answer is NO. There is no Undo notifier in PS.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 06, 2013 Jun 06, 2013

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 06, 2013 Jun 06, 2013

Copy link to clipboard

Copied

LATEST

....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).

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines