Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Scripting GUI

  • Scripting GUI

  • Ramiro Dall’Agnese

    April 28, 2020 at 10:17 pm

    Hi everyone, I’m wetting my feet a bit on scripting and building UI’s for my coworkers ease.

    I’m trying to build a panel, in this case with a bunch of checkbox options. I would like the entire UI to build in “column”, but I would like some panels to show side by side.

    Following is the first part and the code that I’m having trouble with:

    {
    function myScript(thisObj){
    function myScript_buildUI(thisObj){
    var myPanel = (thisObj instanceof Panel) ? thisObj : new Window("palette", "Promos SuperPowered", [0,0,100,100], {resizeable: true});
    myPanel.orientation = "column";
    var myGroupOne = myPanel.add("Panel", undefined,"Prefixes");
    myGroupOne.orientation = "column";
    myGroupOne.alignChildren = "left";
    myGroupOne.add ("Checkbox", undefined, "Este");
    myGroupOne.add ("Checkbox", undefined, "Todos Los");
    myGroupOne.add ("Checkbox", undefined, "Manana");
    myGroupOne.add ("Checkbox", undefined, "Esta Tarde");
    myGroupOne.add ("Checkbox", undefined, "Hoy");
    myGroupOne.add ("Checkbox", undefined, "Dias de Semana");
    myGroupOne.add ("Checkbox", undefined, "Holder");
    var myGroupTwo = myPanel.add("Panel", undefined, "Days");
    myGroupTwo.orientation = "column";
    myGroupTwo.alignChildren = "left";
    myGroupTwo.add ("Checkbox", undefined, "Lunes");
    myGroupTwo.add ("Checkbox", undefined, "Martes");
    myGroupTwo.add ("Checkbox", undefined, "Miercoles");
    myGroupTwo.add ("Checkbox", undefined, "Jueves");
    myGroupTwo.add ("Checkbox", undefined, "Viernes");
    myGroupTwo.add ("Checkbox", undefined, "Sabado");
    myGroupTwo.add ("Checkbox", undefined, "Domingo");

    As is, the two panels stack on top of each other vs being side by side. I understand this is because the window is built as a column, but I’m wondering if I can make an exception for these panels. I’ve also tried adding the brackets with the position parameters to the group variable, but they don’t seem to affect the position at all, just the size.

    If someone could help me out or point me somewhere. I’ve looked everywhere online and can’t find a straightforward answer, or at least not one I’m aware would help.

    Thanks in advanced

Viewing 1 of 1 posts

Log in to reply.

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