set_property

Sets a key-value pair on an object. The key is an identifying string, and the corresponding value can be anything: a single value, a struct like float3, an array, or another object.

This node is the most general one for setting a property. In many cases, a different node is easier or more appropriate.

Inputs

object

A Bifrost object. This can be a geometric object like a mesh, or simply a container for various properties. Leave this port empty to use a new, empty object.

key

The name of the property. If this property already exists on the object, it will be overwritten with the new value. If it does not, a new property will be created.

value

The value to set for the property.

Output

out_object

The object with the updated property.