copy nodes
5 node types in the copy category.
copy_to_points#
aliases: copytopoints instance copy_to_pts
Instance geometry onto points using P, orient | N+up, pscale, scale, rot, pivot, trans. Template point attributes (Cd…) are copied over. pack:true makes packed instances (cheap at millions).
pack:false (default) makes real copies. pack:true makes one packed prim per template point: an anchor point at the instance position carrying the template point attributes, referencing the shared source with the instance rotation/scale (no geometry is copied). Packed instances render, export to glb (EXT_mesh_gpu_instancing) and usda (PointInstancer), survive transform/merge/delete/attribute nodes, and are expanded automatically for nodes that need polygons (or explicitly with unpack). Variants: variants "name" (split the source by prim name) or "piece" (by connectivity), or piece_attrib for any prim attribute; the template point attribute variant_attrib picks one per copy (an int index into the pieces, sorted by value for attributes, or the exact value, e.g. a string name); without that attribute the pieces cycle, or, with variant_weights, are picked at random with those weights (seeded; PCG Static Mesh Spawner weights). scale_attrib and rotate_attrib add a scale and a local rotation from any template attribute (e.g. a mask driving the size) on top of pscale/scale/orient/rot. Unreal PCG: Static Mesh Spawner. Pieces placed from a list in a file (P, yaw, pscale, name per row): help topic "recipes", "instance a placement list".
Inputs
| # | name | description |
|---|---|---|
| 0 | geo | geometry to copy |
| 1 | points | template points |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
group | group (point) | "" | template points to use ("" = all) | |
pack | bool | false | output packed instances (one point + one packed prim per copy, sharing the source) instead of real copies aliases: pack_and_instance packed | |
copy_attribs | string | "*" | template point attributes copied onto the copies (pattern; transform attributes are always excluded) | |
copy_attrib | string | "copynum" | prim int attribute with the copy index ("" = none) | |
variants | enum | "none" | split the source into variants: name = by prim "name", piece = by connectivity (none = only when piece_attrib is set) options: none name piece | |
piece_attrib | string | "" | variants: source prim attribute that splits the geometry into pieces (e.g. "name" or "class") | |
variant_attrib | string | "variant" | variants: template point attribute choosing a piece (int index into sorted piece values, or the exact value) | |
variant_weights | json | [] | variants: weights for a seeded weighted random pick when the template has no variant_attrib attribute: by piece value, e.g. {"tree": 3, "bush": 1}, or a list in piece order (names sorted alphabetically, connectivity pieces in prim order), e.g. [3, 1, 1]; missing weights are 0 aliases: weights variant_probabilities | |
seed | float | 0 | variant_weights: random seed | |
scale_attrib | string | "" | template point attribute multiplying the copy scale (float = uniform, vec3 = per axis), on top of pscale and scale aliases: scale_by | |
rotate_attrib | string | "" | template point attribute adding a local rotation after orient/N/rot: float = degrees about +Y (yaw), vec3 = Euler degrees (XYZ), vec4 = quaternion aliases: rotate_by |
Writes: prim copynum; template point attributes on copied points (pack: on the instance anchor points)
Example
{
"nodes": {
"pine": {
"type": "tube",
"params": {
"radius": 0.4,
"radius_top": 0,
"height": 1.5,
"center": [0, 0.75, 0]
}
},
"pine_named": {
"type": "attrib_create",
"in": ["pine"],
"params": { "name": "name", "class": "prim", "value": "pine" }
},
"rock": {
"type": "sphere",
"params": { "type": "ico", "level": 1, "radius": 0.3 }
},
"rock_named": {
"type": "attrib_create",
"in": ["rock"],
"params": { "name": "name", "class": "prim", "value": "rock" }
},
"library": { "type": "merge", "in": ["pine_named", "rock_named"] },
"ground": { "type": "grid", "params": { "size": [20, 20] } },
"pts": { "type": "scatter", "in": ["ground"], "params": { "count": 200 } },
"forest": {
"type": "copy_to_points",
"in": ["library", "pts"],
"params": { "pack": true, "variants": "name", "variant_weights": [3, 1] }
}
},
"output": "forest"
}
Used in the examples asset_cleanup, cloth_drape, forest_on_terrain, guided_town, lsystem_tree, market_street, rail_along_curve, scifi_panel, town_from_lots, unreal_landscape.
copy_xform#
aliases: copy copyxform array duplicate
Make N copies, each transformed cumulatively (Houdini Copy and Transform): stairs, radial arrays, stacks.
Copies placed from a list instead (positions, yaw, scale and a piece name per row, from a CSV or JSON file): read the list with file and instance the pieces onto it with copy_to_points {pack, variants "name", variant_attrib "name", rotate_attrib "yaw"}, exported as one instanced GLB: help topic "recipes", "instance a placement list".
Inputs
| # | name | description |
|---|---|---|
| 0 | geo | geometry to copy |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
count | int | 4 | 0..100000 | total copies (including the original) aliases: ncy copies n |
translate | vec3 | [0,0,0] | offset applied per copy, in metres (0 by default, as in Houdini: set it, or rotate, or the copies stack in place) aliases: t offset | |
rotate | vec3 | [0,0,0] | rotation per copy (degrees) aliases: r | |
scale | vec3 | [1,1,1] | scale per copy (compounding) aliases: s | |
pivot | vec3 | [0,0,0] | pivot for rotate/scale | |
copy_attrib | string | "copynum" | prim int attribute storing the copy index ("" = none) |
Writes: prim copynum
Example
{
"type": "copy_xform",
"params": { "count": 12, "translate": [0, 0.2, 0], "rotate": [0, 30, 0] }
}
Used in the examples cloth_drape, corridor_panels, fracture_settle, image_cutouts, lsystem_tree, machined_bracket, market_street, ocean_surface, rail_along_curve, scifi_panel, sparks, stair_flight.
pack#
aliases: packgeometry pack_geometry assemble
Turn pieces into packed instances: one anchor point + packed prim per piece, referencing a shared source (identical pieces share one source).
Each piece becomes a source geometry moved so its pivot is at the origin; the anchor point sits at the pivot, so nothing moves. Attributes listed in "carry" go onto the instance (prim attributes onto the packed prim, point/vertex attributes onto the anchor point): a value that is constant over the piece moves out of the source (so pieces that differ only by colour or name share a source), otherwise the anchor gets the average (floats) or first value and the source keeps its own. Points not used by any prim stay unpacked unless by = "all". Packed prims are drawn, transformed, merged and exported as instances; unpack turns them back into polygons.
Inputs
| # | name | description |
|---|---|---|
| 0 | geo | geometry to pack |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
by | enum | "connectivity" | pieces: connected parts, prim "name" values, values of a prim attribute ("attrib"), or everything as one instance ("all", Houdini Pack) options: connectivity name attrib all | |
attrib | string | "" | by = attrib: prim attribute whose values define the pieces | |
pivot | enum | "centroid" | instance pivot per piece: bbox centre, world origin, bbox minimum, or centre of the bbox bottom (trees, buildings) options: centroid origin bbox_min bbox_center_bottom | |
carry | string | "name Cd material" | attributes carried onto the instances (names or patterns) | |
source_dedup | bool | true | pieces with identical content (after moving to their pivot) share one source |
Writes: packed prims (one per piece) on anchor points; carried attributes on the anchor point / packed prim
Example
{
"type": "pack",
"in": ["fractured"],
"params": { "by": "connectivity", "pivot": "centroid" }
}
scatter#
aliases: scatter_points distribute
Scatter points on surfaces (area-weighted, blue-noise spacing; by count or per m²; density attribute and 0..1 mask; relaxation; exact minimum distance), along curves, or inside volumes.
Houdini: Scatter (Scatter and Align). Unreal PCG: Surface Sampler (Spline Sampler for curves, Volume Sampler). generate_by: count = exactly count points; density = density × density_scale points per square metre (per metre on curves, per cubic metre in volumes) of area × weight; auto = density when density > 0, else count (there, for compatibility, density_attrib only redistributes the points while density_mask still scales the total). Weight per point = density_attrib (≥ 0, point, vertex or prim attribute, Houdini's density attribute) × density_mask (clamped 0..1, e.g. the "mask" of the mask node). relax: blue-noise spacing by weighted sample elimination (5 candidates per point) whose radii follow the weights (auto mode with only density_attrib keeps the legacy uniform radius, which evens the density out). relax_iterations: Lloyd-style point relaxation afterwards (surface mode): points push apart to the spacing of the local density (relax_radius to fix it) and are projected back onto the surface through a BVH; points that end where the weight is 0 are dropped. min_distance: exact minimum distance between points (dart throwing over the candidates; fewer than count points when the surface is full). max_per_prim: at most that many points per source prim. emit_attributes: which source attributes the points carry (point and vertex attributes interpolated, prim attributes copied; "^name" excludes). N: the input N is always carried (point or vertex N interpolated and normalised, prim N copied; attrib_delete removes it); scatter computes none of its own unless write_normals is on (the surface normal, or the tangent along curves), as the Houdini scatter does, because copy_to_points turns each copy so its +Z follows N and an N pointing up lays upright models on their side. Packed input is unpacked first. A heightfield or an SDF has no polygons and is refused: use heightfield_scatter, or heightfield_to_mesh / sdf_to_mesh first. Chain: mask → scatter → orient → prune → copy_to_points (help topic "pcg").
Inputs
| # | name | description |
|---|---|---|
| 0 | geo | surface, curves, or closed mesh (volume mode) |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
count | int | 500 | 0..10000000 | number of points aliases: npts points num |
density | float | 0 | 0.. | points per unit area/length/volume (overrides count when > 0) |
mode | enum | "auto" | auto = surface if polygons, curve if only polylines options: auto surface curve volume | |
relax | bool | true | even (blue-noise) spacing via sample elimination | |
backend | enum | "auto" | auto selects loaded WASM or parallel js per stage and workload, otherwise js; kernel loads WASM for elimination, distance rejection and surface relaxation options: auto kernel js | |
density_attrib | string | "" | point, vertex or prim float attribute (≥ 0) scaling the local density (e.g. a noise mask; 2 = twice as many points as 1) aliases: densityattrib density_attribute | |
seed | float | 0 | random seed | |
group | group (prim) | "" | prim group pattern to affect ("" = all). e.g. "top", "!top", "0-9", "@P.y>0" | |
keep_attribs | bool | true | carry source attributes onto the scattered points (see emit_attributes) | |
generate_by | enum | "auto" | count = exactly count points; density = density × density_scale points per m² of area × weight; auto = density when density > 0, else count options: auto count densityaliases: generateby count_mode method | |
density_mask | string | "" | point, vertex or prim attribute 0..1 multiplying the density (e.g. "mask" from the mask node) aliases: mask mask_attrib density_mask_attrib | |
density_scale | float | 1 | 0.. | multiplies density (density and auto modes) aliases: densityscale |
relax_iterations | int | 0 | 0..100 | surface: Lloyd-style relaxation passes (points push apart and are projected back onto the surface) aliases: relaxiterations relax_iter relax_passes |
relax_radius | float | 0 | 0.. | relaxation spacing in metres (0 = from the local density) |
min_distance | float | 0 | 0.. | exact minimum distance between points (0 = off); the count can come out lower aliases: mindist min_dist poisson_radius |
max_per_prim | int | 0 | 0..2147483647 | at most this many points per source prim (0 = no limit) aliases: maxperprim |
emit_attributes | string | "*" | source attributes carried onto the points (pattern: point/vertex interpolated, prim copied; "^Cd" excludes) aliases: attributes interpolate emit | |
write_sourceprim | bool | true | write int sourceprim (the source prim of each point) aliases: source_prim sourceprim | |
write_primuv | bool | false | write sourceprimuv (prim uv of the point on its source prim, Houdini primuv convention) aliases: prim_uv sourceprimuv | |
write_seed | bool | false | write int seed per point (PCG $Seed; a hash of seed and the point number) aliases: seed_attrib pcg_seed | |
write_normals | bool | false | write N when no input N is carried: the surface normal (surface mode) or the curve tangent (curve mode); off leaves the points without N so copy_to_points stands copies upright aliases: compute_normals output_normals |
Writes: point sourceprim; N when the input has N (carried) or write_normals is on; optional sourceprimuv, seed; source attributes (emit_attributes)
Example
{
"nodes": {
"ground": {
"type": "grid",
"params": { "size": [20, 20], "divisions": [40, 40] }
},
"m": {
"type": "mask",
"in": ["ground"],
"params": { "by": "noise", "min": 0.5, "max": 1, "falloff": 0.1 }
},
"pts": {
"type": "scatter",
"in": ["m"],
"params": {
"generate_by": "density",
"density": 2,
"density_mask": "mask",
"min_distance": 0.3
}
}
},
"output": "pts"
}
Used in the examples asset_cleanup, guided_town, market_street.
unpack#
aliases: unpackgeometry unpack_geometry unpack_packed
Expand packed instances into real geometry (transformed copies of their sources); anchor attributes such as Cd and name carry over.
Instances are expanded in prim order after the other prims; source attributes and groups come along, N/v/up/orient are rotated. transfer_attributes copies anchor point / packed prim attributes onto the unpacked points / prims where the source does not define them (Cd and Alpha: in any class), so a source's own colours win and an anchor colour tints sources without colour. Prim and point groups of the packed prims / anchors extend over the unpacked elements. Nodes that need polygons unpack automatically (with a warning); use this node to choose what is transferred, to unpack a subset, or to limit the count while previewing.
Inputs
| # | name | description |
|---|---|---|
| 0 | geo | geometry with packed prims |
Parameters
| name | type | default | range | description |
|---|---|---|---|---|
group | group (prim) | "" | packed prims to unpack ("" = all); the others stay packed | |
transfer_attributes | string | "name Cd material piece" | anchor point / packed prim attributes copied onto the unpacked points / prims (names or patterns, "*" = all, "" = none) aliases: transfer attributes | |
limit | int | 0 | 0..2147483647 | unpack at most this many instances (in prim order) and drop the rest of the selection; 0 = all aliases: max_instances |
piece_attrib | string | "" | prim int attribute receiving the packed prim number of every unpacked prim (-1 on prims that were not packed; "" = none) | |
recursive | bool | false | also unpack instances inside the sources (false = one level, as in Houdini: nested instances become packed prims) |
Writes: unpacked geometry; transferred anchor attributes; optional prim int piece_attrib
Example
{
"type": "unpack",
"in": ["forest"],
"params": { "transfer_attributes": "Cd name", "piece_attrib": "piece" }
}