Looping a knob?

Hey! Is there a way to make a knob loop like an encoder? I tried writing a script that would set() the value to 0 when it got to 1, but it ended up just getting stuck on 0 forever :frowning:

Snap does an okay enough job, but not being able to control it vertically is a bit of a bummer :confused:

Thanks!

Hey
Why not using a encoder ?
can you send to us your code ?

Hi Zoltan!

I’m using it to move the playhead in resolume, which only accepts an absolute value.
The script I tried was

if (value = 1) {
set(“playheadEncoder”, 0)
}

ok,
you have one mistake in your code :
if (value == 1) {
set(“playheadEncoder”, 0)
}

1 Like

Oh my god, I always get = == and === mixed up :sweat_smile:
Thank you so much!
It doesn’t get stuck anymore, but unfortunately, it doesn’t loop the knob like I thought it would, so sticking with a snap knob instead I guess :confused:

I’ll be using a midi controller most of the time, so it’s not THAT big of a deal I guess

there’s “always” a solution, but I don’t know it !?

Is there maybe a way to “reset” the touch state??

The touch state is read-only, only user interaction can change it.