I always forget how to do this ,so here we are.
This creates a spiral loop around a provided curve (no need to add cross section)
Important bits - Round Tube surface shape, Columns surface type, control the twists in the rotation section.
Wednesday, 8 October 2025
sweep node, spiral / wrap a curve around a curve
random vellum rest length in houdini core
To randomise the stretch rest length value on initialisation (not dynamic, it can't be animated like this). make a primitive wrangle between the vellum hair constraint and the solver.
I've used a connectivity node set to Primitives and changed the "class" attrib to "hairID". Here we affect the restlength value by multiplying it by some remapped randomness.
f@restlength*=fit01(chramp("remap",rand(@hairID)),chf("min"),chf("max"));
Labels:
chramp,
fit,
random,
rest length,
restlength,
vellum,
wires
remap "probability" of random CHANDOM
rand(@ptnum) will give you a distribution between 0 and 1.
We can remap the initial rand(@ptnum) using a chramp.
fit01 will let you remap this random value between a given minimum and maximum.
But what if you want to have more of the larger values, or mostly small values.. or even just the values inbetween?
But what if you want to have more of the larger values, or mostly small values.. or even just the values inbetween?
We can remap the initial rand(@ptnum) using a chramp.
eg. chramp("remap",rand(@ptnum);
Subscribe to:
Comments (Atom)