ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

set scriptUI dimension

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Rainier Raydán
set scriptUI dimension
on Feb 16, 2018 at 1:48:31 pm

Hi guys!

I'm having trouble with my scriptUI. I need to set the dimensions of my buttom. I know that I can set the number of character of a EditText with this myMid: EditText{text:'FECHA', characters:15},\
Is there a way to change the dimension of a buttom? like size, widht, height... something like that.

Thanks!


Return to posts index

Dan Ebberts
Re: set scriptUI dimension
on Feb 16, 2018 at 2:22:56 pm

Like this:


myBtn: Button {text: 'Apply', preferredSize: [75,50]}, \


or like this to set just the width:


myBtn: Button {text: 'Apply', preferredSize: [75,-1]}, \


Dan



Return to posts index

Rainier Raydán
Re: set scriptUI dimension
on Feb 16, 2018 at 2:34:51 pm

Thanks! but I cant set the width... I have this
myGroup: Group{orientation:'row', alignment:['fill', 'fill'], alignChildren:['fill', 'fill'],\
myButton: Button{text:'Run', preferredSize: [10,25]},\
},\


It's becouse the "alignChildren" ? I want the buttom to be 45 width and 25 height.


Return to posts index


Dan Ebberts
Re: set scriptUI dimension
on Feb 16, 2018 at 5:48:07 pm

I'm confused--If you want it to be [45,25], why did you specify [10,25]?

Dan



Return to posts index

Rainier Raydán
Re: set scriptUI dimension
on Feb 16, 2018 at 6:34:31 pm

Even if I type [45,25] nothing happen with the width...


Return to posts index

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