Skip to content

Instantly share code, notes, and snippets.

View MinPos
@P = minpos (1, @P);
View Pscale along curve
//define scales
float seed = ch('seed') + @primseed;
@Rand_Pscale = fit01(rand(i@ptnum+seed+225), -ch('Rand_Scale'), ch('Rand_Scale')) * chramp("Ramp_Scale", @curveu);
@Uniform_Pscale = chf('Scale') * chramp('Ramp_Scale', @curveu);
//apply pscale
View Orientation Quaternion along curve
//create variables
vector tangentv = v@tangentv;
vector tangentu = v@tangentu;
tangentv = cross(tangentu, @N);
float seed = ch('seed') + @primseed;
@up = tangentu;