2 Replies Latest reply: Mar 28, 2011 10:12 AM by jacobolus RSS

    sending data from scripts into custom panel web views

    jacobrus

      Hi everyone,

       

      In Photoshop CS5, I can make a configurator panel with a web view in it, and use HTML/CSS/JavaScript to draw a custom view. I can make special links which trigger ExtendScript scripts, and can thereby control Photoshop to some extent. What I don't know is how to is get information into my web view from a Photoshop script. That is, my web view is happily chugging along, and it can call some script to whatever it likes, but I don't know how I get that script to send data back into the web view, so that I can update it or make my web view understand at all the content and context of the document.

       

      For example, the Photoshop Panel Developer Guide has a sample "Color Picker Panel" which gets the current foreground and background color and shows them in a Flex app. I'd like to be able to do the same sort of thing from within an HTML view. Does anyone have advice on how to accomplish that?

       

      Thanks,
      Jacob