General

Knob to control Multiball speed

Started by djd_oz on .

Sign in or create an account to join the conversation.

2 posts

Topic starter
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,
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.
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 :
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