Knob to control Multiball speed

Discuss Lemur and share techniques.
Post Reply
djd_oz
Newbie
Posts: 5
Joined: 30 Jun 2012 13:06

Knob to control Multiball speed

Post 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.
axel_liine
Liine Staff
Posts: 126
Joined: 14 Dec 2011 12:12

Re: Knob to control Multiball speed

Post 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
Post Reply