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

Exposing C++ methods to Javascript

Guest
May 10, 2013 May 10, 2013

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

TOPICS
SDK

Views

805

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
Contributor ,
May 13, 2013 May 13, 2013

Copy link to clipboard

Copied

LATEST

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.

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