LAF: get a value of a knob by its id
-
Hi guys!
In a custom LAF how can I get a value of a knob by its id?
-
@darkInteger Do you want to get the value of the knob that the laf function is assigned to, or of a different control?
-
@d-healey Basically I have like 10 knobs LAF assigned and I want to draw lines between its values for UI purposes.
-
@darkInteger Could you post a snippet?
-
@d-healey well, the code is a mess :S I am just started learning.
But I know I can use obj.value to get the value but I don't know how to specify it with its id... what is the syntax? -
@darkInteger said in LAF: get a value of a knob by its id:
I don't know how to specify it with its id... what is the syntax?
If you have the value already, why do you need to get it by the ID? Generally you want look and feel functions to be self contained without relying on external data.
-
@d-healey THX!!!