attribute nodes

14 node types in the attribute category.

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

#namedescription
0geogeometry

Parameters

nametypedefaultrangedescription
modeenum"from_neighbours"what to do (see description)
options: from_neighbours from_group_points from_attributes to_attributes length
namestring""the array attribute: written by from_* modes ("" = nbrs / pts / array), read by to_attributes and length (required there)
classenum"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
methodenum"connectivity"from_neighbours: points sharing an edge, or points within radius (any geometry, also point clouds)
options: connectivity radius
radiusfloat0.50..from_neighbours radius mode: search radius
max_countint00..2147483647from_neighbours: keep at most this many (radius: the nearest); to_attributes: unpack at most this many entries (0 = no limit)
include_selfboolfalsefrom_neighbours radius mode: include the point itself (Houdini nearpoints does)
attribsstring""from_attributes: attributes to pack, in order, space-separated; wildcards expand in natural order ("w_*" = w_0 w_1 … w_10)
out_namestring""to_attributes: prefix of the unpacked attributes ("" = name → name_0, name_1 …); length: the int attribute ("" = name_len)
delete_sourceboolfalsefrom_attributes: delete the packed attributes; to_attributes: delete the array
groupgroup""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

#namedescription
0destgeometry receiving attributes
1sourcegeometry providing attributes

Parameters

nametypedefaultrangedescription
namesstring"*"attribute name pattern (space-separated, * and ? wildcards, ^name excludes); point P only when listed by name
aliases: name pattern
classenum"point"class
options: point prim vertex detail
match_bystring""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

#namedescription
0geogeometry

Parameters

nametypedefaultrangedescription
namestring"attr"attribute name
classenum"point"attribute class
options: point prim vertex detail
valuejson0value: number, [x,y,z...] (a tuple, or an array with an array type) or "string"
typeenum"auto"force a type; float[]/int[]/string[] = array attribute (value = the list every element gets)
options: auto float int string float[] int[] string[]
groupgroup""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

#namedescription
0geogeometry

Parameters

nametypedefaultrangedescription
namesstring""space-separated names/patterns, e.g. "Cd uv* ^uv2"
aliases: name pattern
classenum"all"which classes
options: all point prim vertex detail
groupsstring""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

#namedescription
0geogeometry

Parameters

nametypedefaultrangedescription
namestring"mask"attribute name
sizeint11..4components (1 = float, 3 = vector)
rangevec2[0,1]output range (noise -1..1 is mapped into this)
frequencyvec3[1,1,1]noise frequency
offsetvec3[0,0,0]noise offset
noiseenum"perlin"base noise
options: perlin simplex value worley
fractalenum"fbm"fractal mode
options: fbm ridged turbulence none
octavesint31..12octaves
contrastfloat1contrast around the midpoint
seedfloat0random seed
rest_attribstring"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

#namedescription
0geogeometry

Parameters

nametypedefaultrangedescription
namestring"Cd"attribute name
fromenum"point"source class
options: point prim vertex detail
aliases: inclass from_class
toenum"prim"destination class
options: point prim vertex detail
aliases: outclass to_class
methodenum"average"how to combine multiple sources (array attributes are copied: first or last only)
options: average min max sum first last
new_namestring""rename on promotion ("" = same name)
keep_originalboolfalsekeep 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

#namedescription
0geogeometry

Parameters

nametypedefaultrangedescription
namestring"pscale"attribute name
classenum"point"attribute class
options: point prim vertex detail
distributionenum"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
minjson0.5number or vector (same size as max)
maxjson1.5number or vector
valuesjson[]choice: list of values to pick from (numbers, vectors or strings)
seedfloat0random seed
groupgroup""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

#namedescription
0geogeometry

Parameters

nametypedefaultrangedescription
fromstring""existing name
tostring""new name
classenum"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

#namedescription
0geogeometry

Parameters

nametypedefaultrangedescription
namestring"name"string attribute to write (created when missing)
aliases: attrib attribute
classenum"prim"attribute class
options: point prim vertex detail
formatstring""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_attribstring""what makes a piece for {piece}: "" = connected pieces, else an attribute whose distinct values are the pieces (class, copynum, name)
aliases: piece_attribute by
startint0-1000000..1000000first number of {index} and {piece} (1 counts from one)
aliases: offset first
findstring""text to replace in the value ("" = none)
aliases: search from
replacestring""what find becomes (every occurrence)
aliases: to replace_with
regexboolfalsefind is a JavaScript regular expression (replace may use $1, $2 …)
aliases: regexp use_regex
caseenum"keep"change the letter case last
options: keep lower upper
aliases: letter_case
groupgroup""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

#namedescription
0destgeometry receiving attributes
1sourcegeometry providing attributes

Parameters

nametypedefaultrangedescription
namesstring"Cd"attribute name pattern (point attributes of source)
methodenum"nearest_point"nearest source point, or barycentric interpolation on the closest surface point
options: nearest_point surface
max_distancefloat1000000000no transfer beyond this distance
blend_widthfloat00..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

#namedescription
0geogeometry

Parameters

nametypedefaultrangedescription
modeenum"constant"how colours are chosen
options: constant random ramp
colorcolor[1,1,1]constant colour: [r,g,b] 0..1, "#rrggbb", or a name
aliases: cd rgb
classenum"point"where to store Cd
options: point prim vertex detail
bystring""random: attribute whose value picks the colour (e.g. "class", "name", "copynum"); "" = per element
hue_rangevec2[0,1]random: hue range
saturationvec2[0.5,0.8]random: saturation range
valuevec2[0.8,1]random: brightness range
attribstring"P.y"ramp: driving attribute (".x/.y/.z" picks a component; vectors use length)
rampramp[[0,"#1d2b53"],[0.5,"#2a9d8f"],[1,"#f4e285"]]ramp keys [pos, colour]
rangevec2[0,0]ramp: attribute range mapped to 0..1 ([0,0] = auto min/max)
groupgroup""only colour these elements (point/prim class)
seedfloat0random 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

#namedescription
0geogeometry

Parameters

nametypedefaultrangedescription
classenum"prim"where to write the piece id
options: prim point
attribstring"class"int attribute name
name_prefixstring""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

#namedescription
0geogeometry (none: the material alone, for a material output) (optional)
1sourcea material output, or any geometry carrying materials, to take the material from (optional)

Parameters

nametypedefaultrangedescription
namestring""material name, also the glTF material name ("" = "material", or the source material's own name with input 1)
aliases: shop_materialpath material path materialpath
fromstring""input 1: which of its materials ("" = its only one)
aliases: source_material use
groupgroup (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_colorcolor[0.8,0.8,0.8]base colour [r,g,b] 0..1, "#rrggbb" or a name
aliases: basecolor color cd albedo diffuse
metallicfloat00..1metalness 0..1 (the glTF metallicFactor; texture_to_material with an orm map sets its own factors and ignores this)
aliases: metal metalness
roughnessfloat0.50..1roughness 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
emissivecolor[0,0,0]emitted colour; components above 1 export with KHR_materials_emissive_strength
aliases: emission emit
alphafloat10..1opacity; below 1 exports with alphaMode BLEND
aliases: opacity opac
alpha_modeenum"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_cutofffloat0.50..1mask: discard where material alpha × texture alpha × vertex Alpha is below this value
double_sidedboolfalserender both faces
aliases: doublesided two_sided
unlitboolfalseunlit shading (KHR_materials_unlit)
aliases: emissive_only flat
kindenum""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 keep
aliases: material_kind
base_color_mappath""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_mappath""tangent-space normal map (PNG/JPEG path or "image:<name>", OpenGL convention: +Y up; "" = none)
aliases: normal_texture bump_map
roughness_mappath""roughness texture (grey PNG/JPEG path or "image:<name>"; "" = none); glTF reads its green channel
aliases: roughness_texture rough_map
packed_mappath""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
packingstring"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_formatenum"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 directx
aliases: normal_convention
tilefloat00..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

#namedescription
0geogeometry

Parameters

nametypedefaultrangedescription
measureenum"area"what to measure (volume/total_area per connected piece; curvature = point mean-curvature proxy)
options: area perimeter length volume curvature total_area
namestring""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.