Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions set scriptUI dimension

  • set scriptUI dimension

    Posted by Rainier Raydán on February 16, 2018 at 1:48 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!

    Rainier Raydán replied 8 years, 3 months ago 2 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    February 16, 2018 at 2:22 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

  • Rainier Raydán

    February 16, 2018 at 2:34 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.

  • Dan Ebberts

    February 16, 2018 at 5:48 pm

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

    Dan

  • Rainier Raydán

    February 16, 2018 at 6:34 pm

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

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