Page 1 of 1

Resizing countainer

Posted: 25 Feb 2012 15:25
by wurlt01
Ive found plenty of examples to resize countainer with fader. But want to do the same thing by just hiting a button. Im new to this and would appreciate some help.
I now i have to write a script. My countainer is 112,76,818,417 but want to make it stretch to 112,76,818,700 i also would have to stretch whats inside.

thanks anthony

Re: Resizing countainer

Posted: 28 Feb 2012 22:33
by oran-outan
maybe this script
on your button

expression = x

setattribute (containername, 'rect', {112, 76, 818, (x * 283)+ 417});

or something like that


you have to do the same if you want to resize the inside...