How to quantize a value?
-
Hi all,
is there an actor or a combination of actors to quantize a value? I want to input 1..2..3......100, quantize that to 10 and get 0..10..20..30.....100. How can this be done?
Thanks,
Uwe
-
@ughoenig said:
Hi all,is there an actor or a combination of actors to quantize a value? I want to input 1..2..3......100, quantize that to 10 and get 0..10..20..30.....100. How can this be done?
Best Wishes,
Mark
-
Alternatively use a Javascript Actor and paste the following code in the editor.
function main()
{
return Math.floor(arguments[0] / 10.0) * 10;
}
-
Ah! Thank you very much, mark and hairi! I knew there had to be some way... :-)