Does there exist in TD a fit() function like in Houdini? E.g.
fit(3, 1, 5, 1, 10) would return 5.5
Does there exist in TD a fit() function like in Houdini? E.g.
fit(3, 1, 5, 1, 10) would return 5.5
tdu.remap(0.5, 0, 1, -180, 180)
Ahh, thanks, works like a charm! I even searched for ‘remap’ but all it gave me was the Remap TOP
Almost like a charm:
python >>> tdu.remap(3, 1, 0, 1, 10)
-17.0
The fit() function clamps the value to the input range, i.e. it should have given me 1 as the output. Oh well, I’ll just clamp() the input value myself.