Setting range value of dynamically created slider

Sep 9, 2010 at 5:03pm

Setting range value of dynamically created slider

Hello
I am using the patcher object to create with javasript some sliders:

theSliders[obstacles-1] = this.patcher.newdefault(30+((k-1)*25), 600, “uslider”);

I am not able though to find a way to set the range of the generated sliders other than the default 128…

any ideas plz!

anton

#51896
Sep 9, 2010 at 5:18pm

Ooops I found it…
I just used the @size attribute argument. The problem is tha there isn’t documented which attributes exist for each object!

#186233
Sep 9, 2010 at 6:28pm

Every object has a reference entry with lists the relevant attributes. If you need common object box attributes, there is an entry for this as well:

http://www.cycling74.com/docs/max5/refpages/max-ref/jbox.html

-Ben

#186234
Sep 9, 2010 at 8:26pm

thank you Ben!
that seems very useful!

anton

#186235

You must be logged in to reply to this topic.