Tutorial Node: Array Attributes

This is a tutorial node. It will compute the array ‘result’ as the input array ‘original’ with every element multiplied by the constant ‘multiplier’.

Installation

To use this node enable omni.graph.tutorials in the Extension Manager.

Inputs

Name

Type

Descripton

Default

Gates (inputs:gates)

bool[]

Boolean mask telling which elements of the array should be multiplied

[]

Info (inputs:info)

token[]

List of strings providing commentary

[‘There’, ‘is’, ‘no’, ‘data’]

Multiplier (inputs:multiplier)

float

Multiplier of the array elements

1.0

Original (inputs:original)

float[]

Array to be multiplied

[]

Outputs

Name

Type

Descripton

Default

Info Size (outputs:infoSize)

int

Number of letters in all strings in the info input

None

Negative Values (outputs:negativeValues)

bool[]

Array of booleans set to true if the corresponding ‘result’ is negative

None

Result (outputs:result)

float[]

Multiplied array

None

Metadata

Name

Value

Unique ID

omni.graph.tutorials.ArrayData

Version

1

Extension

omni.graph.tutorials

Icon

ogn/icons/omni.graph.tutorials.ArrayData.svg

Has State?

False

Implementation Language

C++

Default Memory Type

cpu

Generated Code Exclusions

None

uiName

Tutorial Node: Array Attributes

Categories

tutorials

Generated Class Name

OgnTutorialArrayDataDatabase

Python Module

omni.graph.tutorials

See the accompanying tutorial and annotated code at Tutorial 5 - Array Data Node