Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Dockable UI panel

  • Dockable UI panel

    Posted by Martin Jean-sébastien on November 7, 2013 at 7:56 am

    Hello!
    I wrote my first script, and it works successfully!
    BUT, I want it to be dockable and I follow a tut which teach me how to write it…. but it doesn’t work….. When I call it from the window of after effects, my panel is empty…..
    Also, I just want to assign a function to these 5 tabcontent : how can I make it?
    I copy/paste the code below, if somebody can help me, I would really appreciated (excuse for my english, I’m a french guy!) :

    {
    function myScript(thisObj){
    function myScript_buildUI(thisObj){
    var myPanel = (thisObj instanceof Panel) ? thisObj : new Window(“palette”, “AK_toolkit_V01”, undefined, {resizeable:true});

    res = “group{orientation:’row’,\
    myTabbedPanel: Panel{type:’tabbedpanel’, text:”,\
    myTab1: Panel{type:’tab’, text:’tab1′,\
    myTabContent1: Button{text:’my tabbed button1′},\
    myTabContent2: Button{text:’my tabbed button2′},\
    myTabContent3: Button{text:’my tabbed button3′},\
    myTabContent4: Button{text:’my tabbed button4′},\
    myTabContent5: Button{text:’my tabbed button5′},\
    },\
    myTab2: Panel{type:’tab’, text:’tab2′,\
    },\
    myTab3: Panel{type:’tab’, text:’tab3′,\
    },\
    },\
    }”;

    myPanel.grp = myPanel.add(res);

    //Defaults
    //myPanel.grp.myTabbedPanel.myTab1.myTabContent1.onClick = function()

    return myPanel;
    }
    var myScriptPal = myScript_buildUI(thisObj);

    if((myScriptPal != null)&&(myScriptPal instanceof Window)){
    myScriptPal.center();
    myScriptPal.show();
    }

    }

    myScript(this);

    }

    Martin Jean-sébastien replied 12 years, 9 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