Page 1 of 1

fader on 1 when switch is 1

Posted: 29 Apr 2012 20:10
by oran-outan
hi

with a switch button i want to control the value of a fader. if the switch is in -1- in want the fader go on -1-.

i have write the script :

if (switch.x == 1 ) fader.x = 1;

this run but i have to touch the fader for he go on 1. if i don't touch it the fader stay on last value.
how make to move the fader ??? without touch it...

in link an exemple...
thanks
f

Re: fader on 1 when switch is 1

Posted: 29 Apr 2012 22:42
by iamdamien
Hey f,

A few ways to move a fader without touching it:

Code: Select all

while (x==1)
Fader.x=1;
OR

Code: Select all

if (x==0)
x;
else if (x==1)
Fader.x=1;
OR

Code: Select all

x?Fader.x=1:x;
Enjoy!
-D

Re: fader on 1 when switch is 1

Posted: 29 Apr 2012 23:09
by Phil999
thanks iamdamien.

Re: fader on 1 when switch is 1

Posted: 30 Apr 2012 00:10
by oran-outan
Thanks...

;)