Setting range value of dynamically created slider

4nt0n's icon

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

4nt0n's icon

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!

Ben Bracken's icon

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:

-Ben

4nt0n's icon

thank you Ben!
that seems very useful!

anton