Hi,

Is there a way of forcing the input range when creating a knob? Say my code depends on values within a certain range and will crash otherwise, is it best to simply clamp the values manually before using the variable controlled by the knob?

ie.

Double_knob(f, &falloff, IRange(0, 1), "falloff", "falloff");
clamp(falloff, 0, 1);

This way values will stay between 0-1 regardless of what is entered by the user into the knob, but is it good practice?

Cheers,
Steve

--
Stephen Newbold
Senior Compositor - Film
MPC
127 Wardour Street
Soho, London, W1F 0NL
Main - + 44 (0) 20 7434 3100
www.moving-picture.com

_______________________________________________
Nuke-dev mailing list
Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev

Reply via email to