Skip to main content

Write Property

Write a property to an object.

Written by Holly Conrad Smith

Use this when you want to add or update a property on an object within a flow, for example attaching a calculated value to a geometry before writing it to the canvas.

Write a property to an object. If a list is provided, the property will be written to each item in the list.

Inputs

Name

Abbreviation

Type

Access

Description

Object

O

Object

Item

The object to write to

Property

P

String

Item

The property to write

Value

V

Any

Item

The value to write

Outputs

Name

Abbreviation

Type

Access

Description

Object

O

Object

Item

The object with the property written

Warnings and errors

Message

Cause

Fix

value is undefined, property "<property>" will be set to undefined

Nothing is connected to value, or the connected node returns nothing.

Connect a value, or remove the node if you meant to leave the property alone.

How to

  1. Feed in an existing object

    This could be from panel or any node that generates objects

  2. Nominate a property

    This would likely be from a string.

  3. Feed in a value to assign to the property.

    This would be from any node that provides the appropriate data type to the property. For example, a property that expects a numeric value would require a number or similar.

  4. The result is a new object with the additional property + value appended

Did this answer your question?