Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Stretching UI Panel Buttons across resizable panel

  • Stretching UI Panel Buttons across resizable panel

    Posted by Ben Christie on July 28, 2015 at 7:12 pm

    Hello!

    Another scripting question for you guys.

    So I have my whole dockable UI panel filled with buttons but I am slightly stumped on why they are all sticking the the left hand side rather than stretching across the resizable panel? It is resizable because I have the “new Window(“palette”, “Bapple 1.6″, undefined, {resizeable: true});” portion in my script that is making it all work.

    Any help would be great. Thanks!

    Below is a snippet of two buttons on my panel for creating a directory structure:

    // "structure" buttons

    var structGrp = shortcuts.palette.add('group', undefined, 'structure group');

    shortcuts.structBtn1 = structGrp.add('button', undefined, 'AE Structure');
    shortcuts.structBtn1.onClick = aeStructure;

    shortcuts.structBtn2 = structGrp.add('button', undefined, 'Directory Structure');

    Xavier Gomez replied 10 years, 9 months ago 2 Members · 1 Reply
  • 1 Reply
  • Xavier Gomez

    July 29, 2015 at 11:29 am

    Set the alignment like this:

    shortcuts.structBtn1.alignment = [‘fill’, ‘top’];

    (view the (Adobe/pdf) JavaScript_Tools_Guide for more details).

    Xavier.

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