reverse multi slider from top to bottom

Dalmazzo's icon

Hi,
I need to draw multislider reversed from -1. to 0. drawing the values of the sliders from top to bottom where 0 is the top and -1 is the negative maximum value. How to draw them reversed? Is it possible?
Thanks

brendan mccloskey's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Hi
check the Object's Inspector:

Brendan

Dalmazzo's icon

Of course I checked the inspector, my question is how to draw the bars from top to bottom, for example this ones:

Max Patch
Copy patch and select New From Clipboard in Max.

Thanks for the help

John Daniel's icon

Ahh... I think I get what you are after, Is simply a visual thing - you want it to LOOK like the sliders are coming from top to bottom
So - you can't rotate the sliders, but....

Try this - Play with the background color and slider colors (reversing them) and set slider spacing to 0
This gives me the impression the sliders are top to bottom

You will have to do some math play (like Brendan's example) to get the numbers you want out of it.

Max Patch
Copy patch and select New From Clipboard in Max.

hope this helps
jd

brendan mccloskey's icon
Dalmazzo's icon

ok,
Thanks for the trick, unfortunately the slides are designed by the client, with space between them. It is not possible then, to draw them reversed.
has someone an example using js objects to draw slides?

John Daniel's icon

Hee Hee, at the risk of being labeled "the guy with a bunch of cheap hokey visual hacks" you could do this...

Put a bunch of little panel items to make your divisions (colored how you need for the visual illusion) and set them all to "ignore click"
fud for thought

OR - dig into the pictslider.maxhelp object - am sure the vertical audio-style slider shown could be creatively hacked to get what you need.

Max Patch
Copy patch and select New From Clipboard in Max.

cheers
jd

Dalmazzo's icon

Hey John! actually you are right! It is a good trick I can do this, my problem is that I have 400 sliders but I can do it with two 400 sliders, one for bars and other for "trick" reversed slider. Thanks man!

Roland Cahen's icon

Hello,

Here is a quite good hack :

Reverse_slider.maxpat
Max Patch

The same method could work for multisliders.

the only problem is that you must scale it according to the pixel size you need.

best regards
Roland