Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions AE Scripting (onClick – change panel on other one)

  • AE Scripting (onClick – change panel on other one)

    Posted by Misha Chonka on December 25, 2015 at 4:27 pm

    Hi I want to create script that create panel similar to tabbed but it have 2 buttons, and when you press one button it will show one panel, when you press second – second panel. Like on this picture:

    I wrote this script, but don’t know what to write in onClick function. Please help me.

    var repeaterPanel = (thisObj instanceof Panel) ? thisObj : new Window("palette","Repeater 1.0", undefined, {resizable:true});

    if (repeaterPanel !=null){
    var res="group{orientation: 'column', alignChildren:['left','left'],\
    one: Group{orientation: 'column', alignChildren:['left','left'],\
    buttonsGroup: Group{orientation: 'row', \
    bCreate: IconButton{image:'E:/Create Light.png', size:[67,17], properties:{style:'toolbutton'}}, \
    bParameters: IconButton{image:'E:/Parameters Bold.png',size:[117,17], properties:{style:'toolbutton'}},\
    }\
    Button1: Button{text:'but 5'},\
    Button2: Button{text:'but 6'},\
    Button3: Button{text:'but 7'},\
    },\
    }";

    repeaterPanel.grp = repeaterPanel.add(res);

    var buttonCreate= repeaterPanel.grp.one.buttonsGroup.bCreate;
    //var buttonParameters = repeaterPanel.grp.buttonsGroup.bParameters;

    buttonCreate.onClick = function(){
    }

    RepeaterPal.center();
    RepeaterPal.show();

    Misha Chonka replied 10 years, 8 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