Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions ScriptUI Panel only works when it’s closed and reopened

  • ScriptUI Panel only works when it’s closed and reopened

    Posted by James Peres on June 21, 2012 at 6:11 pm

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


    James

    Mac Pro 4,1 Quad Core 2.66

    James Peres replied 13 years, 10 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy