Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Script UI question

  • Script UI question

    Posted by Matt Volp on November 27, 2017 at 9:22 pm

    Hi,

    Can anyone tell me why there is an uneven space at the bottom of the checkboxes before the edge of the panel?

    The code from the script is below:

    Also, how do you set a checkbox as a variable, using the resource string version of script UI?

    I have the following and it doesn’t seem to be working. The checkbox names are arbitrary.

    var checkbox01 = myPanel.grp.optPanel.checkbox01.value;
    var checkbox02 = myPanel.grp.optPanel.checkbox02.value;

    Is it something to do with the checkboxes, i.e. (myPanel.grp.optPanel.checkbox01.value), being inside the function and not global?

    {
    function myScript(thisObj) {
    function myScript_buildUI(thisObj) {
    var myPanel = (thisObj instanceof Panel) ? thisObj : new Window("palette", "My Window", undefined);

    res = "group{orientation:'column', alignment:['fill', 'fill'],\
    myGroup: Group{orientation:'column', alignment:'fill', alignChildren:['fill', 'fill'],\
    button01: Button{text:'Button 1'},\
    button02: Button{text:'Button 2'},\
    },\
    optPanel: Panel{text:'Options', orientation:'row', spacing:'10',\
    checkbox01: Checkbox{text:'Check 1', alignChildren:'fill'},\
    checkbox02: Checkbox{text:'Check 2', alignChildren:'fill'},\
    },\
    }"

    Matt Volp replied 8 years, 5 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