Hello,
We can call automation plugin from java script below code.
var xx = stringIDToTypeID( "459ac2e6-82d1-11d5-9879-00b0d0201111" ); // Has will be the unique ID for this plugin
executeAction( xx, undefined, DialogModes.NO );
I am trying to passing parameters for the same plugin.
I tried to find a way myself following plug-in resource guide but there information is not so clear.
Can you tell me,
- How to define parameters in terminology file. (my guess it should be define in terminology file)
- How to JS call with parameters
- And how to extract those parameters inside plugin.
Sample Pipl.r file (This is from C++ plugin in SDK)
//-------------------------------------------------------------------------------
// Dictionary (scripting) resource
//-------------------------------------------------------------------------------
resource 'aete' (16000, "Getter dictionary", purgeable)
{
1, 0, english, roman, /* aete version and language specifiers */
{
"Testing", /* vendor suite name */
"Adobe example plug-ins", /* optional description */
'get ', /* suite ID */
1, /* suite code, must be 1 */
1, /* suite level, must be 1 */
{ /* structure for automation */
plugInName, /* name */
"No comment", /* optional description */
'get ', /* class ID, must be unique or Suite ID */
'getr', /* event ID, must be unique */
NO_REPLY, /* never a reply */
IMAGE_DIRECT_PARAMETER, /* direct parameter, used by Photoshop */ <-- According to the documentation, I guess here should be come parameters. (para name, keyID, typeID )
{ // filter or selection class here:
}
},
{}, /* non-filter/automation plug-in class here */
{}, /* comparison ops (not supported) */
{ // Enumerations go here:
} /* end of any enumerations */
}
};
// end GetterPiPL.r
Thank you.