Hi,
Can I do this in VOP and VEX? Or is it only for vectors?
I would like my distance function normalised like you can in the Falloff node.
Would appreciate your help.
Thank you.
Normalise a float value to 0 and 1? (Normalised distance?)
7798 2 0-
- OdFotan
- Member
- 192 posts
- Joined: April 2015
- Offline
-
- Andr
- Member
- 899 posts
- Joined: Feb. 2016
- Offline
Hello,
the function normalize() is a different kind of normalization, that produces unit vectors.
If I understand, what you need is the fit() function to fit your values in range 0-1.
To use that function you need to know the max and min of your distance values: you can use the attribute promote node which comes with some handy promotion methods (maximum and minimum).
Have a look at the project file.
hope that's what you're after
cheers
the function normalize() is a different kind of normalization, that produces unit vectors.
If I understand, what you need is the fit() function to fit your values in range 0-1.
To use that function you need to know the max and min of your distance values: you can use the attribute promote node which comes with some handy promotion methods (maximum and minimum).
Have a look at the project file.
hope that's what you're after
cheers
-
- Kareeem
- Member
- 100 posts
- Joined: Oct. 2021
- Offline
Andr
Hello,
the function normalize() is a different kind of normalization, that produces unit vectors.
If I understand, what you need is the fit() function to fit your values in range 0-1.
To use that function you need to know the max and min of your distance values: you can use the attribute promote node which comes with some handy promotion methods (maximum and minimum).
Have a look at the project file.
hope that's what you're after
cheers
Thanks !!
-
- Quick Links


