ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Script UI question

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Matt Volp
Script UI question
on Nov 27, 2017 at 9:22:47 pm


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'},\

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved