Page 1 of 1

Knob to control Multiball speed

Posted: 02 Aug 2012 14:29
by djd_oz
Hi there,

I'm trying to use a knob to control the speed of the Multiball. Hence, in the onExpression x of the knob I have the following,

Code: Select all

setattribute (Multiball1,'speed', x*100);
which should set the speed of the multiball to x*100? However, this doesn't seem to be working.

Any help appreciated.

Re: Knob to control Multiball speed

Posted: 02 Aug 2012 15:31
by axel_liine
Hi,
That's because the "speed" value of the Multiball is actually not an "attribute", but a standard "variable".
Therefore, you set it with the following (simpler) code :

Code: Select all

Multiball1.speed = x * 100;
Note that all variables such as speed can also be set in the corresponding object's properties/behaivour window. You don't even have to use a script.
Just enter "Knob.x * 100" in the "speed" field of your Multiball.

Cheers,

Axel