Attribute node ยท time dependent

attrib_wrangle

Run Python/numpy code over all elements at once. Variables: every attribute of the chosen owner as an array (P (n,3), N, Cd, pscale, uv, name...), n (count), idx (element numbers), F (frame), T (seconds), geo (the Geometry, full API), np, math, noise (tessera.noise: fbm3, perlin3, curl3, worley3...), rng (numpy Generator seeded by 'seed'), input2 (Geometry of input 1 or None), ramp(t) (evaluates the node ramp), fit(v,a,b,c,d), clamp, smoothstep, lerp. Assigning to an existing attribute name or a standard name (Cd, N, v, pscale, orient, up, Alpha, uv, id, name, mass, density, temperature, life, age, scale, rot, material, piece, variant, mask, Ce, rest, w, pin, active) writes it back; any other new attribute: attrs['myattr'] = array. Delete elements: delete = bool_mask. Groups: groups['top'] = mask. Examples: P[:, 1] += 0.2 * np.sin(P[:, 0] * 3 + T) Cd = np.stack([P[:,1]/P[:,1].max(), np.zeros(n), 1 - P[:,1]/P[:,1].max()], 1) pscale = rng.uniform(0.5, 1.5, n) delete = noise.fbm3(P, 2.0) > 0.3

Inputs

Parameters 5

ownermenu
Default pointOptions point prim detail

Run over points, prims (P = prim centers) or once (detail)

codecode

Python code, see node doc

# Cd = np.tile([1, 0, 0], (n, 1))
rampramp
Default [[0,0],[1,1]]

Optional ramp available as ramp(t)

groupstring
Default ""

Restrict to group / expression (others untouched)

seedint
Default 0

No description.

Use it

Add it from the node menu (right-click empty graph space or Tab, then type attrib_wrangle), ask the AI for it by name, or add it with a graph op from the API or MCP:

{"op":"add","type":"attrib_wrangle","name":"my_attrib_wrangle","params":{},"inputs":["src"]}

Any parameter can also be an expression such as "=sin(F*0.1)". See Parameters & expressions.