4 Replies Latest reply on Dec 25, 2010 2:48 PM by electriciris

    Passing parameters to Javascript from plugin

    electriciris Level 1

      Hi,

       

      I'd like to pass arguments to a javascript from a c++ automation plugin.

       

      I can set the argument like this:

       

        error = sPSActionDescriptor->PutString(theDescriptor, 'key1', "MyString");

        ....call the script...

       

      but how can i read it in javascript?

       

      And, just out of curiosity, how can I communicate back to the c++ automation plugin results from the javascript?

       

      thanks.