Hi There,
I just finished watching David Torno's excellent tutorials on developing ScriptUI panels with Extendscript. I followed all of his directions, and the panel does show up as expected in my ESTK, but when I save the .jsx to the ScriptUI folder within the Script directory of AE, the panel shows up, but none of the elements I created render within the panel. It's very odd, might anybody know what I'm doing wrong?
Here is my code, which is a derivative of David's example code building ScriptUI panels with resource strings:
{ function templaterGUI(thisObj){ function templater_buildGUI(thisObj){ var templaterWindow = (thisObj instanceof Panel) ? thisObj : new Window('palette', 'Templater', undefined, {resizeable : true}); gui = "Group{orientation: 'column', alignChildren: 'fill',\ settings: Group{orientation: 'row', alignChildren: 'fill',\ pAssets: Panel{text: 'Assets'},\ pOptions: Panel{text: 'Render Options'},\ },\ action: Button{text: 'Render Batch'},\ console: Panel{text: 'Status',\ msg: StaticText{text: 'Currently Idle'}},\ }"; templaterWindow.grp = templaterWindow.add(gui); return templaterWindow; } var templaterDock = templater_buildGUI(thisObj); if ((templaterDock != null) && (templaterDock instanceof Window)){ templaterDock.center(); templaterDock.show(); } } templaterGUI(this); }
Here's what it looks like when I run this code in ESTK:
I placed the script in the `ScriptUI` folder within the AE CS6 application folder, and here's what it looks like when I invoke the exact same .jsx file from `Window` menu in AE:
Maybe I overlooked something in the code that David provided in his tutorial? Can anybody offer any suggestions for debugging / troubleshooting?
Thanks for your time and help!