-
AE Scripting (onClick – change panel on other one)
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();
Sorry, there were no replies found.
