Dial for indicating selection?

encoder audio's icon

Hi Guys,

Is it possible to use the dial object to indicate selecting?
I'd like to use it in my sequencer to show the sequence position.
For example, if I select (from a 16 step sequence) steps 5-8, can it show only these, like a slice of a cake?

Nikolas K's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Maybe using two dials, like so (but its not ideal):

I would go for a custom JSUI.

-N

encoder audio's icon

Nokilas, actually it is kinda good enough for me, thanks!!!

Nikolas K's icon

It is just the thin outline from the "covered" part that shows that gets me!
Anyway, glad it helps!
Cheers!

encoder audio's icon

Yeah it is OK :D
Is it possible to offset this somehow?
I'm working on a circular sequencer, ad the first step is i the top middle...so I have to offset this somehow with 8 steps :S

Nikolas K's icon

You could, by offsetting the selection values, and having the dial use 360 degrees, but you the dial's pie doesn't wrap. Meaning, for example you have 16 steps, so offsetting the values sent to the dials by 8 would show it starting from the top, but when the bigger value is >16 the pie will stop there.
So, better do with JSUI!

Nikolas K's icon

Well, just found out you can use the JS painter to rotate the objects original paint function!!! (A bit excited!)
Set the dials to use 360 degrees, and add this js file as their JS painter file.

Voila!

rotateUI180.js
js
encoder audio's icon

Nikolas, sorry, I'm not really familiar with this.
Do you mean something like this?

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

encoder audio's icon

Oh, forget it, figured out :D
AMAZING!!!

Nikolas K's icon

I understand you figured it out, but just if anyone else is wandering - in the object's inspector, there is a "JS painter file" attribute that lets you select a JS file. There you should set it to the "rotateUI180.js" (or some other js painter file you want).

-N