ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

How create scroll bar in main window (Script UI Adobe After Effects)

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
John Ber
How create scroll bar in main window (Script UI Adobe After Effects)
on Mar 20, 2018 at 5:41:46 am
Last Edited By John Ber on Mar 20, 2018 at 8:02:33 am

Hello everyone! 😁

Now I'm creating - Script UI panel for the After Effects CC 2015, and I need your help!
I encountered such a problem - how do I make it so that the panel has the ability to scroll? Here is the code of my script, there are many buttons arranged in one column. How to make it so that a scroll bar appears.
Thank you in advance!

{
function TOKOScript(thisObj) {
function TOKOScript_buildUI(thisObj) {
var TokoPanel = (thisObj instanceof Panel) ? thisObj : new Window("palette", "TOKO Library", [0, 0, 300, 300], {resizeable:true});

res="group{orientation:'row', alignment:['fill', 'fill'], alignChildren:['fill', 'fill'],\
ButtonsGroup: Group{orientation:'column', alignment:['left', 'top'], alignChildren:['fill', 'fill'],\
TokoButton1: Button{text:'Typography'},\
TokoButton2: Button{text:'Infographics'},\
TokoButton3: Button{text:'Devices'},\
TokoButton4: Button{text:'Titles'},\
TokoButton5: Button{text:'Lower-Thirds'},\
TokoButton6: Button{text:'Call Outs'},\
TokoButton7: Button{text:'Transitions'},\
TokoButton8: Button{text:'Presentations'},\
TokoButton9: Button{text:'Logo Reveal'},\
TokoButton10: Button{text:'Animated Icon'},\
TokoButton11: Button{text:'Shape Elements'},\
TokoButton1: Button{text:'Typography'},\
TokoButton2: Button{text:'Infographics'},\
TokoButton3: Button{text:'Devices'},\
TokoButton4: Button{text:'Titles'},\
TokoButton5: Button{text:'Lower-Thirds'},\
TokoButton6: Button{text:'Call Outs'},\
TokoButton7: Button{text:'Transitions'},\
TokoButton8: Button{text:'Presentations'},\
TokoButton9: Button{text:'Logo Reveal'},\
TokoButton10: Button{text:'Animated Icon'},\
TokoButton11: Button{text:'Shape Elements'},\
},\
}"

//Add resource string to panel
TokoPanel.grp = TokoPanel.add(res);



//Setup panel sizing and make panel resizable
TokoPanel.layout.layout(true);
TokoPanel.grp.minimumSize = TokoPanel.grp.size;
TokoPanel.layout.resize();
TokoPanel.onResizing = TokoPanel.onResize = function () {this.layout.resize();}

return TokoPanel;
}


var myScriptPal = TOKOScript_buildUI(thisObj);


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


TOKOScript(this);
}


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]