attribute nodes
14 node types in the attribute category.
- attrib_array
- attrib_copy
- attrib_create
- attrib_delete
- attrib_noise
- attrib_promote
- attrib_randomize
- attrib_rename
- attrib_string
- attrib_transfer
- color
- connectivity
- material
- measure
attrib_array#
aliases: attribarray array_attrib attribute_array
Build or inspect array attributes (int[]/float[]/string[]): point neighbour lists, prim point lists, pack/unpack scalar attributes, array lengths.
Array attributes hold a variable-length list per element (Houdini i[]@/f[]@/s[]@). Modes: from_neighbours = point int[] of neighbouring point numbers (connectivity: points sharing an edge, ascending; radius: points within radius, nearest first); from_group_points = prim int[] of the prim's point numbers in vertex order; from_attributes = pack the listed attributes (scalars, or tuples component by component) into one array per element; to_attributes = unpack an array into name_0, name_1, … (shorter arrays leave defaults); length = int attribute with each element's array length. Wrangles read arrays as JS arrays (help topic "attributes").
Inputs
| # | name | description |
|---|---|---|
| 0 | geo | geometry |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
mode | enum | "from_neighbours" | what to do (see description) options: from_neighbours from_group_points from_attributes to_attributes length | |
name | string | "" | the array attribute: written by from_* modes ("" = nbrs / pts / array), read by to_attributes and length (required there) | |
class | enum | "auto" | class of the array (from_attributes/to_attributes/length; auto = where the attribute is found). from_neighbours is always point, from_group_points always prim options: auto point prim vertex detail | |
method | enum | "connectivity" | from_neighbours: points sharing an edge, or points within radius (any geometry, also point clouds) options: connectivity radius | |
radius | float | 0.5 | 0.. | from_neighbours radius mode: search radius |
max_count | int | 0 | 0..2147483647 | from_neighbours: keep at most this many (radius: the nearest); to_attributes: unpack at most this many entries (0 = no limit) |
include_self | bool | false | from_neighbours radius mode: include the point itself (Houdini nearpoints does) | |
attribs | string | "" | from_attributes: attributes to pack, in order, space-separated; wildcards expand in natural order ("w_*" = w_0 w_1 … w_10) | |
out_name | string | "" | to_attributes: prefix of the unpacked attributes ("" = name → name_0, name_1 …); length: the int attribute ("" = name_len) | |
delete_source | bool | false | from_attributes: delete the packed attributes; to_attributes: delete the array | |
group | group | "" | only these elements get values (point group for from_neighbours, prim group for from_group_points; point/prim classes otherwise); others get the empty array |
Writes: from_neighbours: point int[] nbrs; from_group_points: prim int[] pts; from_attributes: an array; to_attributes: name_0..name_k; length: int name_len
Example
{
"type": "attrib_array",
"params": {
"mode": "from_neighbours",
"method": "radius",
"radius": 0.3,
"max_count": 8,
"name": "nbrs"
}
}
attrib_copy#
aliases: attribcopy copy_attrib
Copy attributes from the second input by element index (or by matching an id attribute).
Elements pair up by index (element i takes the source's element i), or by match_by. Point positions are copied when names lists P itself (names "P" or "P Cd"; normals are not recomputed: add a normal node), never through a wildcard, so the default "*" leaves the shape alone. Warns when the counts differ in index mode (only the first elements pair up: the topology differs, so match_by an id), and when a listed name is not on the source in that class.
Inputs
| # | name | description |
|---|---|---|
| 0 | dest | geometry receiving attributes |
| 1 | source | geometry providing attributes |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
names | string | "*" | attribute name pattern (space-separated, * and ? wildcards, ^name excludes); point P only when listed by name aliases: name pattern | |
class | enum | "point" | class options: point prim vertex detail | |
match_by | string | "" | match elements by this int/string attribute instead of index (e.g. "id" or "name") |
Example
{
"nodes": {
"base": { "type": "grid" },
"tinted": {
"type": "color",
"in": ["base"],
"params": { "mode": "random" }
},
"out": {
"type": "attrib_copy",
"in": ["base", "tinted"],
"params": { "names": "Cd" }
}
},
"output": "out"
}
attrib_create#
aliases: attribcreate set_attrib attribute_create
Create/set an attribute to a constant value (type inferred from the value; float[]/int[]/string[] make array attributes).
A list value is a fixed-size TUPLE by default: [1,2,3] with type auto/float is a vector (float, size 3). With type "float[]", "int[]" or "string[]" the same list is an ARRAY attribute: every element gets its own variable-length list (here [1,2,3]), which wrangles, attrib_array and other nodes can then grow or shrink per element. A list of strings with type auto becomes a string[] array (there are no string tuples).
Inputs
| # | name | description |
|---|---|---|
| 0 | geo | geometry |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
name | string | "attr" | attribute name | |
class | enum | "point" | attribute class options: point prim vertex detail | |
value | json | 0 | value: number, [x,y,z...] (a tuple, or an array with an array type) or "string" | |
type | enum | "auto" | force a type; float[]/int[]/string[] = array attribute (value = the list every element gets) options: auto float int string float[] int[] string[] | |
group | group | "" | only set elements in this group (point/prim classes) |
Example
{
"type": "attrib_create",
"params": {
"name": "tags",
"class": "prim",
"type": "string[]",
"value": ["wall", "exterior"]
}
}
Used in the examples asset_cleanup, blob_creature, cloth_drape, corridor_panels, eroded_valley, forest_on_terrain, growth, guided_town, image_cutouts, lsystem_tree, machined_bracket, market_street, material_set, ocean_surface, rail_along_curve, rusty_drum, scifi_panel, stair_flight, town_from_lots, unreal_landscape, weathered_cabinet, worn_machine.
attrib_delete#
aliases: attribdelete delete_attrib
Delete attributes by name pattern (wildcards, "^name" to keep).
Inputs
| # | name | description |
|---|---|---|
| 0 | geo | geometry |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
names | string | "" | space-separated names/patterns, e.g. "Cd uv* ^uv2" aliases: name pattern | |
class | enum | "all" | which classes options: all point prim vertex detail | |
groups | string | "" | also delete groups (of every class) matching this pattern |
Example
{ "type": "attrib_delete", "params": { "names": "N uv*", "groups": "tmp*" } }
Used in the examples asset_cleanup, blob_creature, cloth_drape, eroded_valley, forest_on_terrain, fracture_settle, growth, guided_town, lsystem_tree, machined_bracket, market_street, ocean_surface, rail_along_curve, sparks, town_from_lots, unreal_landscape, worn_machine.
attrib_noise#
aliases: attribnoise
Write fractal noise into a float or vector attribute (e.g. for masks, colour variation, weights).
Inputs
| # | name | description |
|---|---|---|
| 0 | geo | geometry |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
name | string | "mask" | attribute name | |
size | int | 1 | 1..4 | components (1 = float, 3 = vector) |
range | vec2 | [0,1] | output range (noise -1..1 is mapped into this) | |
frequency | vec3 | [1,1,1] | noise frequency | |
offset | vec3 | [0,0,0] | noise offset | |
noise | enum | "perlin" | base noise options: perlin simplex value worley | |
fractal | enum | "fbm" | fractal mode options: fbm ridged turbulence none | |
octaves | int | 3 | 1..12 | octaves |
contrast | float | 1 | contrast around the midpoint | |
seed | float | 0 | random seed | |
rest_attrib | string | "rest" | sample the noise at this point vec3 attribute instead of P when it exists, so the pattern sticks to deforming geometry (see the rest node; "" = always P) |
Example
{
"type": "attrib_noise",
"params": { "name": "mask", "frequency": 2, "contrast": 1.5 }
}
attrib_promote#
aliases: attribpromote promote
Move an attribute between classes (point ↔ prim ↔ vertex ↔ detail) with average/min/max/sum/first.
Inputs
| # | name | description |
|---|---|---|
| 0 | geo | geometry |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
name | string | "Cd" | attribute name | |
from | enum | "point" | source class options: point prim vertex detailaliases: inclass from_class | |
to | enum | "prim" | destination class options: point prim vertex detailaliases: outclass to_class | |
method | enum | "average" | how to combine multiple sources (array attributes are copied: first or last only) options: average min max sum first last | |
new_name | string | "" | rename on promotion ("" = same name) | |
keep_original | bool | false | keep the source attribute |
Example
{
"type": "attrib_promote",
"params": { "name": "N", "from": "point", "to": "prim", "method": "average" }
}
Used in the example town_from_lots.
attrib_randomize#
aliases: attribrandomize randomize
Random attribute values: uniform range, normal distribution, unit directions, or random choice from a list.
Inputs
| # | name | description |
|---|---|---|
| 0 | geo | geometry |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
name | string | "pscale" | attribute name | |
class | enum | "point" | attribute class options: point prim vertex detail | |
distribution | enum | "uniform" | uniform in [min,max]; normal (mean=min, stddev=max); direction = unit vector; choice = pick from "values"; orient = random rotation quaternion options: uniform normal direction choice orient | |
min | json | 0.5 | number or vector (same size as max) | |
max | json | 1.5 | number or vector | |
values | json | [] | choice: list of values to pick from (numbers, vectors or strings) | |
seed | float | 0 | random seed | |
group | group | "" | only these elements |
Example
{
"type": "attrib_randomize",
"params": { "name": "pscale", "min": 0.5, "max": 1.5, "seed": 3 }
}
Used in the example lsystem_tree.
attrib_rename#
aliases: attribrename rename_attrib
Rename an attribute.
Inputs
| # | name | description |
|---|---|---|
| 0 | geo | geometry |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
from | string | "" | existing name | |
to | string | "" | new name | |
class | enum | "auto" | class (auto = first found) options: auto point prim vertex detail |
Example
{
"nodes": {
"ball": { "type": "sphere", "params": { "type": "ico", "level": 2 } },
"rocks": {
"type": "voronoi_fracture",
"in": ["ball"],
"params": { "count": 6 }
},
"renamed": {
"type": "attrib_rename",
"in": ["rocks"],
"params": { "from": "class", "to": "piece" }
}
},
"output": "renamed"
}
attrib_string#
aliases: string_edit attrib_string_edit name_pieces rename_pieces attribstringedit
Write or edit a string attribute per element: a pattern with the element's number, its piece number and other attributes ("hull_{piece:03}"), then find/replace and case. Names for pieces, LODs and engine suffixes in one node.
Houdini: Attribute String Edit + a name wrangle. For each element of class (in group) the value is built in three steps: format, when set, makes it from a pattern ("" keeps the current value); find/replace edits it (plain text, or a JavaScript regular expression with regex, $1 for groups); case lowers or raises it. Placeholders in format: {value} the current value, {index} the element number, {piece} the number of the element's piece, {pieces} how many there are, and {<attribute>} any attribute of the element (prim, then point and detail; a tuple joins with ""). A width pads numbers with zeros: {piece:03} → 007. Pieces are connected pieces (prims sharing points), or with piece_attrib the distinct values of that attribute (class, copynum, a name), numbered in order of first appearance; start offsets {index} and {piece} (1 counts from one). Examples: name 146 convex hulls for Godot in one node {format:"hull{piece:03}-convcolonly"}; LOD names to lower case {find:"LOD", replace:"lod"}; a prefix on every part {format:"gun{value}"}; copies {format:"crate{copynum}"}.
Inputs
| # | name | description |
|---|---|---|
| 0 | geo | geometry |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
name | string | "name" | string attribute to write (created when missing) aliases: attrib attribute | |
class | enum | "prim" | attribute class options: point prim vertex detail | |
format | string | "" | pattern of the new value, e.g. "hull_{piece:03}" ("" = keep the current value; placeholders {value} {index} {piece} {pieces} {<attribute>}, width {index:03}) aliases: pattern template | |
piece_attrib | string | "" | what makes a piece for {piece}: "" = connected pieces, else an attribute whose distinct values are the pieces (class, copynum, name) aliases: piece_attribute by | |
start | int | 0 | -1000000..1000000 | first number of {index} and {piece} (1 counts from one) aliases: offset first |
find | string | "" | text to replace in the value ("" = none) aliases: search from | |
replace | string | "" | what find becomes (every occurrence) aliases: to replace_with | |
regex | bool | false | find is a JavaScript regular expression (replace may use $1, $2 …) aliases: regexp use_regex | |
case | enum | "keep" | change the letter case last options: keep lower upperaliases: letter_case | |
group | group | "" | only elements in this group (point and prim classes) |
Writes: string attribute <name> on <class>
Example
{
"nodes": {
"ball": { "type": "sphere", "params": { "type": "ico", "level": 2 } },
"shards": {
"type": "voronoi_fracture",
"in": ["ball"],
"params": { "count": 8, "gap": 0.02 }
},
"hulls": {
"type": "attrib_string",
"in": ["shards"],
"params": { "format": "hull_{piece:03}-convcolonly" }
}
},
"output": "hulls"
}
attrib_transfer#
aliases: attribtransfer transfer
Transfer point attributes from the nearest points (or surface) of the second input, with distance falloff.
Inputs
| # | name | description |
|---|---|---|
| 0 | dest | geometry receiving attributes |
| 1 | source | geometry providing attributes |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
names | string | "Cd" | attribute name pattern (point attributes of source) | |
method | enum | "nearest_point" | nearest source point, or barycentric interpolation on the closest surface point options: nearest_point surface | |
max_distance | float | 1000000000 | no transfer beyond this distance | |
blend_width | float | 0 | 0.. | fade out over this distance before max_distance (0 = hard) |
Example
{
"nodes": {
"ground": {
"type": "grid",
"params": { "size": [10, 10], "divisions": [40, 40] }
},
"pts": { "type": "scatter", "in": ["ground"], "params": { "count": 20 } },
"colored": {
"type": "color",
"in": ["pts"],
"params": { "mode": "random" }
},
"painted": {
"type": "attrib_transfer",
"in": ["ground", "colored"],
"params": { "names": "Cd", "max_distance": 1.5, "blend_width": 0.5 }
}
},
"output": "painted"
}
color#
aliases: colour cd
Set Cd: constant, random per element/piece, or a ramp driven by an attribute (auto-ranged).
Inputs
| # | name | description |
|---|---|---|
| 0 | geo | geometry |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
mode | enum | "constant" | how colours are chosen options: constant random ramp | |
color | color | [1,1,1] | constant colour: [r,g,b] 0..1, "#rrggbb", or a name aliases: cd rgb | |
class | enum | "point" | where to store Cd options: point prim vertex detail | |
by | string | "" | random: attribute whose value picks the colour (e.g. "class", "name", "copynum"); "" = per element | |
hue_range | vec2 | [0,1] | random: hue range | |
saturation | vec2 | [0.5,0.8] | random: saturation range | |
value | vec2 | [0.8,1] | random: brightness range | |
attrib | string | "P.y" | ramp: driving attribute (".x/.y/.z" picks a component; vectors use length) | |
ramp | ramp | [[0,"#1d2b53"],[0.5,"#2a9d8f"],[1,"#f4e285"]] | ramp keys [pos, colour] | |
range | vec2 | [0,0] | ramp: attribute range mapped to 0..1 ([0,0] = auto min/max) | |
group | group | "" | only colour these elements (point/prim class) | |
seed | float | 0 | random seed |
Example
{ "type": "color", "params": { "mode": "ramp", "attrib": "P.y" } }
Used in the examples growth, lsystem_tree, market_street, sparks, town_from_lots.
connectivity#
aliases: pieces label_pieces
Label connected pieces with an integer attribute (default "class"), optionally a string "name".
Inputs
| # | name | description |
|---|---|---|
| 0 | geo | geometry |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
class | enum | "prim" | where to write the piece id options: prim point | |
attrib | string | "class" | int attribute name | |
name_prefix | string | "" | if set, also write prim string attribute "name" = prefix + id |
Writes: class (int), optional prim name
Example
{
"nodes": {
"ball": { "type": "sphere", "params": { "type": "ico", "level": 2 } },
"shards": {
"type": "voronoi_fracture",
"in": ["ball"],
"params": { "count": 8, "gap": 0.02 }
},
"ids": {
"type": "connectivity",
"in": ["shards"],
"params": { "attrib": "piece", "name_prefix": "shard_" }
}
},
"output": "ids"
}
Used in the example fracture_settle.
material#
aliases: material_assign shop assign_material materialassign
Assign a named material (PBR base colour, metallic, roughness, emissive, alpha) to prims, or one from a material output; exporters write it as a glTF material.
Writes the prim string attribute "material" for the selected prims and adds (or replaces) the entry in the detail material table "materials" (JSON). In glTF export the material decides the colour of its prims and their Cd is not written (export option vertex_colors keeps it). Assign several materials by chaining material nodes with different groups: by name pattern "@name=Glass*", prim ranges "0-11", or node groups (help topic "materials"). Texture maps are file paths (PNG or JPEG, relative to the package folder): glb/gltf embed them, usda references them through UsdUVTexture shaders, geo and json keep the paths in the table. A map replaces its scalar (base_color, roughness) in exports. Input 1 takes the material from elsewhere, typically a material output of a package ({"type": "owner/materials/steel"}): its entry and the maps it uses are copied in (from names it when the source holds several) and the colour and map params here are not used; with from, a merge of published package material outputs in input 1 does not cook the outputs after the last one that holds that material (the ones before it are cooked: a merge renames the maps of a later output after those of an earlier one). With nothing in input 0 the result is the material alone: a material output.
Inputs
| # | name | description |
|---|---|---|
| 0 | geo | geometry (none: the material alone, for a material output) (optional) |
| 1 | source | a material output, or any geometry carrying materials, to take the material from (optional) |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
name | string | "" | material name, also the glTF material name ("" = "material", or the source material's own name with input 1) aliases: shop_materialpath material path materialpath | |
from | string | "" | input 1: which of its materials ("" = its only one) aliases: source_material use | |
group | group (prim) | "" | prims to assign ("" = all). e.g. "top", "@P.y>0", "0-9"; "?trim" for a group some variants lack (nothing assigned where it is absent) | |
base_color | color | [0.8,0.8,0.8] | base colour [r,g,b] 0..1, "#rrggbb" or a name aliases: basecolor color cd albedo diffuse | |
metallic | float | 0 | 0..1 | metalness 0..1 (the glTF metallicFactor; texture_to_material with an orm map sets its own factors and ignores this) aliases: metal metalness |
roughness | float | 0.5 | 0..1 | roughness 0..1 (the glTF roughnessFactor, 1 under a roughness map; texture_to_material with an orm map sets its own factors and ignores this) aliases: rough |
emissive | color | [0,0,0] | emitted colour; components above 1 export with KHR_materials_emissive_strength aliases: emission emit | |
alpha | float | 1 | 0..1 | opacity; below 1 exports with alphaMode BLEND aliases: opacity opac |
alpha_mode | enum | "auto" | auto blends only when alpha is below 1 (vertex alpha never changes the mode); mask cuts out pixels below alpha_cutoff; explicit modes override auto options: auto opaque mask blend | |
alpha_cutoff | float | 0.5 | 0..1 | mask: discard where material alpha × texture alpha × vertex Alpha is below this value |
double_sided | bool | false | render both faces aliases: doublesided two_sided | |
unlit | bool | false | unlit shading (KHR_materials_unlit) aliases: emissive_only flat | |
kind | enum | "" | what the material is made of and how it ages ("" = not said): painted_metal, cast_metal, galvanised, bare_steel, stainless, plastic, rubber, concrete, painted_concrete, painted_plaster, painted_wood, bare_wood, asphalt, ceramic, decal, or keep (leave the part as it is); stored in the table, ignored by exporters, read by bake_material (a kind written here also applies to a material copied from input 1) options: painted_metal cast_metal galvanised bare_steel stainless plastic rubber concrete painted_concrete painted_plaster painted_wood bare_wood asphalt ceramic decal keepaliases: material_kind | |
base_color_map | path | "" | base colour texture (sRGB PNG/JPEG path, or "image:<name>" for an image the geometry carries; "" = none); uses the uv attribute aliases: basecolor_map albedo_map diffuse_map color_map basecolor_texture base_color_texture | |
normal_map | path | "" | tangent-space normal map (PNG/JPEG path or "image:<name>", OpenGL convention: +Y up; "" = none) aliases: normal_texture bump_map | |
roughness_map | path | "" | roughness texture (grey PNG/JPEG path or "image:<name>"; "" = none); glTF reads its green channel aliases: roughness_texture rough_map | |
packed_map | path | "" | packed map (PNG/JPEG path or "image:<name>"; "" = none) whose channels packing names; the glTF / Unreal occlusion-roughness-metallic map by default aliases: orm_map mask_map arm_map | |
packing | string | "orm" | channel layout of packed_map, one letter per channel R, G, B (A): o occlusion, r roughness, m metallic, h height, s smoothness, x unused; "orm" (glTF, Unreal), "hro" (R height, G roughness, B occlusion), "rma", "moxs" (a Unity HDRP mask map); glTF and usda exports and the preview read it by this layout (glTF holds the map rewritten as orm) aliases: packed_layout channel_layout | |
normal_format | enum | "opengl" | green-channel convention of normal_map: opengl (+Y up: glTF, Blender) or directx (Unreal); bakes, the preview and the glTF and usda exports read it (glTF holds the map rewritten as opengl) options: opengl directxaliases: normal_convention | |
tile | float | 0 | 0.. | metres one repeat of the maps covers on a metric uv (1 uv unit = 1 m), e.g. 3 for a concrete map tiling every 3 m; 0 = the maps fill 0..1 of the uv. Bakes read the maps at uv / tile; exporters write uv and maps as they are (the engine material does the tiling) aliases: tile_size tiling_metres texture_size |
Writes: prim "material" (string), detail "materials" (JSON table); with a source, the images its maps use
Example
{
"type": "material",
"params": {
"name": "brick",
"base_color": "#a5462e",
"roughness": 0.9,
"group": "@P.y<0.5"
}
}
Used in the examples asset_cleanup, blob_creature, cloth_drape, corridor_panels, eroded_valley, forest_on_terrain, growth, guided_town, image_cutouts, lsystem_tree, machined_bracket, market_street, material_set, rail_along_curve, rusty_drum, scifi_panel, stair_flight, town_from_lots, unreal_landscape, weathered_cabinet, worn_machine.
measure#
Measure prim area/perimeter, curve length, per-piece volume/area, or point curvature into attributes.
Inputs
| # | name | description |
|---|---|---|
| 0 | geo | geometry |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
measure | enum | "area" | what to measure (volume/total_area per connected piece; curvature = point mean-curvature proxy) options: area perimeter length volume curvature total_area | |
name | string | "" | output attribute ("" = the measure name) |
Writes: prim area/perimeter/length/volume, point curvature
Example
{ "type": "measure", "params": { "measure": "area", "name": "area" } }
Used in the examples asset_cleanup, growth, rail_along_curve.