Can javascritpt functions executing from an HTML element inside a panel affect the photoshop scene? I know it can using the scripting toolkit, but I'm trying to do this in the Adobe Configurator. In Configurator I created a new panel with an HTML panel and a button inside it that executes a javascript function on click "createDocument". When I bring this into photoshop, I can load the panel and click on the button, but I never get a new document created. If I uncomment the "alert" line, reexport the plugin, and click on the button, I get the alert, but still don't get a new document.
var createDocument = function() {
app.documents.add(2,4);
//alert("creating new doc!");
};
I've tried other functions like creating layers, but still don't see anything happening in photoshop affecting the UI. It's even more frustrating that I don't see any kind of error message that is happening. My conclusions seem to imply this panel can't call the photoshop files for some reason (running in a different VM, wrong namespace, etc.). Has anyone been able to make photoshop scripting calls from inside a configurator panel?