Copy link to clipboard
Copied
Hi,
Just wondering if its possible to expose methods from my Photoshop C++ Plug-in to Javascript to allow them to be used in a script?
These methods are system-ish so they have input values that would change ect.
Cheers
Copy link to clipboard
Copied
If your plugin properly defines parameters in its PIPL (see the SDK examples) it can be triggered from Javascript or from an action or from another plugin etc. Its not going to be as cool as extending Photoshop's DOM could have been, i.e. no app.MyPLuginMethod() style of invocation, but you can invoke your plugin by calling Photoshop.app.executeAction() with the plugin's unique ID and optionally pass some parameters in the descriptor parameter.
There is an utility plugin called ScriptListener (http://www.adobe.com/devnet/photoshop/scripting.html) which you probably want to take a look at.