Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

ScriptUI panel renders in ESTK but not in AE

$
0
0

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:

 

Screen Shot 2013-08-21 at 8.32.46 PM.png

 

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:

 

Screen Shot 2013-08-21 at 8.34.03 PM.png

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!    


Viewing all articles
Browse latest Browse all 2143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>