Is it possible to set the encoder value? | Intech Studio
💬 general Grid

Is it possible to set the encoder value?

Sigabort
Sigabort · · 4 replies

So i want to be able to return a decoder to a defualt value when i push down on it - when I process the press down event, is there any way to set the encoder to a specific value? thx

Replies (4)

narayb narayb ·

For that I would use the event_trigger() function.

It will instantly make it so that an event runs. Combining that with setting the encoder to 0, you'll end up with something like this:

self:encoder_value(0)
event_trigger(self:element_index(),2)
-- 2 here means to trigger the encoder event
narayb narayb ·

You can read more about event_trigger() here.

Sigabort Sigabort ·

thankyou so much.

narayb narayb ·

@user here's your solution buddy!

Discord

View on Discord

This post is from the Intech Studio Discord community.

Open thread →