Hello!
I am writing a Photoshop plugin that needs to disable itself when certain tools are active.
I have added a callback for the select event, based on the Listener example, and am mostly happy with the results.
Here is my callback function:
However, I have three problems with this method:
1) Photoshop does not send the active tool to plugins at startup.
2) In some older version of Photoshop, some tools aren't triggering the callback at all.
3) If the user chooses a tool preset, my callback gets the class string "toolPreset", no matter what type of tool is selected from the preset.
So my question is the following: Is there a better way to get the current active tool?
Is there by any chance a way of querying it, instead of relying on an event callback?
I've looked through the plugin API docs but did not find anything that looked relevant.
Please advise.
Thanks,
Guillaume