How do I change MultiBall colors and label each ball

Discuss Lemur and share techniques.
Post Reply
indijinouz
Newbie
Posts: 26
Joined: 17 Jul 2014 05:13

How do I change MultiBall colors and label each ball

Post by indijinouz »

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?
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: How do I change MultiBall colors and label each ball

Post by Softcore »

To define your own colors for the balls, tick the "Multicolor" option and then use a init script (execute on load) and type:

Code: Select all

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:

Code: Select all

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:

Code: Select all

setattribute(MultiBall, 'labels', {'label 1', 'label 2'.......'label n'});
where n is the amount of balls you have enabled.
indijinouz
Newbie
Posts: 26
Joined: 17 Jul 2014 05:13

Re: How do I change MultiBall colors and label each ball

Post by indijinouz »

Oh my goodness! Your instructions are always so perfect... I never think someone as dumb at me at this is gonna be able to make it work and then u lead me right to accomplishing it! Thaaank you!
indijinouz
Newbie
Posts: 26
Joined: 17 Jul 2014 05:13

Re: How do I change MultiBall colors and label each ball

Post by indijinouz »

Okaaay so question. Does it matter what i name the scripts? I just named "init" and "init2" and made em both active on load for color and label is that okay?
Joe Soap
Regular
Posts: 462
Joined: 07 Jul 2012 15:04

Re: How do I change MultiBall colors and label each ball

Post by Joe Soap »

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.
indijinouz
Newbie
Posts: 26
Joined: 17 Jul 2014 05:13

Re: How do I change MultiBall colors and label each ball

Post by indijinouz »

And is there a color map with all the numbers listed somewhere? I got it to work with the monitor but just wondering
indijinouz
Newbie
Posts: 26
Joined: 17 Jul 2014 05:13

Re: How do I change MultiBall colors and label each ball

Post by indijinouz »

And oh yeah oh yeah! Sowwy;p. Is it possible to change the fader's slider color from light blue to something else (in pixel mode)
Joe Soap
Regular
Posts: 462
Joined: 07 Jul 2012 15:04

Re: How do I change MultiBall colors and label each ball

Post by Joe Soap »

Afraid not.
indijinouz
Newbie
Posts: 26
Joined: 17 Jul 2014 05:13

Re: How do I change MultiBall colors and label each ball

Post by indijinouz »

got it thanks man!
Post Reply