-
ScriptUI Panel only works when it’s closed and reopened
I know there must be a solution but no matter what I search for, I always come up blank. AFAIK, I am copying the layout of other scripts that work, by sending this into the main function and calling up the createGUI inside of that, but I always get “null is not an object” for the storage object.
It only works when I close and reopen the script in AE. Am I doing something completely wrong here?
{
function main(thisObj) {
var storage = new Object();
/* bunch of info stored into the object*/function createGUI(pnl) {
/* code to create the GUI and onClick functions that use the storage object */
}var myToolsPanel = createGui(thisObj);
if (myToolsPanel instanceof Window) {
myToolsPanel.show();
}
}main(this);
}–
JamesMac Pro 4,1 Quad Core 2.66
Sorry, there were no replies found.