omni.graph.tools.ogn Functions#

Functions Summary:

code_generation

Run the code generator on the ogn input, which is in the same JSON format as the .ogn file

convert_type_name

Convert the name of a specific supported data type between two different representations.

expand_attribute_union_groups

Expands any group names in a union type declaration, in-place. The

generate_cpp

Create support files for the C++ interface to a node

generate_documentation

Create support files for the documentation of a node

generate_python

Create support files for the pythonic interface to a node

generate_template

Create support files for the C++ interface to a node

generate_test_imports

Generates a set of imports for the ogn test modules contained in a directory.

generate_tests

Create support files for the tests on the node

generate_usd

Create support files for the USD template definition for a node

get_attribute_manager

Deciphers, validates, and provides consistent access to attributes described by a dictionary.

get_attribute_manager_type

Returns an attribute manager that matches the name and type, with no other data.

split_attribute_type_name

Split a fully qualified attribute type name into its identifying parts

to_cpp_comment

Convert a multiline string into a C++ comment

to_python_comment

Convert a multiline string into a Python comment

to_usd_comment

Convert a multiline string into a USD comment

to_usd_docs

Returns the USD documentation as a list of strings with the docs= included