Attribute node

color

Set Cd colours: constant, random per element, random per piece, or a colour ramp over an attribute/axis.

Inputs

Parameters 10

modemenu
Default constantOptions constant random random_piece ramp_attrib ramp_axis

random_piece colours each piece (prim name/class or connectivity)

colorcolour
Default [0.8, 0.8, 0.8]

No description.

ownermenu
Default primOptions point prim

No description.

attribstring
Default P

For ramp_attrib: attribute driving the ramp (normalised to its range)

axismenu
Default YOptions Y X Z

No description.

rampramp
Default [[0,[0.1,0.2,0.6]],[0.5,[0.9,0.9,0.9]],[1,[0.8,0.2,0.1]]]

No description.

groupstring
Default ""

No description.

seedint
Default 0

No description.

saturationfloat
Default 0.6

No description.

valuefloat
Default 0.85

No description.

Use it

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

{"op":"add","type":"color","name":"my_color","params":{},"inputs":["src"]}

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