HScript fit expression - non-linear mapping

   94   2   1
User Avatar
Member
284 posts
Joined: June 2016
Offline
Does anyone know if its possible to make the HScript fit expression work so that the mapping from newmin to newmax is not linear, but rather curve like?

Ideally I'm trying to make the progression from newmin to newmax be more S-like than a straight linear relationship.


https://www.sidefx.com/docs/houdini/expressions/fit.html [www.sidefx.com]
Edited by art3mis - Nov. 9, 2019 20:08:07
User Avatar
Member
4263 posts
Joined: July 2007
Offline
you can use smooth() function for example

this for example :
fit01(smooth($FF, 1, 100), 5, 10)

would output smooth (ease in/out) value 5-10 over the frame range 1-100
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
284 posts
Joined: June 2016
Offline
Great Tomas, thanks!
  • Quick Links