Is it possible to somehow pass variables between a panel and a Photoshop script? If so, how?
Configurator panel only can run a script file. So you can hard code variables in your file.
For more complex situation, you may use "Photoshop Panel Developer's Guide" on this link http://www.adobe.com/devnet/photoshop.html
User can create a flash panel with Flex SDK and Panel Developer's SDK.
It also include some examples such as pass color value from flash panel to script.
North America
Europe, Middle East and Africa
Asia Pacific