HScript fit expression - non-linear mapping

   1245   2   1
User Avatar
Member
350 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
8549 posts
Joined: July 2007
Online
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
350 posts
Joined: June 2016
Offline
Great Tomas, thanks!
  • Quick Links