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);
}