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

My controls don't show up in my dockable panel

$
0
0

Currently, the panel activates and everything works great when run from the script menu. But when I run this from the UI folder I get an empty panel.

Any help would be greatly appreciated. Thanks.

 

Here is the code I've used:

 

{

   function myScript(thisObj) {

   function  myScript_buildUI(thisObj ) {

              var myPanel = (thisObj instanceof Panel) ? thisObj : new Window("palette", "My GUI", undefined,  {resizeable: true});

res = "group{orientation:'row',\

groupOne: Group{orientation:'column',\

myIconButton: IconButton{text:'IconButton', image:'/Users/MisdirectedMedia/Desktop/fireball.png'},\

},\

}";

 

 

myPanel.grp = myPanel.add (res);

return myPanel;

}

     var myScriptPal = myScript_buildUI(thisObj);

        if ( (myScriptPal !=null) && (myScriptPal instanceof Window)){

myScriptPal.center();

myScriptPal.show ();

}

}

myScript(this);

}


Viewing all articles
Browse latest Browse all 2143

Trending Articles



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