Tutorial Node: Internal States

This is a tutorial node. It makes use of internal state information to continuously increment an output.

Installation

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

Inputs

Name

Type

Descripton

Default

Enable Override (inputs:override)

bool

When true get the output from the overrideValue, otherwise use the internal value

False

Override Value (inputs:overrideValue)

int64

Value to use instead of the monotonically increasing internal one when ‘override’ is true

0

Enable using a shared state amongst graph instances (inputs:shared)

bool

Whether to use the state shared by all graph instances for this node, or a per graph-instance state

False

Outputs

Name

Type

Descripton

Default

State-Based Output (outputs:monotonic)

int64

Monotonically increasing output, set by internal state information

0

Metadata

Name

Value

Unique ID

omni.graph.tutorials.State

Version

1

Extension

omni.graph.tutorials

Icon

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

Has State?

False

Implementation Language

C++

Default Memory Type

cpu

Generated Code Exclusions

None

uiName

Tutorial Node: Internal States

Categories

tutorials

Generated Class Name

OgnTutorialStateDatabase

Python Module

omni.graph.tutorials

See the accompanying tutorial and annotated code at Tutorial 18 - Node With Internal State