VEXpressions
- Sammy Lyu
- Aug 5
- 1 min read
This section focuses on VEXpressions in Houdini
As of writing, my Houdini version is 20.5.614
[#1] FIT01 and RAND to create randomisation for point and prim values
The fit01 function allows us to specify and certain range of values.
The RAND function randomly selects a value between that range.
Together, they are able to randomise the value within a range for a certain attribute.
This is an example for the attribute, air resistance (airresist):
airresist = fit01(rand(@ptnum+24), 0.1, 0.2);
This function creates a random value between 0.1 and 0.2 for the air resistance property at the currently active point number, offset by a value of 24.