Array Set Index

Sets an element of an array. If the given index is negative it will be an offset from the end of the array.

Installation

To use this Node, you must enable omni.graph.nodes in the Extension Manager.

Inputs

Name

Type

Description

Default

Array (array)

arrays, bool[]

The array to be modified

Index (index)

int

The index into the array, a negative value indexes from the end of the array

resizeToFit

bool

When true, and the given positive index is larger than the highest index in the array resize the output array to length 1 + index, and fill the new spaces with zeros

value

array_elements, bool

The value to set at the given index

Outputs

Name

Type

Description

Default

Array (array)

arrays, bool[]

The modified array