I am trying to get a easy in/out interpolation on a ramp curve using the smooth() function but I was not able to get it right.
I know the output would supposed to be between 0 and 1 so I tried:
smooth(0,15,fit(@Frame,1,30,0,15)) * 15
I was trying to get a easy in/out between frames 1-30 where I have a linear ramp of values between 0-15 but it is not working this way everything goes to 0, what am I doing wrong?
Thanks!
Vex smooth() function how to use it
370 3 2- mzigaib
- Member
- 975 posts
- Joined: 4月 2008
- Offline
- BabaJ
- Member
- 2126 posts
- Joined: 9月 2015
- Offline
https://www.sidefx.com/docs/houdini/vex/functions/smooth.html [www.sidefx.com]
I'm wondering if you need to assign the result of your fit function first before referencing the 'return' of the fit funtion.
Or cast the return of fit as a float(within the Smooth)?
Without the cast of fit, is the smooth function treating the return of the fit function as an integer (rounded down to zero)?
Sometimes vex functions don't play well with other embedded functions as arguments.
Computes a number between zero and one. Returns 0 if the amount passed in is less than or equal to value1, 1 if the amount is greater than or equal to value2.
I'm wondering if you need to assign the result of your fit function first before referencing the 'return' of the fit funtion.
Or cast the return of fit as a float(within the Smooth)?
Without the cast of fit, is the smooth function treating the return of the fit function as an integer (rounded down to zero)?
Sometimes vex functions don't play well with other embedded functions as arguments.
Edited by BabaJ - 2024年11月9日 16:09:39
- mzigaib
- Member
- 975 posts
- Joined: 4月 2008
- Offline
- mzigaib
- Member
- 975 posts
- Joined: 4月 2008
- Offline
-
- Quick Links