Global variables

Discussion of Photoshop Scripting, Photoshop Actions and Photoshop Automation in General

Moderators: Tom, Kukurykus

d3mac123

Global variables

Post by d3mac123 »

Is there a way to read a public variable from the panel (Actionscript) via JSX? I need to read a few values from my panel as the code below does not work in CS4.
Code: Select all    CSXSInterface.instance.evalScript("testFunction","John","Wayne");


ideas?
Alex

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

csuebele

Global variables

Post by csuebele »

I have not used the CSXSInterface, but have use invokePlayerfunction() to get into into Actionscript - mainly to give visual feedback from controls in extendscript. I did play around a little with getting info the other way. I would suggest looking at the JavaScript Tool guide. There are some sample scripts listed in it that helped me (ActionScriptDemo.jsx).

P.S. I seem to recall some issue with getting info back to PS. You have to do some operation (click on a button) to get information back from ActionScript to PS. Some sort of security thing that ActionScript won't let you send it a command from another program without some sort of user interface making the decision.