Page 1 of 1

setattribute hold?

Posted: 25 Oct 2013 16:39
by vmy
hi all,
im sorry about this, but seems to be another stupid question from a newbee :oops:

i want to controll the hold attribute from a multiball. i made a script in a switchobject: setattribute(MultiBall,'hold',x);
but it doesnt run?

when i want controll the grid all is running well. isnt hold an attribute? or cant i controll it?

i also test it with 3 balls in the mutliball and try this script: setattribute(MultiBall,'hold[0],x);
only to controll the hold attribute of the first ball. doesnt run :cry:

Re: setattribute hold?

Posted: 25 Oct 2013 18:59
by Softcore
What exactly were you wishing to achieve with "hold"?

Hold is to be used in conjuction with "ephemeral" mode (ball disappears after stopping touching the multiball object).

So, what do you want essentially for the multiball to do?

Re: setattribute hold?

Posted: 27 Oct 2013 09:47
by vmy
hi,
i understand hold so that its like a holdpedal. i test it in conjunktion with my kyma sound.
when i set hold=1 i only must touch a multiball one time and the sound is running the whole time. then i change the hold value to 0 and the sound is off. some times its good because i must control some other settings with both hands. and i must take off my finger from the multiball .
so i want a button to toggle between hold mode on and off.

greetings
vmy

Re: setattribute hold?

Posted: 27 Oct 2013 11:11
by Macciza
No
As always, check in the manual if you aren't sure . . .

So try MultiBall.hold=x; in your script . . .
Remember those fields for hold etc also take expressions, so the other option is to simply put Switches.x (or whatever) in the 'hold' field . . . .

Again, (sorry) check the manual - the standard way of addressing members of variable arrays/vectors is Object.var[n] i.e. MultiBall.hold[2] or Switches.x[2] . ..

Try that and see how you go . . .

Cheers
MM

Re: setattribute hold?

Posted: 28 Oct 2013 10:25
by vmy
ok. just have solved the problem. its very easy.
i only must choose Switch.x[0] in the behavious section of the multiball and all runs perfectly.

thanks for the help

greetings
vmy