Skip to main content
Inspiring
November 14, 2017
Answered

Ruler Units Change Event Listener

  • November 14, 2017
  • 1 reply
  • 1157 views

Hi,

I'm trying to build a photoshop HTML extension. I would like to have the extension update the current ruler units whenever the user changes the ruler units in the application.

How would I go about listening to that event?

Any insight into this would help.

thanks

This topic has been closed for replies.
Correct answer Ten A

Sorry, I'm not Trevor. Any way, I wrote a list of JSON Callback in below article.

Photoshop JSON CallBack Events List (up to CC2015 ver.16)

However, It seems not implemented...

1 reply

Ten A
Community Expert
Community Expert
November 15, 2017

You can use PhotoshopJSONCallback like below.

You can reference sample extension project in Adobe CEP Samples.

Samples/PhotoshopEvents at master · Adobe-CEP/Samples · GitHub

tushardeAuthor
Inspiring
November 17, 2017

This is great! Thanks Trevor.

I did notice that this event ID is fired when a user changes the units from the preferences window. But I can't seem to find a way to capture the event when the units are changed by right-clicking on the ruler like below. Any idea how i would do that?

Ten A
Community Expert
Ten ACommunity ExpertCorrect answer
Community Expert
November 18, 2017

Sorry, I'm not Trevor. Any way, I wrote a list of JSON Callback in below article.

Photoshop JSON CallBack Events List (up to CC2015 ver.16)

However, It seems not implemented...