Tutorial Python Node: Bundle Add Attributes

This is a Python tutorial node. It exercises functionality for adding and removing attributes on output bundles.

Installation

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

Inputs

Name

Type

Descripton

Default

Added Attribute Names (inputs:addedAttributeNames)

token[]

Names for the attribute types to be added. The size of this array must match the size of the ‘typesToAdd’ array to be legal.

[]

Removed Attribute Names (inputs:removedAttributeNames)

token[]

Names for the attribute types to be removed. Non-existent attributes will be ignored.

[]

Attribute Types To Add (inputs:typesToAdd)

token[]

List of type descriptions to add to the bundle. The strings in this list correspond to the strings that represent the attribute types in the .ogn file (e.g. float[3][], colord[3], bool

[]

Use Batched API (inputs:useBatchedAPI)

bool

Controls whether or not to used batched APIS for adding/removing attributes

False

Outputs

Name

Type

Descripton

Default

Constructed Bundle (outputs:bundle)

bundle

This is the bundle with all attributes added by compute.

None

Metadata

Name

Value

Unique ID

omni.graph.tutorials.BundleAddAttributesPy

Version

1

Extension

omni.graph.tutorials

Icon

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

Has State?

False

Implementation Language

Python

Default Memory Type

cpu

Generated Code Exclusions

None

uiName

Tutorial Python Node: Bundle Add Attributes

Categories

tutorials

Generated Class Name

OgnTutorialBundleAddAttributesPyDatabase

Python Module

omni.graph.tutorials

See the accompanying tutorial and annotated code at Tutorial 21 - Adding Bundled Attributes