Tutorial Python Node: State Attributes#

This is a tutorial node. It exercises state attributes to remember data from one execution to the next.

Installation#

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

Inputs#

Name

Type

Descripton

Default

Ignored (inputs:ignored)

bool

Ignore me

False

State#

Name

Type

Descripton

Default

Monotonic (state:monotonic)

int

The monotonically increasing output value, reset to 0 when the reset value is true

None

Reset (state:reset)

bool

If true then the inputs are ignored and outputs are set to default values, then this flag is set to false for subsequent executions.

True

Metadata#

Name

Value

Unique ID

omni.graph.tutorials.StateAttributesPy

Version

1

Extension

omni.graph.tutorials

Icon

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

Has State?

True

Implementation Language

Python

Default Memory Type

cpu

Generated Code Exclusions

None

uiName

Tutorial Python Node: State Attributes

Categories

tutorials

Generated Class Name

OgnTutorialStateAttributesPyDatabase

Python Module

omni.graph.tutorials

See the accompanying tutorial and annotated code at Tutorial 17 - Python State Attributes Node