getValueNormalized()



  • This function seems to do the same as getValue() I've only tried it on a panel so far with a range of -100 to 100.


  • administrators

    It works for Knobs:

    const var Knob1 = Content.getComponent("Knob1");
    
    Knob1.setRange(-12, 1, 0.1);
    Knob1.set("saveInPreset", false);
    Knob1.setValue(-2.0);
    
    Console.print("Range: " + Knob1.getValue()); // -2
    Console.print("Normalized: " + Knob1.getValueNormalized()); // 0.33
    

    Haven't checked the other controls 🙂


Log in to reply
 

2
Online

315
Users

914
Topics

5.9k
Posts

Looks like your connection to Forum was lost, please wait while we try to reconnect.