Best way to soft clip a value?

Hi All,

what is a good ideally cheap way to soft clip a value?
Say that as the value nears for example -0.5 I want to gradually ‘bend’ the value to zero, over a “width” of 2. Ie the ‘bending’ of the value will happen from 1.5 -> -0.5.
Creating a softening in the clamping.

I probably can do this using a Timeline node but was wondering if there might be an easier cheaper mathsy solution?


You could use the FInterpTo or FInterpEaseinout. Both will have a sort of soft value remapping behavior in their own way.

Thanks a lot! I’ll take a look at that one!