Partition
surface node
Places points and primitives into groups based on a user-supplied rule.
See also: Group, Attrib Create
The Partition SOP places points and primitives into groups based on a user-supplied rule. For example, in order to put each point in its own group named pt_pointnumber, enter the rule pt_$PT.
The rule can be any valid Houdini expression. Rules should evaluate to valid group names. The result of a rule may be modified to make it a valid group name (for example a result of “1” will be turned into the group “_1“).
Standard local variables are available as well as local variables created with the AttribCreate SOP.
Local variables
Variable names ending with 2 refer to the geometry from the second input, if applicable. For example, PT2 is the current point number from the second input.
|
TX, TY, TZ |
Point position. |
|
TW |
See WEIGHT. |
|
CEX, CEY, CEZ |
The centroid of the geometry. |
|
XMIN, XMAX |
The X extents of the bounding box of the geometry. |
|
YMIN, YMAX |
The Y extents of the bounding box of the geometry. |
|
ZMIN, ZMAX |
The Z extents of the bounding box of the geometry |
|
SIZEX, SIZEY, SIZEZ |
The size of the bounding box. |
|
BBX, BBY, BBZ |
The point’s relative position in the bounding box. |
|
WEIGHT |
Point spline weight. |
|
PT |
The point number of the currently processed point. |
|
PR, NPR |
Primitive number & total number of primitives. |
|
VTX, NVTX |
Vertex number & total number of vertices. |
|
NPT |
The total number of points in the template geometry. |
|
LIFE |
Percent of total life used (from 0 to 1). |
|
NX, NY, NZ |
Normal vector. |
|
MAPU, MAPV, MAPW |
Point or vertex texture coordinates. |
|
VX, VY, VZ |
Velocity direction. |
|
MAT |
Material name specification. |
|
CR, CG, CB |
Diffuse point or vertex color. |
|
CA |
Point or vertex alpha value. |
|
COMX, COMY, COMZ |
Center of mass. |
|
LOD |
Level of detail. |
|
RESTX, RESTY, RESTZ |
The rest position. |
|
DIST |
Distance from particle to last collision. |
|
MASS |
Point mass. |
|
DRAG |
Point drag. |
|
TENSION |
Spring tension of an edge. |
|
SPRINGK |
Elasticity of a point. |
|
PSCALE |
Particle Scale. |
|
AGE |
The seconds a particle in the template has been alive. |
|
CREASE |
Point or vertex crease weight value. |
|
AREA |
The surface area of the primitive (created by the Measure SOP). |
|
PERIMETER |
The perimeter of the primitive (created by the Measure SOP). |
|
ID |
The ID of the particle in the input. |
|
UPX, UPY, UPZ |
The vector pointed in the up direction. |
|
WIDTH |
The width of the curve. Used by mantra for rendering curves & polywire for generating trees. |
|
SEGS |
Number of segments to divide a curve up into in Polywire (created by L-systems). |
|
DIV |
Number of divisions to build the circle swept with Polywire (created by L-systems). |
|
LAGE |
The age of the point in the L-system computation. |
|
ARC |
Arc length distance from root in the L-systems. |
|
GEN |
Generation in the L-systems. |
|
CURLAYER |
Stores the currently processed layer for texture/materials (set by the Layer SOP). |
|
MAXLAYER |
The number of layers that are considered active for display. |
Parameters
|
Group |
The primitives or points considered for the operation. |
|
Entity |
The type of the entity specified in the group parameter. |
|
Geometry Type |
The type of primitives to consider for this operation. Only applicable when Entity is set to Primitives. |
|
Rule |
The rule with which to evaluate each primitive or point. The result of the rule is the name of the group in which the primitive or point will be placed. |
Usages in other examples
| Example name | Example for | |
|---|---|---|
| ClothSeam |
Cloth Create Seam surface node |
|
| PointBasedRBD |
Dop Import surface node |
|
| AddParticleCurves |
Particle surface node |
|
| ShatterGlass |
RBD Glue Object dynamics node |
|
| BlendSolverWithRBDGlue |
RBD Glue Object dynamics node |