Please enable JavaScript.
Coggle requires JavaScript to display documents.
vex (Fonction
http://www.sidefx.com/docs/houdini16.0/vex/functions/_index…
vex
-
lenght
float d = length(P);
distance
float d = distance(P, {1,0,3} );
d = ch('scale');
Cd = (sin(d)+1)0.5;
clamp
float d = length(P);
P.y = clamp(d,0,3);
fit
float d = length(P);
P.y = fit(d,1,2, 1, 2);
-
minpos
vector pos = minpos(1,P);
float d = distance(P, pos);
d *= ch('scale');
Cd = 0;
Cd.r = sin(d);
-
nearpoint
int pt = nearpoint(1,P);
Cd = point(1,'Cd',pt);
Channel Ref
-
Ramp
float d = length(P);
d *= ch('scale');
P.y = chramp('myramp',d);
-
Set Attribut
Based on attributes
-
refer to sub coponent
Cd = P.x;
-
-
-
Common tricks
quantising
float d = length(P);
d =ch("Scale");
d=trunc(d);
d=dch("factor");
P.y=d;