General

How do I change MultiBall colors and label each ball

Started by indijinouz on .

Sign in or create an account to join the conversation.

9 posts

Topic starter
Is there an easy way to do this without tons of scripting? I basically just wanna be able to change the default colors of each ball (which are white, blue, then green, and so on) and also instead of have a number inside each ball, i wanna be able to put my own label in small text inside each ball.

Any ideas?
To define your own colors for the balls, tick the "Multicolor" option and then use a init script (execute on load) and type:
setattribute(MultiBall, 'colors', {xxxx, xxxxxx, xxxxx........xxxxxxx});
where MultiBall is the actual name you have given to your multiball object (so if you have named it, 'myballs' type myballs in the script) and xxxxxx is a number from 0 to 8355711. You need as many xxx numbers as many enabled balls you have.
To easily retrive numbers of colors you use in your palette.....create an object like a pad or anything.....use a monitor object and make it so it displays:
getattribute(object, 'color')
Where object is the testing object name. This way you can manually change the color of the "testing" object, and write down the related numerical value of the color to be used in the multiball script.

To have custom labels for each ball, tick the "Multilabel" option and then use in the above init script:
setattribute(MultiBall, 'labels', {'label 1', 'label 2'.......'label n'});
where n is the amount of balls you have enabled.
No, it doesn't matter - you could name the scripts 'fred()' or if a big Paul Simon fan, 'al()' ;).

Also, there's no need for two separate scripts as both execute 'onload' - you can write it all into a single 'init()' if you like.