file_path
stringlengths 32
153
| content
stringlengths 0
3.14M
|
---|---|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnSubtractDoubleCDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.SubtractDoubleC
Example node that subtracts 2 doubles from each other
"""
import carb
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnSubtractDoubleCDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.test.SubtractDoubleC
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.a
inputs.b
Outputs:
outputs.out
"""
# Imprint the generator and target ABI versions in the file for JIT generation
GENERATOR_VERSION = (1, 41, 3)
TARGET_VERSION = (2, 139, 12)
# This is an internal object that provides per-class storage of a per-node data dictionary
PER_NODE_DATA = {}
# This is an internal object that describes unchanging attributes in a generic way
# The values in this list are in no particular order, as a per-attribute tuple
# Name, Type, ExtendedTypeIndex, UiName, Description, Metadata,
# Is_Required, DefaultValue, Is_Deprecated, DeprecationMsg
# You should not need to access any of this data directly, use the defined database interfaces
INTERFACE = og.Database._get_interface([
('inputs:a', 'double', 0, None, 'Input a', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
('inputs:b', 'double', 0, None, 'Input b', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
('outputs:out', 'double', 0, None, 'The result of a - b', {}, True, None, False, ''),
])
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to input attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedReadAttributes = []
self._batchedReadValues = []
@property
def a(self):
data_view = og.AttributeValueHelper(self._attributes.a)
return data_view.get()
@a.setter
def a(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a)
data_view = og.AttributeValueHelper(self._attributes.a)
data_view.set(value)
@property
def b(self):
data_view = og.AttributeValueHelper(self._attributes.b)
return data_view.get()
@b.setter
def b(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.b)
data_view = og.AttributeValueHelper(self._attributes.b)
data_view.set(value)
def _prefetch(self):
readAttributes = self._batchedReadAttributes
newValues = _og._prefetch_input_attributes_data(readAttributes)
if len(readAttributes) == len(newValues):
self._batchedReadValues = newValues
class ValuesForOutputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to output attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedWriteValues = { }
@property
def out(self):
data_view = og.AttributeValueHelper(self._attributes.out)
return data_view.get()
@out.setter
def out(self, value):
data_view = og.AttributeValueHelper(self._attributes.out)
data_view.set(value)
def _commit(self):
_og._commit_output_attributes_data(self._batchedWriteValues)
self._batchedWriteValues = { }
class ValuesForState(og.DynamicAttributeAccess):
"""Helper class that creates natural hierarchical access to state attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnSubtractDoubleCDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnSubtractDoubleCDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnSubtractDoubleCDatabase.ValuesForState(node, self.attributes.state, dynamic_attributes)
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnMultiply2IntArrayDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.Multiply2IntegerArrays
Compute the array 'output' as the element-wise products of the input arrays 'a' and 'b'. If either of the input arrays have
size 1 then that value will be multipled to every element of the other to form the output.
"""
import carb
import numpy
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnMultiply2IntArrayDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.test.Multiply2IntegerArrays
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.a
inputs.b
Outputs:
outputs.output
"""
# Imprint the generator and target ABI versions in the file for JIT generation
GENERATOR_VERSION = (1, 41, 3)
TARGET_VERSION = (2, 139, 12)
# This is an internal object that provides per-class storage of a per-node data dictionary
PER_NODE_DATA = {}
# This is an internal object that describes unchanging attributes in a generic way
# The values in this list are in no particular order, as a per-attribute tuple
# Name, Type, ExtendedTypeIndex, UiName, Description, Metadata,
# Is_Required, DefaultValue, Is_Deprecated, DeprecationMsg
# You should not need to access any of this data directly, use the defined database interfaces
INTERFACE = og.Database._get_interface([
('inputs:a', 'int[]', 0, None, 'First array to be multiplied', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:b', 'int[]', 0, None, 'Second array to be multiplied', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:output', 'int[]', 0, None, 'Product of the two arrays', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
])
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to input attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedReadAttributes = []
self._batchedReadValues = []
@property
def a(self):
data_view = og.AttributeValueHelper(self._attributes.a)
return data_view.get()
@a.setter
def a(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a)
data_view = og.AttributeValueHelper(self._attributes.a)
data_view.set(value)
self.a_size = data_view.get_array_size()
@property
def b(self):
data_view = og.AttributeValueHelper(self._attributes.b)
return data_view.get()
@b.setter
def b(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.b)
data_view = og.AttributeValueHelper(self._attributes.b)
data_view.set(value)
self.b_size = data_view.get_array_size()
def _prefetch(self):
readAttributes = self._batchedReadAttributes
newValues = _og._prefetch_input_attributes_data(readAttributes)
if len(readAttributes) == len(newValues):
self._batchedReadValues = newValues
class ValuesForOutputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to output attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self.output_size = 0
self._batchedWriteValues = { }
@property
def output(self):
data_view = og.AttributeValueHelper(self._attributes.output)
return data_view.get(reserved_element_count=self.output_size)
@output.setter
def output(self, value):
data_view = og.AttributeValueHelper(self._attributes.output)
data_view.set(value)
self.output_size = data_view.get_array_size()
def _commit(self):
_og._commit_output_attributes_data(self._batchedWriteValues)
self._batchedWriteValues = { }
class ValuesForState(og.DynamicAttributeAccess):
"""Helper class that creates natural hierarchical access to state attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnMultiply2IntArrayDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnMultiply2IntArrayDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnMultiply2IntArrayDatabase.ValuesForState(node, self.attributes.state, dynamic_attributes)
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnRandomBundlePointsDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.RandomBundlePoints
Generate a bundle of 'bundleSize' arrays of 'pointCount' points at random locations within the bounding cube delineated by
the corner points 'minimum' and 'maximum'.
"""
import carb
import numpy
import carb
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnRandomBundlePointsDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.test.RandomBundlePoints
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.bundleSize
inputs.maximum
inputs.minimum
inputs.pointCount
Outputs:
outputs.bundle
"""
# Imprint the generator and target ABI versions in the file for JIT generation
GENERATOR_VERSION = (1, 41, 3)
TARGET_VERSION = (2, 139, 12)
# This is an internal object that provides per-class storage of a per-node data dictionary
PER_NODE_DATA = {}
# This is an internal object that describes unchanging attributes in a generic way
# The values in this list are in no particular order, as a per-attribute tuple
# Name, Type, ExtendedTypeIndex, UiName, Description, Metadata,
# Is_Required, DefaultValue, Is_Deprecated, DeprecationMsg
# You should not need to access any of this data directly, use the defined database interfaces
INTERFACE = og.Database._get_interface([
('inputs:bundleSize', 'int', 0, 'Bundle Size', 'Number of point attributes to generate in the bundle', {}, True, 0, False, ''),
('inputs:maximum', 'point3f', 0, 'Bounding Cube Maximum', 'Highest X, Y, Z values for the bounding volume', {ogn.MetadataKeys.DEFAULT: '[1.0, 1.0, 1.0]'}, True, [1.0, 1.0, 1.0], False, ''),
('inputs:minimum', 'point3f', 0, 'Bounding Cube Minimum', 'Lowest X, Y, Z values for the bounding volume', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:pointCount', 'uint64', 0, 'Point Count', 'Number of points to generate', {}, True, 0, False, ''),
('outputs:bundle', 'bundle', 0, 'Random Bundle', 'Randomly generated bundle of attributes containing random points', {}, True, None, False, ''),
])
@classmethod
def _populate_role_data(cls):
"""Populate a role structure with the non-default roles on this node type"""
role_data = super()._populate_role_data()
role_data.inputs.maximum = og.AttributeRole.POSITION
role_data.inputs.minimum = og.AttributeRole.POSITION
role_data.outputs.bundle = og.AttributeRole.BUNDLE
return role_data
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to input attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedReadAttributes = []
self._batchedReadValues = []
@property
def bundleSize(self):
data_view = og.AttributeValueHelper(self._attributes.bundleSize)
return data_view.get()
@bundleSize.setter
def bundleSize(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.bundleSize)
data_view = og.AttributeValueHelper(self._attributes.bundleSize)
data_view.set(value)
@property
def maximum(self):
data_view = og.AttributeValueHelper(self._attributes.maximum)
return data_view.get()
@maximum.setter
def maximum(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.maximum)
data_view = og.AttributeValueHelper(self._attributes.maximum)
data_view.set(value)
@property
def minimum(self):
data_view = og.AttributeValueHelper(self._attributes.minimum)
return data_view.get()
@minimum.setter
def minimum(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.minimum)
data_view = og.AttributeValueHelper(self._attributes.minimum)
data_view.set(value)
@property
def pointCount(self):
data_view = og.AttributeValueHelper(self._attributes.pointCount)
return data_view.get()
@pointCount.setter
def pointCount(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.pointCount)
data_view = og.AttributeValueHelper(self._attributes.pointCount)
data_view.set(value)
def _prefetch(self):
readAttributes = self._batchedReadAttributes
newValues = _og._prefetch_input_attributes_data(readAttributes)
if len(readAttributes) == len(newValues):
self._batchedReadValues = newValues
class ValuesForOutputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to output attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self.__bundles = og.BundleContainer(context, node, attributes, [], read_only=False, gpu_ptr_kinds={})
self._batchedWriteValues = { }
@property
def bundle(self) -> og.BundleContents:
"""Get the bundle wrapper class for the attribute outputs.bundle"""
return self.__bundles.bundle
@bundle.setter
def bundle(self, bundle: og.BundleContents):
"""Overwrite the bundle attribute outputs.bundle with a new bundle"""
if not isinstance(bundle, og.BundleContents):
carb.log_error("Only bundle attributes can be assigned to another bundle attribute")
self.__bundles.bundle.bundle = bundle
def _commit(self):
_og._commit_output_attributes_data(self._batchedWriteValues)
self._batchedWriteValues = { }
class ValuesForState(og.DynamicAttributeAccess):
"""Helper class that creates natural hierarchical access to state attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnRandomBundlePointsDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnRandomBundlePointsDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnRandomBundlePointsDatabase.ValuesForState(node, self.attributes.state, dynamic_attributes)
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestAllDataTypesCarbDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestAllDataTypesCarb
This node is meant to exercise the data access for all available data types used by the Carbonite type configuration file.
It includes all other data types as well, as confirmation that non-overridden types retain their default types.
"""
import carb
import numpy
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnTestAllDataTypesCarbDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.test.TestAllDataTypesCarb
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.a_bool
inputs.a_bool_array
inputs.a_colord_3
inputs.a_colord_3_array
inputs.a_colord_4
inputs.a_colord_4_array
inputs.a_colorf_3
inputs.a_colorf_3_array
inputs.a_colorf_4
inputs.a_colorf_4_array
inputs.a_colorh_3
inputs.a_colorh_3_array
inputs.a_colorh_4
inputs.a_colorh_4_array
inputs.a_double
inputs.a_double_2
inputs.a_double_2_array
inputs.a_double_3
inputs.a_double_3_array
inputs.a_double_4
inputs.a_double_4_array
inputs.a_double_array
inputs.a_execution
inputs.a_float
inputs.a_float_2
inputs.a_float_2_array
inputs.a_float_3
inputs.a_float_3_array
inputs.a_float_4
inputs.a_float_4_array
inputs.a_float_array
inputs.a_frame_4
inputs.a_frame_4_array
inputs.a_half
inputs.a_half_2
inputs.a_half_2_array
inputs.a_half_3
inputs.a_half_3_array
inputs.a_half_4
inputs.a_half_4_array
inputs.a_half_array
inputs.a_int
inputs.a_int64
inputs.a_int64_array
inputs.a_int_2
inputs.a_int_2_array
inputs.a_int_3
inputs.a_int_3_array
inputs.a_int_4
inputs.a_int_4_array
inputs.a_int_array
inputs.a_matrixd_2
inputs.a_matrixd_2_array
inputs.a_matrixd_3
inputs.a_matrixd_3_array
inputs.a_matrixd_4
inputs.a_matrixd_4_array
inputs.a_normald_3
inputs.a_normald_3_array
inputs.a_normalf_3
inputs.a_normalf_3_array
inputs.a_normalh_3
inputs.a_normalh_3_array
inputs.a_objectId
inputs.a_objectId_array
inputs.a_pointd_3
inputs.a_pointd_3_array
inputs.a_pointf_3
inputs.a_pointf_3_array
inputs.a_pointh_3
inputs.a_pointh_3_array
inputs.a_quatd_4
inputs.a_quatd_4_array
inputs.a_quatf_4
inputs.a_quatf_4_array
inputs.a_quath_4
inputs.a_quath_4_array
inputs.a_string
inputs.a_texcoordd_2
inputs.a_texcoordd_2_array
inputs.a_texcoordd_3
inputs.a_texcoordd_3_array
inputs.a_texcoordf_2
inputs.a_texcoordf_2_array
inputs.a_texcoordf_3
inputs.a_texcoordf_3_array
inputs.a_texcoordh_2
inputs.a_texcoordh_2_array
inputs.a_texcoordh_3
inputs.a_texcoordh_3_array
inputs.a_timecode
inputs.a_timecode_array
inputs.a_token
inputs.a_token_array
inputs.a_uchar
inputs.a_uchar_array
inputs.a_uint
inputs.a_uint64
inputs.a_uint64_array
inputs.a_uint_array
inputs.a_vectord_3
inputs.a_vectord_3_array
inputs.a_vectorf_3
inputs.a_vectorf_3_array
inputs.a_vectorh_3
inputs.a_vectorh_3_array
inputs.doNotCompute
Outputs:
outputs.a_bool
outputs.a_bool_array
outputs.a_colord_3
outputs.a_colord_3_array
outputs.a_colord_4
outputs.a_colord_4_array
outputs.a_colorf_3
outputs.a_colorf_3_array
outputs.a_colorf_4
outputs.a_colorf_4_array
outputs.a_colorh_3
outputs.a_colorh_3_array
outputs.a_colorh_4
outputs.a_colorh_4_array
outputs.a_double
outputs.a_double_2
outputs.a_double_2_array
outputs.a_double_3
outputs.a_double_3_array
outputs.a_double_4
outputs.a_double_4_array
outputs.a_double_array
outputs.a_execution
outputs.a_float
outputs.a_float_2
outputs.a_float_2_array
outputs.a_float_3
outputs.a_float_3_array
outputs.a_float_4
outputs.a_float_4_array
outputs.a_float_array
outputs.a_frame_4
outputs.a_frame_4_array
outputs.a_half
outputs.a_half_2
outputs.a_half_2_array
outputs.a_half_3
outputs.a_half_3_array
outputs.a_half_4
outputs.a_half_4_array
outputs.a_half_array
outputs.a_int
outputs.a_int64
outputs.a_int64_array
outputs.a_int_2
outputs.a_int_2_array
outputs.a_int_3
outputs.a_int_3_array
outputs.a_int_4
outputs.a_int_4_array
outputs.a_int_array
outputs.a_matrixd_2
outputs.a_matrixd_2_array
outputs.a_matrixd_3
outputs.a_matrixd_3_array
outputs.a_matrixd_4
outputs.a_matrixd_4_array
outputs.a_normald_3
outputs.a_normald_3_array
outputs.a_normalf_3
outputs.a_normalf_3_array
outputs.a_normalh_3
outputs.a_normalh_3_array
outputs.a_objectId
outputs.a_objectId_array
outputs.a_pointd_3
outputs.a_pointd_3_array
outputs.a_pointf_3
outputs.a_pointf_3_array
outputs.a_pointh_3
outputs.a_pointh_3_array
outputs.a_quatd_4
outputs.a_quatd_4_array
outputs.a_quatf_4
outputs.a_quatf_4_array
outputs.a_quath_4
outputs.a_quath_4_array
outputs.a_string
outputs.a_texcoordd_2
outputs.a_texcoordd_2_array
outputs.a_texcoordd_3
outputs.a_texcoordd_3_array
outputs.a_texcoordf_2
outputs.a_texcoordf_2_array
outputs.a_texcoordf_3
outputs.a_texcoordf_3_array
outputs.a_texcoordh_2
outputs.a_texcoordh_2_array
outputs.a_texcoordh_3
outputs.a_texcoordh_3_array
outputs.a_timecode
outputs.a_timecode_array
outputs.a_token
outputs.a_token_array
outputs.a_uchar
outputs.a_uchar_array
outputs.a_uint
outputs.a_uint64
outputs.a_uint64_array
outputs.a_uint_array
outputs.a_vectord_3
outputs.a_vectord_3_array
outputs.a_vectorf_3
outputs.a_vectorf_3_array
outputs.a_vectorh_3
outputs.a_vectorh_3_array
"""
# Imprint the generator and target ABI versions in the file for JIT generation
GENERATOR_VERSION = (1, 41, 3)
TARGET_VERSION = (2, 139, 12)
# This is an internal object that provides per-class storage of a per-node data dictionary
PER_NODE_DATA = {}
# This is an internal object that describes unchanging attributes in a generic way
# The values in this list are in no particular order, as a per-attribute tuple
# Name, Type, ExtendedTypeIndex, UiName, Description, Metadata,
# Is_Required, DefaultValue, Is_Deprecated, DeprecationMsg
# You should not need to access any of this data directly, use the defined database interfaces
INTERFACE = og.Database._get_interface([
('inputs:a_bool', 'bool', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: 'false'}, True, False, False, ''),
('inputs:a_bool_array', 'bool[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[false, true]'}, True, [False, True], False, ''),
('inputs:a_colord_3', 'color3d', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_colord_3_array', 'color3d[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_colord_4', 'color4d', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0, 4.0]'}, True, [1.0, 2.0, 3.0, 4.0], False, ''),
('inputs:a_colord_4_array', 'color4d[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]]'}, True, [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False, ''),
('inputs:a_colorf_3', 'color3f', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_colorf_3_array', 'color3f[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_colorf_4', 'color4f', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0, 4.0]'}, True, [1.0, 2.0, 3.0, 4.0], False, ''),
('inputs:a_colorf_4_array', 'color4f[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]]'}, True, [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False, ''),
('inputs:a_colorh_3', 'color3h', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_colorh_3_array', 'color3h[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_colorh_4', 'color4h', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0, 4.0]'}, True, [1.0, 2.0, 3.0, 4.0], False, ''),
('inputs:a_colorh_4_array', 'color4h[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]]'}, True, [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False, ''),
('inputs:a_double', 'double', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '1.0'}, True, 1.0, False, ''),
('inputs:a_double_2', 'double2', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0]'}, True, [1.0, 2.0], False, ''),
('inputs:a_double_2_array', 'double2[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0], [11.0, 12.0]]'}, True, [[1.0, 2.0], [11.0, 12.0]], False, ''),
('inputs:a_double_3', 'double3', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_double_3_array', 'double3[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_double_4', 'double4', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0, 4.0]'}, True, [1.0, 2.0, 3.0, 4.0], False, ''),
('inputs:a_double_4_array', 'double4[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]]'}, True, [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False, ''),
('inputs:a_double_array', 'double[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0]'}, True, [1.0, 2.0], False, ''),
('inputs:a_execution', 'execution', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '1'}, True, 1, False, ''),
('inputs:a_float', 'float', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '1.0'}, True, 1.0, False, ''),
('inputs:a_float_2', 'float2', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0]'}, True, [1.0, 2.0], False, ''),
('inputs:a_float_2_array', 'float2[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0], [11.0, 12.0]]'}, True, [[1.0, 2.0], [11.0, 12.0]], False, ''),
('inputs:a_float_3', 'float3', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_float_3_array', 'float3[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_float_4', 'float4', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0, 4.0]'}, True, [1.0, 2.0, 3.0, 4.0], False, ''),
('inputs:a_float_4_array', 'float4[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]]'}, True, [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False, ''),
('inputs:a_float_array', 'float[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0]'}, True, [1.0, 2.0], False, ''),
('inputs:a_frame_4', 'frame4d', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]]'}, True, [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], False, ''),
('inputs:a_frame_4_array', 'frame4d[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]]'}, True, [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]], False, ''),
('inputs:a_half', 'half', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '1.0'}, True, 1.0, False, ''),
('inputs:a_half_2', 'half2', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0]'}, True, [1.0, 2.0], False, ''),
('inputs:a_half_2_array', 'half2[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0], [11.0, 12.0]]'}, True, [[1.0, 2.0], [11.0, 12.0]], False, ''),
('inputs:a_half_3', 'half3', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_half_3_array', 'half3[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_half_4', 'half4', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0, 4.0]'}, True, [1.0, 2.0, 3.0, 4.0], False, ''),
('inputs:a_half_4_array', 'half4[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]]'}, True, [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False, ''),
('inputs:a_half_array', 'half[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0]'}, True, [1.0, 2.0], False, ''),
('inputs:a_int', 'int', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '1'}, True, 1, False, ''),
('inputs:a_int64', 'int64', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '12345'}, True, 12345, False, ''),
('inputs:a_int64_array', 'int64[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[12345, 23456]'}, True, [12345, 23456], False, ''),
('inputs:a_int_2', 'int2', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1, 2]'}, True, [1, 2], False, ''),
('inputs:a_int_2_array', 'int2[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1, 2], [3, 4]]'}, True, [[1, 2], [3, 4]], False, ''),
('inputs:a_int_3', 'int3', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1, 2, 3]'}, True, [1, 2, 3], False, ''),
('inputs:a_int_3_array', 'int3[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1, 2, 3], [4, 5, 6]]'}, True, [[1, 2, 3], [4, 5, 6]], False, ''),
('inputs:a_int_4', 'int4', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1, 2, 3, 4]'}, True, [1, 2, 3, 4], False, ''),
('inputs:a_int_4_array', 'int4[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1, 2, 3, 4], [5, 6, 7, 8]]'}, True, [[1, 2, 3, 4], [5, 6, 7, 8]], False, ''),
('inputs:a_int_array', 'int[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1, 2]'}, True, [1, 2], False, ''),
('inputs:a_matrixd_2', 'matrix2d', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0], [3.0, 4.0]]'}, True, [[1.0, 2.0], [3.0, 4.0]], False, ''),
('inputs:a_matrixd_2_array', 'matrix2d[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[[1.0, 2.0], [3.0, 4.0]], [[11.0, 12.0], [13.0, 14.0]]]'}, True, [[[1.0, 2.0], [3.0, 4.0]], [[11.0, 12.0], [13.0, 14.0]]], False, ''),
('inputs:a_matrixd_3', 'matrix3d', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]]'}, True, [[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]], False, ''),
('inputs:a_matrixd_3_array', 'matrix3d[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]], [[11.0, 12.0, 13.0], [14.0, 15.0, 16.0], [17.0, 18.0, 19.0]]]'}, True, [[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]], [[11.0, 12.0, 13.0], [14.0, 15.0, 16.0], [17.0, 18.0, 19.0]]], False, ''),
('inputs:a_matrixd_4', 'matrix4d', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]]'}, True, [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], False, ''),
('inputs:a_matrixd_4_array', 'matrix4d[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]]'}, True, [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]], False, ''),
('inputs:a_normald_3', 'normal3d', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_normald_3_array', 'normal3d[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_normalf_3', 'normal3f', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_normalf_3_array', 'normal3f[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_normalh_3', 'normal3h', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_normalh_3_array', 'normal3h[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_objectId', 'objectId', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '1'}, True, 1, False, ''),
('inputs:a_objectId_array', 'objectId[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1, 2]'}, True, [1, 2], False, ''),
('inputs:a_pointd_3', 'point3d', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_pointd_3_array', 'point3d[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_pointf_3', 'point3f', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_pointf_3_array', 'point3f[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_pointh_3', 'point3h', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_pointh_3_array', 'point3h[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_quatd_4', 'quatd', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0, 4.0]'}, True, [1.0, 2.0, 3.0, 4.0], False, ''),
('inputs:a_quatd_4_array', 'quatd[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]]'}, True, [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False, ''),
('inputs:a_quatf_4', 'quatf', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0, 4.0]'}, True, [1.0, 2.0, 3.0, 4.0], False, ''),
('inputs:a_quatf_4_array', 'quatf[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]]'}, True, [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False, ''),
('inputs:a_quath_4', 'quath', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0, 4.0]'}, True, [1.0, 2.0, 3.0, 4.0], False, ''),
('inputs:a_quath_4_array', 'quath[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]]'}, True, [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False, ''),
('inputs:a_string', 'string', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '"Rey"'}, True, "Rey", False, ''),
('inputs:a_texcoordd_2', 'texCoord2d', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0]'}, True, [1.0, 2.0], False, ''),
('inputs:a_texcoordd_2_array', 'texCoord2d[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0], [11.0, 12.0]]'}, True, [[1.0, 2.0], [11.0, 12.0]], False, ''),
('inputs:a_texcoordd_3', 'texCoord3d', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_texcoordd_3_array', 'texCoord3d[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_texcoordf_2', 'texCoord2f', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0]'}, True, [1.0, 2.0], False, ''),
('inputs:a_texcoordf_2_array', 'texCoord2f[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0], [11.0, 12.0]]'}, True, [[1.0, 2.0], [11.0, 12.0]], False, ''),
('inputs:a_texcoordf_3', 'texCoord3f', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_texcoordf_3_array', 'texCoord3f[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_texcoordh_2', 'texCoord2h', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0]'}, True, [1.0, 2.0], False, ''),
('inputs:a_texcoordh_2_array', 'texCoord2h[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0], [11.0, 12.0]]'}, True, [[1.0, 2.0], [11.0, 12.0]], False, ''),
('inputs:a_texcoordh_3', 'texCoord3h', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_texcoordh_3_array', 'texCoord3h[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_timecode', 'timecode', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '1.0'}, True, 1.0, False, ''),
('inputs:a_timecode_array', 'timecode[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0]'}, True, [1.0, 2.0], False, ''),
('inputs:a_token', 'token', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '"Sith"'}, True, "Sith", False, ''),
('inputs:a_token_array', 'token[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '["Kylo", "Ren"]'}, True, ['Kylo', 'Ren'], False, ''),
('inputs:a_uchar', 'uchar', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '1'}, True, 1, False, ''),
('inputs:a_uchar_array', 'uchar[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1, 2]'}, True, [1, 2], False, ''),
('inputs:a_uint', 'uint', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '1'}, True, 1, False, ''),
('inputs:a_uint64', 'uint64', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '1'}, True, 1, False, ''),
('inputs:a_uint64_array', 'uint64[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1, 2]'}, True, [1, 2], False, ''),
('inputs:a_uint_array', 'uint[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1, 2]'}, True, [1, 2], False, ''),
('inputs:a_vectord_3', 'vector3d', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_vectord_3_array', 'vector3d[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_vectorf_3', 'vector3f', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_vectorf_3_array', 'vector3f[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_vectorh_3', 'vector3h', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_vectorh_3_array', 'vector3h[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:doNotCompute', 'bool', 0, None, 'Prevent the compute from running', {ogn.MetadataKeys.DEFAULT: 'true'}, True, True, False, ''),
('outputs:a_bool', 'bool', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: 'true'}, True, True, False, ''),
('outputs:a_bool_array', 'bool[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[true, false]'}, True, [True, False], False, ''),
('outputs:a_colord_3', 'color3d', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_colord_3_array', 'color3d[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_colord_4', 'color4d', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5, 4.5]'}, True, [1.5, 2.5, 3.5, 4.5], False, ''),
('outputs:a_colord_4_array', 'color4d[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]]'}, True, [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False, ''),
('outputs:a_colorf_3', 'color3f', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_colorf_3_array', 'color3f[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_colorf_4', 'color4f', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5, 4.5]'}, True, [1.5, 2.5, 3.5, 4.5], False, ''),
('outputs:a_colorf_4_array', 'color4f[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]]'}, True, [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False, ''),
('outputs:a_colorh_3', 'color3h', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_colorh_3_array', 'color3h[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_colorh_4', 'color4h', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5, 4.5]'}, True, [1.5, 2.5, 3.5, 4.5], False, ''),
('outputs:a_colorh_4_array', 'color4h[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]]'}, True, [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False, ''),
('outputs:a_double', 'double', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '1.5'}, True, 1.5, False, ''),
('outputs:a_double_2', 'double2', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5]'}, True, [1.5, 2.5], False, ''),
('outputs:a_double_2_array', 'double2[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5], [11.5, 12.5]]'}, True, [[1.5, 2.5], [11.5, 12.5]], False, ''),
('outputs:a_double_3', 'double3', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_double_3_array', 'double3[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_double_4', 'double4', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5, 4.5]'}, True, [1.5, 2.5, 3.5, 4.5], False, ''),
('outputs:a_double_4_array', 'double4[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]]'}, True, [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False, ''),
('outputs:a_double_array', 'double[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5]'}, True, [1.5, 2.5], False, ''),
('outputs:a_execution', 'execution', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '2'}, True, 2, False, ''),
('outputs:a_float', 'float', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '1.5'}, True, 1.5, False, ''),
('outputs:a_float_2', 'float2', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5]'}, True, [1.5, 2.5], False, ''),
('outputs:a_float_2_array', 'float2[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5], [11.5, 12.5]]'}, True, [[1.5, 2.5], [11.5, 12.5]], False, ''),
('outputs:a_float_3', 'float3', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_float_3_array', 'float3[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_float_4', 'float4', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5, 4.5]'}, True, [1.5, 2.5, 3.5, 4.5], False, ''),
('outputs:a_float_4_array', 'float4[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]]'}, True, [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False, ''),
('outputs:a_float_array', 'float[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5]'}, True, [1.5, 2.5], False, ''),
('outputs:a_frame_4', 'frame4d', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]]'}, True, [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], False, ''),
('outputs:a_frame_4_array', 'frame4d[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]]'}, True, [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]], False, ''),
('outputs:a_half', 'half', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '1.5'}, True, 1.5, False, ''),
('outputs:a_half_2', 'half2', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5]'}, True, [1.5, 2.5], False, ''),
('outputs:a_half_2_array', 'half2[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5], [11.5, 12.5]]'}, True, [[1.5, 2.5], [11.5, 12.5]], False, ''),
('outputs:a_half_3', 'half3', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_half_3_array', 'half3[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_half_4', 'half4', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5, 4.5]'}, True, [1.5, 2.5, 3.5, 4.5], False, ''),
('outputs:a_half_4_array', 'half4[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]]'}, True, [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False, ''),
('outputs:a_half_array', 'half[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5]'}, True, [1.5, 2.5], False, ''),
('outputs:a_int', 'int', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '1'}, True, 1, False, ''),
('outputs:a_int64', 'int64', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '12345'}, True, 12345, False, ''),
('outputs:a_int64_array', 'int64[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[12345, 23456]'}, True, [12345, 23456], False, ''),
('outputs:a_int_2', 'int2', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1, 2]'}, True, [1, 2], False, ''),
('outputs:a_int_2_array', 'int2[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1, 2], [3, 4]]'}, True, [[1, 2], [3, 4]], False, ''),
('outputs:a_int_3', 'int3', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1, 2, 3]'}, True, [1, 2, 3], False, ''),
('outputs:a_int_3_array', 'int3[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1, 2, 3], [4, 5, 6]]'}, True, [[1, 2, 3], [4, 5, 6]], False, ''),
('outputs:a_int_4', 'int4', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1, 2, 3, 4]'}, True, [1, 2, 3, 4], False, ''),
('outputs:a_int_4_array', 'int4[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1, 2, 3, 4], [5, 6, 7, 8]]'}, True, [[1, 2, 3, 4], [5, 6, 7, 8]], False, ''),
('outputs:a_int_array', 'int[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1, 2]'}, True, [1, 2], False, ''),
('outputs:a_matrixd_2', 'matrix2d', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5], [3.5, 4.5]]'}, True, [[1.5, 2.5], [3.5, 4.5]], False, ''),
('outputs:a_matrixd_2_array', 'matrix2d[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[[1.5, 2.5], [3.5, 4.5]], [[11.5, 12.5], [13.5, 14.5]]]'}, True, [[[1.5, 2.5], [3.5, 4.5]], [[11.5, 12.5], [13.5, 14.5]]], False, ''),
('outputs:a_matrixd_3', 'matrix3d', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]]'}, True, [[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]], False, ''),
('outputs:a_matrixd_3_array', 'matrix3d[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]], [[11.5, 12.5, 13.5], [14.5, 15.5, 16.5], [17.5, 18.5, 19.5]]]'}, True, [[[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]], [[11.5, 12.5, 13.5], [14.5, 15.5, 16.5], [17.5, 18.5, 19.5]]], False, ''),
('outputs:a_matrixd_4', 'matrix4d', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]]'}, True, [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], False, ''),
('outputs:a_matrixd_4_array', 'matrix4d[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]]'}, True, [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]], False, ''),
('outputs:a_normald_3', 'normal3d', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_normald_3_array', 'normal3d[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_normalf_3', 'normal3f', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_normalf_3_array', 'normal3f[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_normalh_3', 'normal3h', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_normalh_3_array', 'normal3h[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_objectId', 'objectId', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '2'}, True, 2, False, ''),
('outputs:a_objectId_array', 'objectId[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[2, 3]'}, True, [2, 3], False, ''),
('outputs:a_pointd_3', 'point3d', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_pointd_3_array', 'point3d[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_pointf_3', 'point3f', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_pointf_3_array', 'point3f[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_pointh_3', 'point3h', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_pointh_3_array', 'point3h[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_quatd_4', 'quatd', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5, 4.5]'}, True, [1.5, 2.5, 3.5, 4.5], False, ''),
('outputs:a_quatd_4_array', 'quatd[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]]'}, True, [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False, ''),
('outputs:a_quatf_4', 'quatf', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5, 4.5]'}, True, [1.5, 2.5, 3.5, 4.5], False, ''),
('outputs:a_quatf_4_array', 'quatf[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]]'}, True, [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False, ''),
('outputs:a_quath_4', 'quath', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5, 4.5]'}, True, [1.5, 2.5, 3.5, 4.5], False, ''),
('outputs:a_quath_4_array', 'quath[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]]'}, True, [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False, ''),
('outputs:a_string', 'string', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '"Snoke"'}, True, "Snoke", False, ''),
('outputs:a_texcoordd_2', 'texCoord2d', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5]'}, True, [1.5, 2.5], False, ''),
('outputs:a_texcoordd_2_array', 'texCoord2d[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5], [11.5, 12.5]]'}, True, [[1.5, 2.5], [11.5, 12.5]], False, ''),
('outputs:a_texcoordd_3', 'texCoord3d', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_texcoordd_3_array', 'texCoord3d[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_texcoordf_2', 'texCoord2f', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5]'}, True, [1.5, 2.5], False, ''),
('outputs:a_texcoordf_2_array', 'texCoord2f[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5], [11.5, 12.5]]'}, True, [[1.5, 2.5], [11.5, 12.5]], False, ''),
('outputs:a_texcoordf_3', 'texCoord3f', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_texcoordf_3_array', 'texCoord3f[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_texcoordh_2', 'texCoord2h', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5]'}, True, [1.5, 2.5], False, ''),
('outputs:a_texcoordh_2_array', 'texCoord2h[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5], [11.5, 12.5]]'}, True, [[1.5, 2.5], [11.5, 12.5]], False, ''),
('outputs:a_texcoordh_3', 'texCoord3h', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_texcoordh_3_array', 'texCoord3h[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_timecode', 'timecode', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '2.5'}, True, 2.5, False, ''),
('outputs:a_timecode_array', 'timecode[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[2.5, 3.5]'}, True, [2.5, 3.5], False, ''),
('outputs:a_token', 'token', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '"Jedi"'}, True, "Jedi", False, ''),
('outputs:a_token_array', 'token[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '["Luke", "Skywalker"]'}, True, ['Luke', 'Skywalker'], False, ''),
('outputs:a_uchar', 'uchar', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '2'}, True, 2, False, ''),
('outputs:a_uchar_array', 'uchar[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[2, 3]'}, True, [2, 3], False, ''),
('outputs:a_uint', 'uint', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '2'}, True, 2, False, ''),
('outputs:a_uint64', 'uint64', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '2'}, True, 2, False, ''),
('outputs:a_uint64_array', 'uint64[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[2, 3]'}, True, [2, 3], False, ''),
('outputs:a_uint_array', 'uint[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[2, 3]'}, True, [2, 3], False, ''),
('outputs:a_vectord_3', 'vector3d', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_vectord_3_array', 'vector3d[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_vectorf_3', 'vector3f', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_vectorf_3_array', 'vector3f[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_vectorh_3', 'vector3h', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_vectorh_3_array', 'vector3h[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
])
@classmethod
def _populate_role_data(cls):
"""Populate a role structure with the non-default roles on this node type"""
role_data = super()._populate_role_data()
role_data.inputs.a_colord_3 = og.AttributeRole.COLOR
role_data.inputs.a_colord_3_array = og.AttributeRole.COLOR
role_data.inputs.a_colord_4 = og.AttributeRole.COLOR
role_data.inputs.a_colord_4_array = og.AttributeRole.COLOR
role_data.inputs.a_colorf_3 = og.AttributeRole.COLOR
role_data.inputs.a_colorf_3_array = og.AttributeRole.COLOR
role_data.inputs.a_colorf_4 = og.AttributeRole.COLOR
role_data.inputs.a_colorf_4_array = og.AttributeRole.COLOR
role_data.inputs.a_colorh_3 = og.AttributeRole.COLOR
role_data.inputs.a_colorh_3_array = og.AttributeRole.COLOR
role_data.inputs.a_colorh_4 = og.AttributeRole.COLOR
role_data.inputs.a_colorh_4_array = og.AttributeRole.COLOR
role_data.inputs.a_execution = og.AttributeRole.EXECUTION
role_data.inputs.a_frame_4 = og.AttributeRole.FRAME
role_data.inputs.a_frame_4_array = og.AttributeRole.FRAME
role_data.inputs.a_matrixd_2 = og.AttributeRole.MATRIX
role_data.inputs.a_matrixd_2_array = og.AttributeRole.MATRIX
role_data.inputs.a_matrixd_3 = og.AttributeRole.MATRIX
role_data.inputs.a_matrixd_3_array = og.AttributeRole.MATRIX
role_data.inputs.a_matrixd_4 = og.AttributeRole.MATRIX
role_data.inputs.a_matrixd_4_array = og.AttributeRole.MATRIX
role_data.inputs.a_normald_3 = og.AttributeRole.NORMAL
role_data.inputs.a_normald_3_array = og.AttributeRole.NORMAL
role_data.inputs.a_normalf_3 = og.AttributeRole.NORMAL
role_data.inputs.a_normalf_3_array = og.AttributeRole.NORMAL
role_data.inputs.a_normalh_3 = og.AttributeRole.NORMAL
role_data.inputs.a_normalh_3_array = og.AttributeRole.NORMAL
role_data.inputs.a_objectId = og.AttributeRole.OBJECT_ID
role_data.inputs.a_objectId_array = og.AttributeRole.OBJECT_ID
role_data.inputs.a_pointd_3 = og.AttributeRole.POSITION
role_data.inputs.a_pointd_3_array = og.AttributeRole.POSITION
role_data.inputs.a_pointf_3 = og.AttributeRole.POSITION
role_data.inputs.a_pointf_3_array = og.AttributeRole.POSITION
role_data.inputs.a_pointh_3 = og.AttributeRole.POSITION
role_data.inputs.a_pointh_3_array = og.AttributeRole.POSITION
role_data.inputs.a_quatd_4 = og.AttributeRole.QUATERNION
role_data.inputs.a_quatd_4_array = og.AttributeRole.QUATERNION
role_data.inputs.a_quatf_4 = og.AttributeRole.QUATERNION
role_data.inputs.a_quatf_4_array = og.AttributeRole.QUATERNION
role_data.inputs.a_quath_4 = og.AttributeRole.QUATERNION
role_data.inputs.a_quath_4_array = og.AttributeRole.QUATERNION
role_data.inputs.a_string = og.AttributeRole.TEXT
role_data.inputs.a_texcoordd_2 = og.AttributeRole.TEXCOORD
role_data.inputs.a_texcoordd_2_array = og.AttributeRole.TEXCOORD
role_data.inputs.a_texcoordd_3 = og.AttributeRole.TEXCOORD
role_data.inputs.a_texcoordd_3_array = og.AttributeRole.TEXCOORD
role_data.inputs.a_texcoordf_2 = og.AttributeRole.TEXCOORD
role_data.inputs.a_texcoordf_2_array = og.AttributeRole.TEXCOORD
role_data.inputs.a_texcoordf_3 = og.AttributeRole.TEXCOORD
role_data.inputs.a_texcoordf_3_array = og.AttributeRole.TEXCOORD
role_data.inputs.a_texcoordh_2 = og.AttributeRole.TEXCOORD
role_data.inputs.a_texcoordh_2_array = og.AttributeRole.TEXCOORD
role_data.inputs.a_texcoordh_3 = og.AttributeRole.TEXCOORD
role_data.inputs.a_texcoordh_3_array = og.AttributeRole.TEXCOORD
role_data.inputs.a_timecode = og.AttributeRole.TIMECODE
role_data.inputs.a_timecode_array = og.AttributeRole.TIMECODE
role_data.inputs.a_vectord_3 = og.AttributeRole.VECTOR
role_data.inputs.a_vectord_3_array = og.AttributeRole.VECTOR
role_data.inputs.a_vectorf_3 = og.AttributeRole.VECTOR
role_data.inputs.a_vectorf_3_array = og.AttributeRole.VECTOR
role_data.inputs.a_vectorh_3 = og.AttributeRole.VECTOR
role_data.inputs.a_vectorh_3_array = og.AttributeRole.VECTOR
role_data.outputs.a_colord_3 = og.AttributeRole.COLOR
role_data.outputs.a_colord_3_array = og.AttributeRole.COLOR
role_data.outputs.a_colord_4 = og.AttributeRole.COLOR
role_data.outputs.a_colord_4_array = og.AttributeRole.COLOR
role_data.outputs.a_colorf_3 = og.AttributeRole.COLOR
role_data.outputs.a_colorf_3_array = og.AttributeRole.COLOR
role_data.outputs.a_colorf_4 = og.AttributeRole.COLOR
role_data.outputs.a_colorf_4_array = og.AttributeRole.COLOR
role_data.outputs.a_colorh_3 = og.AttributeRole.COLOR
role_data.outputs.a_colorh_3_array = og.AttributeRole.COLOR
role_data.outputs.a_colorh_4 = og.AttributeRole.COLOR
role_data.outputs.a_colorh_4_array = og.AttributeRole.COLOR
role_data.outputs.a_execution = og.AttributeRole.EXECUTION
role_data.outputs.a_frame_4 = og.AttributeRole.FRAME
role_data.outputs.a_frame_4_array = og.AttributeRole.FRAME
role_data.outputs.a_matrixd_2 = og.AttributeRole.MATRIX
role_data.outputs.a_matrixd_2_array = og.AttributeRole.MATRIX
role_data.outputs.a_matrixd_3 = og.AttributeRole.MATRIX
role_data.outputs.a_matrixd_3_array = og.AttributeRole.MATRIX
role_data.outputs.a_matrixd_4 = og.AttributeRole.MATRIX
role_data.outputs.a_matrixd_4_array = og.AttributeRole.MATRIX
role_data.outputs.a_normald_3 = og.AttributeRole.NORMAL
role_data.outputs.a_normald_3_array = og.AttributeRole.NORMAL
role_data.outputs.a_normalf_3 = og.AttributeRole.NORMAL
role_data.outputs.a_normalf_3_array = og.AttributeRole.NORMAL
role_data.outputs.a_normalh_3 = og.AttributeRole.NORMAL
role_data.outputs.a_normalh_3_array = og.AttributeRole.NORMAL
role_data.outputs.a_objectId = og.AttributeRole.OBJECT_ID
role_data.outputs.a_objectId_array = og.AttributeRole.OBJECT_ID
role_data.outputs.a_pointd_3 = og.AttributeRole.POSITION
role_data.outputs.a_pointd_3_array = og.AttributeRole.POSITION
role_data.outputs.a_pointf_3 = og.AttributeRole.POSITION
role_data.outputs.a_pointf_3_array = og.AttributeRole.POSITION
role_data.outputs.a_pointh_3 = og.AttributeRole.POSITION
role_data.outputs.a_pointh_3_array = og.AttributeRole.POSITION
role_data.outputs.a_quatd_4 = og.AttributeRole.QUATERNION
role_data.outputs.a_quatd_4_array = og.AttributeRole.QUATERNION
role_data.outputs.a_quatf_4 = og.AttributeRole.QUATERNION
role_data.outputs.a_quatf_4_array = og.AttributeRole.QUATERNION
role_data.outputs.a_quath_4 = og.AttributeRole.QUATERNION
role_data.outputs.a_quath_4_array = og.AttributeRole.QUATERNION
role_data.outputs.a_string = og.AttributeRole.TEXT
role_data.outputs.a_texcoordd_2 = og.AttributeRole.TEXCOORD
role_data.outputs.a_texcoordd_2_array = og.AttributeRole.TEXCOORD
role_data.outputs.a_texcoordd_3 = og.AttributeRole.TEXCOORD
role_data.outputs.a_texcoordd_3_array = og.AttributeRole.TEXCOORD
role_data.outputs.a_texcoordf_2 = og.AttributeRole.TEXCOORD
role_data.outputs.a_texcoordf_2_array = og.AttributeRole.TEXCOORD
role_data.outputs.a_texcoordf_3 = og.AttributeRole.TEXCOORD
role_data.outputs.a_texcoordf_3_array = og.AttributeRole.TEXCOORD
role_data.outputs.a_texcoordh_2 = og.AttributeRole.TEXCOORD
role_data.outputs.a_texcoordh_2_array = og.AttributeRole.TEXCOORD
role_data.outputs.a_texcoordh_3 = og.AttributeRole.TEXCOORD
role_data.outputs.a_texcoordh_3_array = og.AttributeRole.TEXCOORD
role_data.outputs.a_timecode = og.AttributeRole.TIMECODE
role_data.outputs.a_timecode_array = og.AttributeRole.TIMECODE
role_data.outputs.a_vectord_3 = og.AttributeRole.VECTOR
role_data.outputs.a_vectord_3_array = og.AttributeRole.VECTOR
role_data.outputs.a_vectorf_3 = og.AttributeRole.VECTOR
role_data.outputs.a_vectorf_3_array = og.AttributeRole.VECTOR
role_data.outputs.a_vectorh_3 = og.AttributeRole.VECTOR
role_data.outputs.a_vectorh_3_array = og.AttributeRole.VECTOR
return role_data
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to input attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedReadAttributes = []
self._batchedReadValues = []
@property
def a_bool(self):
data_view = og.AttributeValueHelper(self._attributes.a_bool)
return data_view.get()
@a_bool.setter
def a_bool(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_bool)
data_view = og.AttributeValueHelper(self._attributes.a_bool)
data_view.set(value)
@property
def a_bool_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_bool_array)
return data_view.get()
@a_bool_array.setter
def a_bool_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_bool_array)
data_view = og.AttributeValueHelper(self._attributes.a_bool_array)
data_view.set(value)
self.a_bool_array_size = data_view.get_array_size()
@property
def a_colord_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_colord_3)
return data_view.get()
@a_colord_3.setter
def a_colord_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_colord_3)
data_view = og.AttributeValueHelper(self._attributes.a_colord_3)
data_view.set(value)
@property
def a_colord_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_colord_3_array)
return data_view.get()
@a_colord_3_array.setter
def a_colord_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_colord_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_colord_3_array)
data_view.set(value)
self.a_colord_3_array_size = data_view.get_array_size()
@property
def a_colord_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_colord_4)
return data_view.get()
@a_colord_4.setter
def a_colord_4(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_colord_4)
data_view = og.AttributeValueHelper(self._attributes.a_colord_4)
data_view.set(value)
@property
def a_colord_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_colord_4_array)
return data_view.get()
@a_colord_4_array.setter
def a_colord_4_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_colord_4_array)
data_view = og.AttributeValueHelper(self._attributes.a_colord_4_array)
data_view.set(value)
self.a_colord_4_array_size = data_view.get_array_size()
@property
def a_colorf_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorf_3)
return data_view.get()
@a_colorf_3.setter
def a_colorf_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_colorf_3)
data_view = og.AttributeValueHelper(self._attributes.a_colorf_3)
data_view.set(value)
@property
def a_colorf_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorf_3_array)
return data_view.get()
@a_colorf_3_array.setter
def a_colorf_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_colorf_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_colorf_3_array)
data_view.set(value)
self.a_colorf_3_array_size = data_view.get_array_size()
@property
def a_colorf_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorf_4)
return data_view.get()
@a_colorf_4.setter
def a_colorf_4(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_colorf_4)
data_view = og.AttributeValueHelper(self._attributes.a_colorf_4)
data_view.set(value)
@property
def a_colorf_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorf_4_array)
return data_view.get()
@a_colorf_4_array.setter
def a_colorf_4_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_colorf_4_array)
data_view = og.AttributeValueHelper(self._attributes.a_colorf_4_array)
data_view.set(value)
self.a_colorf_4_array_size = data_view.get_array_size()
@property
def a_colorh_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorh_3)
return data_view.get()
@a_colorh_3.setter
def a_colorh_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_colorh_3)
data_view = og.AttributeValueHelper(self._attributes.a_colorh_3)
data_view.set(value)
@property
def a_colorh_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorh_3_array)
return data_view.get()
@a_colorh_3_array.setter
def a_colorh_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_colorh_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_colorh_3_array)
data_view.set(value)
self.a_colorh_3_array_size = data_view.get_array_size()
@property
def a_colorh_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorh_4)
return data_view.get()
@a_colorh_4.setter
def a_colorh_4(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_colorh_4)
data_view = og.AttributeValueHelper(self._attributes.a_colorh_4)
data_view.set(value)
@property
def a_colorh_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorh_4_array)
return data_view.get()
@a_colorh_4_array.setter
def a_colorh_4_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_colorh_4_array)
data_view = og.AttributeValueHelper(self._attributes.a_colorh_4_array)
data_view.set(value)
self.a_colorh_4_array_size = data_view.get_array_size()
@property
def a_double(self):
data_view = og.AttributeValueHelper(self._attributes.a_double)
return data_view.get()
@a_double.setter
def a_double(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_double)
data_view = og.AttributeValueHelper(self._attributes.a_double)
data_view.set(value)
@property
def a_double_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_2)
return data_view.get()
@a_double_2.setter
def a_double_2(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_double_2)
data_view = og.AttributeValueHelper(self._attributes.a_double_2)
data_view.set(value)
@property
def a_double_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_2_array)
return data_view.get()
@a_double_2_array.setter
def a_double_2_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_double_2_array)
data_view = og.AttributeValueHelper(self._attributes.a_double_2_array)
data_view.set(value)
self.a_double_2_array_size = data_view.get_array_size()
@property
def a_double_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_3)
return data_view.get()
@a_double_3.setter
def a_double_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_double_3)
data_view = og.AttributeValueHelper(self._attributes.a_double_3)
data_view.set(value)
@property
def a_double_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_3_array)
return data_view.get()
@a_double_3_array.setter
def a_double_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_double_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_double_3_array)
data_view.set(value)
self.a_double_3_array_size = data_view.get_array_size()
@property
def a_double_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_4)
return data_view.get()
@a_double_4.setter
def a_double_4(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_double_4)
data_view = og.AttributeValueHelper(self._attributes.a_double_4)
data_view.set(value)
@property
def a_double_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_4_array)
return data_view.get()
@a_double_4_array.setter
def a_double_4_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_double_4_array)
data_view = og.AttributeValueHelper(self._attributes.a_double_4_array)
data_view.set(value)
self.a_double_4_array_size = data_view.get_array_size()
@property
def a_double_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_array)
return data_view.get()
@a_double_array.setter
def a_double_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_double_array)
data_view = og.AttributeValueHelper(self._attributes.a_double_array)
data_view.set(value)
self.a_double_array_size = data_view.get_array_size()
@property
def a_execution(self):
data_view = og.AttributeValueHelper(self._attributes.a_execution)
return data_view.get()
@a_execution.setter
def a_execution(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_execution)
data_view = og.AttributeValueHelper(self._attributes.a_execution)
data_view.set(value)
@property
def a_float(self):
data_view = og.AttributeValueHelper(self._attributes.a_float)
return data_view.get()
@a_float.setter
def a_float(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_float)
data_view = og.AttributeValueHelper(self._attributes.a_float)
data_view.set(value)
@property
def a_float_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_2)
return data_view.get()
@a_float_2.setter
def a_float_2(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_float_2)
data_view = og.AttributeValueHelper(self._attributes.a_float_2)
data_view.set(value)
@property
def a_float_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_2_array)
return data_view.get()
@a_float_2_array.setter
def a_float_2_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_float_2_array)
data_view = og.AttributeValueHelper(self._attributes.a_float_2_array)
data_view.set(value)
self.a_float_2_array_size = data_view.get_array_size()
@property
def a_float_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_3)
return data_view.get()
@a_float_3.setter
def a_float_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_float_3)
data_view = og.AttributeValueHelper(self._attributes.a_float_3)
data_view.set(value)
@property
def a_float_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_3_array)
return data_view.get()
@a_float_3_array.setter
def a_float_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_float_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_float_3_array)
data_view.set(value)
self.a_float_3_array_size = data_view.get_array_size()
@property
def a_float_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_4)
return data_view.get()
@a_float_4.setter
def a_float_4(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_float_4)
data_view = og.AttributeValueHelper(self._attributes.a_float_4)
data_view.set(value)
@property
def a_float_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_4_array)
return data_view.get()
@a_float_4_array.setter
def a_float_4_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_float_4_array)
data_view = og.AttributeValueHelper(self._attributes.a_float_4_array)
data_view.set(value)
self.a_float_4_array_size = data_view.get_array_size()
@property
def a_float_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_array)
return data_view.get()
@a_float_array.setter
def a_float_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_float_array)
data_view = og.AttributeValueHelper(self._attributes.a_float_array)
data_view.set(value)
self.a_float_array_size = data_view.get_array_size()
@property
def a_frame_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_frame_4)
return data_view.get()
@a_frame_4.setter
def a_frame_4(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_frame_4)
data_view = og.AttributeValueHelper(self._attributes.a_frame_4)
data_view.set(value)
@property
def a_frame_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_frame_4_array)
return data_view.get()
@a_frame_4_array.setter
def a_frame_4_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_frame_4_array)
data_view = og.AttributeValueHelper(self._attributes.a_frame_4_array)
data_view.set(value)
self.a_frame_4_array_size = data_view.get_array_size()
@property
def a_half(self):
data_view = og.AttributeValueHelper(self._attributes.a_half)
return data_view.get()
@a_half.setter
def a_half(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_half)
data_view = og.AttributeValueHelper(self._attributes.a_half)
data_view.set(value)
@property
def a_half_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_2)
return data_view.get()
@a_half_2.setter
def a_half_2(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_half_2)
data_view = og.AttributeValueHelper(self._attributes.a_half_2)
data_view.set(value)
@property
def a_half_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_2_array)
return data_view.get()
@a_half_2_array.setter
def a_half_2_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_half_2_array)
data_view = og.AttributeValueHelper(self._attributes.a_half_2_array)
data_view.set(value)
self.a_half_2_array_size = data_view.get_array_size()
@property
def a_half_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_3)
return data_view.get()
@a_half_3.setter
def a_half_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_half_3)
data_view = og.AttributeValueHelper(self._attributes.a_half_3)
data_view.set(value)
@property
def a_half_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_3_array)
return data_view.get()
@a_half_3_array.setter
def a_half_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_half_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_half_3_array)
data_view.set(value)
self.a_half_3_array_size = data_view.get_array_size()
@property
def a_half_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_4)
return data_view.get()
@a_half_4.setter
def a_half_4(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_half_4)
data_view = og.AttributeValueHelper(self._attributes.a_half_4)
data_view.set(value)
@property
def a_half_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_4_array)
return data_view.get()
@a_half_4_array.setter
def a_half_4_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_half_4_array)
data_view = og.AttributeValueHelper(self._attributes.a_half_4_array)
data_view.set(value)
self.a_half_4_array_size = data_view.get_array_size()
@property
def a_half_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_array)
return data_view.get()
@a_half_array.setter
def a_half_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_half_array)
data_view = og.AttributeValueHelper(self._attributes.a_half_array)
data_view.set(value)
self.a_half_array_size = data_view.get_array_size()
@property
def a_int(self):
data_view = og.AttributeValueHelper(self._attributes.a_int)
return data_view.get()
@a_int.setter
def a_int(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_int)
data_view = og.AttributeValueHelper(self._attributes.a_int)
data_view.set(value)
@property
def a_int64(self):
data_view = og.AttributeValueHelper(self._attributes.a_int64)
return data_view.get()
@a_int64.setter
def a_int64(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_int64)
data_view = og.AttributeValueHelper(self._attributes.a_int64)
data_view.set(value)
@property
def a_int64_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_int64_array)
return data_view.get()
@a_int64_array.setter
def a_int64_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_int64_array)
data_view = og.AttributeValueHelper(self._attributes.a_int64_array)
data_view.set(value)
self.a_int64_array_size = data_view.get_array_size()
@property
def a_int_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_2)
return data_view.get()
@a_int_2.setter
def a_int_2(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_int_2)
data_view = og.AttributeValueHelper(self._attributes.a_int_2)
data_view.set(value)
@property
def a_int_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_2_array)
return data_view.get()
@a_int_2_array.setter
def a_int_2_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_int_2_array)
data_view = og.AttributeValueHelper(self._attributes.a_int_2_array)
data_view.set(value)
self.a_int_2_array_size = data_view.get_array_size()
@property
def a_int_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_3)
return data_view.get()
@a_int_3.setter
def a_int_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_int_3)
data_view = og.AttributeValueHelper(self._attributes.a_int_3)
data_view.set(value)
@property
def a_int_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_3_array)
return data_view.get()
@a_int_3_array.setter
def a_int_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_int_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_int_3_array)
data_view.set(value)
self.a_int_3_array_size = data_view.get_array_size()
@property
def a_int_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_4)
return data_view.get()
@a_int_4.setter
def a_int_4(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_int_4)
data_view = og.AttributeValueHelper(self._attributes.a_int_4)
data_view.set(value)
@property
def a_int_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_4_array)
return data_view.get()
@a_int_4_array.setter
def a_int_4_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_int_4_array)
data_view = og.AttributeValueHelper(self._attributes.a_int_4_array)
data_view.set(value)
self.a_int_4_array_size = data_view.get_array_size()
@property
def a_int_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_array)
return data_view.get()
@a_int_array.setter
def a_int_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_int_array)
data_view = og.AttributeValueHelper(self._attributes.a_int_array)
data_view.set(value)
self.a_int_array_size = data_view.get_array_size()
@property
def a_matrixd_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_2)
return data_view.get()
@a_matrixd_2.setter
def a_matrixd_2(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_matrixd_2)
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_2)
data_view.set(value)
@property
def a_matrixd_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_2_array)
return data_view.get()
@a_matrixd_2_array.setter
def a_matrixd_2_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_matrixd_2_array)
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_2_array)
data_view.set(value)
self.a_matrixd_2_array_size = data_view.get_array_size()
@property
def a_matrixd_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_3)
return data_view.get()
@a_matrixd_3.setter
def a_matrixd_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_matrixd_3)
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_3)
data_view.set(value)
@property
def a_matrixd_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_3_array)
return data_view.get()
@a_matrixd_3_array.setter
def a_matrixd_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_matrixd_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_3_array)
data_view.set(value)
self.a_matrixd_3_array_size = data_view.get_array_size()
@property
def a_matrixd_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_4)
return data_view.get()
@a_matrixd_4.setter
def a_matrixd_4(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_matrixd_4)
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_4)
data_view.set(value)
@property
def a_matrixd_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_4_array)
return data_view.get()
@a_matrixd_4_array.setter
def a_matrixd_4_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_matrixd_4_array)
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_4_array)
data_view.set(value)
self.a_matrixd_4_array_size = data_view.get_array_size()
@property
def a_normald_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_normald_3)
return data_view.get()
@a_normald_3.setter
def a_normald_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_normald_3)
data_view = og.AttributeValueHelper(self._attributes.a_normald_3)
data_view.set(value)
@property
def a_normald_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_normald_3_array)
return data_view.get()
@a_normald_3_array.setter
def a_normald_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_normald_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_normald_3_array)
data_view.set(value)
self.a_normald_3_array_size = data_view.get_array_size()
@property
def a_normalf_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_normalf_3)
return data_view.get()
@a_normalf_3.setter
def a_normalf_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_normalf_3)
data_view = og.AttributeValueHelper(self._attributes.a_normalf_3)
data_view.set(value)
@property
def a_normalf_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_normalf_3_array)
return data_view.get()
@a_normalf_3_array.setter
def a_normalf_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_normalf_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_normalf_3_array)
data_view.set(value)
self.a_normalf_3_array_size = data_view.get_array_size()
@property
def a_normalh_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_normalh_3)
return data_view.get()
@a_normalh_3.setter
def a_normalh_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_normalh_3)
data_view = og.AttributeValueHelper(self._attributes.a_normalh_3)
data_view.set(value)
@property
def a_normalh_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_normalh_3_array)
return data_view.get()
@a_normalh_3_array.setter
def a_normalh_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_normalh_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_normalh_3_array)
data_view.set(value)
self.a_normalh_3_array_size = data_view.get_array_size()
@property
def a_objectId(self):
data_view = og.AttributeValueHelper(self._attributes.a_objectId)
return data_view.get()
@a_objectId.setter
def a_objectId(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_objectId)
data_view = og.AttributeValueHelper(self._attributes.a_objectId)
data_view.set(value)
@property
def a_objectId_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_objectId_array)
return data_view.get()
@a_objectId_array.setter
def a_objectId_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_objectId_array)
data_view = og.AttributeValueHelper(self._attributes.a_objectId_array)
data_view.set(value)
self.a_objectId_array_size = data_view.get_array_size()
@property
def a_pointd_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_pointd_3)
return data_view.get()
@a_pointd_3.setter
def a_pointd_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_pointd_3)
data_view = og.AttributeValueHelper(self._attributes.a_pointd_3)
data_view.set(value)
@property
def a_pointd_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_pointd_3_array)
return data_view.get()
@a_pointd_3_array.setter
def a_pointd_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_pointd_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_pointd_3_array)
data_view.set(value)
self.a_pointd_3_array_size = data_view.get_array_size()
@property
def a_pointf_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_pointf_3)
return data_view.get()
@a_pointf_3.setter
def a_pointf_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_pointf_3)
data_view = og.AttributeValueHelper(self._attributes.a_pointf_3)
data_view.set(value)
@property
def a_pointf_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_pointf_3_array)
return data_view.get()
@a_pointf_3_array.setter
def a_pointf_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_pointf_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_pointf_3_array)
data_view.set(value)
self.a_pointf_3_array_size = data_view.get_array_size()
@property
def a_pointh_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_pointh_3)
return data_view.get()
@a_pointh_3.setter
def a_pointh_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_pointh_3)
data_view = og.AttributeValueHelper(self._attributes.a_pointh_3)
data_view.set(value)
@property
def a_pointh_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_pointh_3_array)
return data_view.get()
@a_pointh_3_array.setter
def a_pointh_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_pointh_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_pointh_3_array)
data_view.set(value)
self.a_pointh_3_array_size = data_view.get_array_size()
@property
def a_quatd_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_quatd_4)
return data_view.get()
@a_quatd_4.setter
def a_quatd_4(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_quatd_4)
data_view = og.AttributeValueHelper(self._attributes.a_quatd_4)
data_view.set(value)
@property
def a_quatd_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_quatd_4_array)
return data_view.get()
@a_quatd_4_array.setter
def a_quatd_4_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_quatd_4_array)
data_view = og.AttributeValueHelper(self._attributes.a_quatd_4_array)
data_view.set(value)
self.a_quatd_4_array_size = data_view.get_array_size()
@property
def a_quatf_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_quatf_4)
return data_view.get()
@a_quatf_4.setter
def a_quatf_4(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_quatf_4)
data_view = og.AttributeValueHelper(self._attributes.a_quatf_4)
data_view.set(value)
@property
def a_quatf_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_quatf_4_array)
return data_view.get()
@a_quatf_4_array.setter
def a_quatf_4_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_quatf_4_array)
data_view = og.AttributeValueHelper(self._attributes.a_quatf_4_array)
data_view.set(value)
self.a_quatf_4_array_size = data_view.get_array_size()
@property
def a_quath_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_quath_4)
return data_view.get()
@a_quath_4.setter
def a_quath_4(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_quath_4)
data_view = og.AttributeValueHelper(self._attributes.a_quath_4)
data_view.set(value)
@property
def a_quath_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_quath_4_array)
return data_view.get()
@a_quath_4_array.setter
def a_quath_4_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_quath_4_array)
data_view = og.AttributeValueHelper(self._attributes.a_quath_4_array)
data_view.set(value)
self.a_quath_4_array_size = data_view.get_array_size()
@property
def a_string(self):
data_view = og.AttributeValueHelper(self._attributes.a_string)
return data_view.get()
@a_string.setter
def a_string(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_string)
data_view = og.AttributeValueHelper(self._attributes.a_string)
data_view.set(value)
self.a_string_size = data_view.get_array_size()
@property
def a_texcoordd_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_2)
return data_view.get()
@a_texcoordd_2.setter
def a_texcoordd_2(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_texcoordd_2)
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_2)
data_view.set(value)
@property
def a_texcoordd_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_2_array)
return data_view.get()
@a_texcoordd_2_array.setter
def a_texcoordd_2_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_texcoordd_2_array)
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_2_array)
data_view.set(value)
self.a_texcoordd_2_array_size = data_view.get_array_size()
@property
def a_texcoordd_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_3)
return data_view.get()
@a_texcoordd_3.setter
def a_texcoordd_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_texcoordd_3)
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_3)
data_view.set(value)
@property
def a_texcoordd_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_3_array)
return data_view.get()
@a_texcoordd_3_array.setter
def a_texcoordd_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_texcoordd_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_3_array)
data_view.set(value)
self.a_texcoordd_3_array_size = data_view.get_array_size()
@property
def a_texcoordf_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_2)
return data_view.get()
@a_texcoordf_2.setter
def a_texcoordf_2(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_texcoordf_2)
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_2)
data_view.set(value)
@property
def a_texcoordf_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_2_array)
return data_view.get()
@a_texcoordf_2_array.setter
def a_texcoordf_2_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_texcoordf_2_array)
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_2_array)
data_view.set(value)
self.a_texcoordf_2_array_size = data_view.get_array_size()
@property
def a_texcoordf_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_3)
return data_view.get()
@a_texcoordf_3.setter
def a_texcoordf_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_texcoordf_3)
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_3)
data_view.set(value)
@property
def a_texcoordf_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_3_array)
return data_view.get()
@a_texcoordf_3_array.setter
def a_texcoordf_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_texcoordf_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_3_array)
data_view.set(value)
self.a_texcoordf_3_array_size = data_view.get_array_size()
@property
def a_texcoordh_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_2)
return data_view.get()
@a_texcoordh_2.setter
def a_texcoordh_2(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_texcoordh_2)
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_2)
data_view.set(value)
@property
def a_texcoordh_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_2_array)
return data_view.get()
@a_texcoordh_2_array.setter
def a_texcoordh_2_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_texcoordh_2_array)
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_2_array)
data_view.set(value)
self.a_texcoordh_2_array_size = data_view.get_array_size()
@property
def a_texcoordh_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_3)
return data_view.get()
@a_texcoordh_3.setter
def a_texcoordh_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_texcoordh_3)
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_3)
data_view.set(value)
@property
def a_texcoordh_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_3_array)
return data_view.get()
@a_texcoordh_3_array.setter
def a_texcoordh_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_texcoordh_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_3_array)
data_view.set(value)
self.a_texcoordh_3_array_size = data_view.get_array_size()
@property
def a_timecode(self):
data_view = og.AttributeValueHelper(self._attributes.a_timecode)
return data_view.get()
@a_timecode.setter
def a_timecode(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_timecode)
data_view = og.AttributeValueHelper(self._attributes.a_timecode)
data_view.set(value)
@property
def a_timecode_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_timecode_array)
return data_view.get()
@a_timecode_array.setter
def a_timecode_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_timecode_array)
data_view = og.AttributeValueHelper(self._attributes.a_timecode_array)
data_view.set(value)
self.a_timecode_array_size = data_view.get_array_size()
@property
def a_token(self):
data_view = og.AttributeValueHelper(self._attributes.a_token)
return data_view.get()
@a_token.setter
def a_token(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_token)
data_view = og.AttributeValueHelper(self._attributes.a_token)
data_view.set(value)
@property
def a_token_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_token_array)
return data_view.get()
@a_token_array.setter
def a_token_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_token_array)
data_view = og.AttributeValueHelper(self._attributes.a_token_array)
data_view.set(value)
self.a_token_array_size = data_view.get_array_size()
@property
def a_uchar(self):
data_view = og.AttributeValueHelper(self._attributes.a_uchar)
return data_view.get()
@a_uchar.setter
def a_uchar(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_uchar)
data_view = og.AttributeValueHelper(self._attributes.a_uchar)
data_view.set(value)
@property
def a_uchar_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_uchar_array)
return data_view.get()
@a_uchar_array.setter
def a_uchar_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_uchar_array)
data_view = og.AttributeValueHelper(self._attributes.a_uchar_array)
data_view.set(value)
self.a_uchar_array_size = data_view.get_array_size()
@property
def a_uint(self):
data_view = og.AttributeValueHelper(self._attributes.a_uint)
return data_view.get()
@a_uint.setter
def a_uint(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_uint)
data_view = og.AttributeValueHelper(self._attributes.a_uint)
data_view.set(value)
@property
def a_uint64(self):
data_view = og.AttributeValueHelper(self._attributes.a_uint64)
return data_view.get()
@a_uint64.setter
def a_uint64(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_uint64)
data_view = og.AttributeValueHelper(self._attributes.a_uint64)
data_view.set(value)
@property
def a_uint64_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_uint64_array)
return data_view.get()
@a_uint64_array.setter
def a_uint64_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_uint64_array)
data_view = og.AttributeValueHelper(self._attributes.a_uint64_array)
data_view.set(value)
self.a_uint64_array_size = data_view.get_array_size()
@property
def a_uint_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_uint_array)
return data_view.get()
@a_uint_array.setter
def a_uint_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_uint_array)
data_view = og.AttributeValueHelper(self._attributes.a_uint_array)
data_view.set(value)
self.a_uint_array_size = data_view.get_array_size()
@property
def a_vectord_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_vectord_3)
return data_view.get()
@a_vectord_3.setter
def a_vectord_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_vectord_3)
data_view = og.AttributeValueHelper(self._attributes.a_vectord_3)
data_view.set(value)
@property
def a_vectord_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_vectord_3_array)
return data_view.get()
@a_vectord_3_array.setter
def a_vectord_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_vectord_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_vectord_3_array)
data_view.set(value)
self.a_vectord_3_array_size = data_view.get_array_size()
@property
def a_vectorf_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_vectorf_3)
return data_view.get()
@a_vectorf_3.setter
def a_vectorf_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_vectorf_3)
data_view = og.AttributeValueHelper(self._attributes.a_vectorf_3)
data_view.set(value)
@property
def a_vectorf_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_vectorf_3_array)
return data_view.get()
@a_vectorf_3_array.setter
def a_vectorf_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_vectorf_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_vectorf_3_array)
data_view.set(value)
self.a_vectorf_3_array_size = data_view.get_array_size()
@property
def a_vectorh_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_vectorh_3)
return data_view.get()
@a_vectorh_3.setter
def a_vectorh_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_vectorh_3)
data_view = og.AttributeValueHelper(self._attributes.a_vectorh_3)
data_view.set(value)
@property
def a_vectorh_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_vectorh_3_array)
return data_view.get()
@a_vectorh_3_array.setter
def a_vectorh_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_vectorh_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_vectorh_3_array)
data_view.set(value)
self.a_vectorh_3_array_size = data_view.get_array_size()
@property
def doNotCompute(self):
data_view = og.AttributeValueHelper(self._attributes.doNotCompute)
return data_view.get()
@doNotCompute.setter
def doNotCompute(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.doNotCompute)
data_view = og.AttributeValueHelper(self._attributes.doNotCompute)
data_view.set(value)
def _prefetch(self):
readAttributes = self._batchedReadAttributes
newValues = _og._prefetch_input_attributes_data(readAttributes)
if len(readAttributes) == len(newValues):
self._batchedReadValues = newValues
class ValuesForOutputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to output attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self.a_bool_array_size = 2
self.a_colord_3_array_size = 2
self.a_colord_4_array_size = 2
self.a_colorf_3_array_size = 2
self.a_colorf_4_array_size = 2
self.a_colorh_3_array_size = 2
self.a_colorh_4_array_size = 2
self.a_double_2_array_size = 2
self.a_double_3_array_size = 2
self.a_double_4_array_size = 2
self.a_double_array_size = 2
self.a_float_2_array_size = 2
self.a_float_3_array_size = 2
self.a_float_4_array_size = 2
self.a_float_array_size = 2
self.a_frame_4_array_size = 2
self.a_half_2_array_size = 2
self.a_half_3_array_size = 2
self.a_half_4_array_size = 2
self.a_half_array_size = 2
self.a_int64_array_size = 2
self.a_int_2_array_size = 2
self.a_int_3_array_size = 2
self.a_int_4_array_size = 2
self.a_int_array_size = 2
self.a_matrixd_2_array_size = 2
self.a_matrixd_3_array_size = 2
self.a_matrixd_4_array_size = 2
self.a_normald_3_array_size = 2
self.a_normalf_3_array_size = 2
self.a_normalh_3_array_size = 2
self.a_objectId_array_size = 2
self.a_pointd_3_array_size = 2
self.a_pointf_3_array_size = 2
self.a_pointh_3_array_size = 2
self.a_quatd_4_array_size = 2
self.a_quatf_4_array_size = 2
self.a_quath_4_array_size = 2
self.a_string_size = 5
self.a_texcoordd_2_array_size = 2
self.a_texcoordd_3_array_size = 2
self.a_texcoordf_2_array_size = 2
self.a_texcoordf_3_array_size = 2
self.a_texcoordh_2_array_size = 2
self.a_texcoordh_3_array_size = 2
self.a_timecode_array_size = 2
self.a_token_array_size = 2
self.a_uchar_array_size = 2
self.a_uint64_array_size = 2
self.a_uint_array_size = 2
self.a_vectord_3_array_size = 2
self.a_vectorf_3_array_size = 2
self.a_vectorh_3_array_size = 2
self._batchedWriteValues = { }
@property
def a_bool(self):
data_view = og.AttributeValueHelper(self._attributes.a_bool)
return data_view.get()
@a_bool.setter
def a_bool(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_bool)
data_view.set(value)
@property
def a_bool_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_bool_array)
return data_view.get(reserved_element_count=self.a_bool_array_size)
@a_bool_array.setter
def a_bool_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_bool_array)
data_view.set(value)
self.a_bool_array_size = data_view.get_array_size()
@property
def a_colord_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_colord_3)
return data_view.get()
@a_colord_3.setter
def a_colord_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_colord_3)
data_view.set(value)
@property
def a_colord_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_colord_3_array)
return data_view.get(reserved_element_count=self.a_colord_3_array_size)
@a_colord_3_array.setter
def a_colord_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_colord_3_array)
data_view.set(value)
self.a_colord_3_array_size = data_view.get_array_size()
@property
def a_colord_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_colord_4)
return data_view.get()
@a_colord_4.setter
def a_colord_4(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_colord_4)
data_view.set(value)
@property
def a_colord_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_colord_4_array)
return data_view.get(reserved_element_count=self.a_colord_4_array_size)
@a_colord_4_array.setter
def a_colord_4_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_colord_4_array)
data_view.set(value)
self.a_colord_4_array_size = data_view.get_array_size()
@property
def a_colorf_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorf_3)
return data_view.get()
@a_colorf_3.setter
def a_colorf_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_colorf_3)
data_view.set(value)
@property
def a_colorf_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorf_3_array)
return data_view.get(reserved_element_count=self.a_colorf_3_array_size)
@a_colorf_3_array.setter
def a_colorf_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_colorf_3_array)
data_view.set(value)
self.a_colorf_3_array_size = data_view.get_array_size()
@property
def a_colorf_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorf_4)
return data_view.get()
@a_colorf_4.setter
def a_colorf_4(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_colorf_4)
data_view.set(value)
@property
def a_colorf_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorf_4_array)
return data_view.get(reserved_element_count=self.a_colorf_4_array_size)
@a_colorf_4_array.setter
def a_colorf_4_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_colorf_4_array)
data_view.set(value)
self.a_colorf_4_array_size = data_view.get_array_size()
@property
def a_colorh_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorh_3)
return data_view.get()
@a_colorh_3.setter
def a_colorh_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_colorh_3)
data_view.set(value)
@property
def a_colorh_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorh_3_array)
return data_view.get(reserved_element_count=self.a_colorh_3_array_size)
@a_colorh_3_array.setter
def a_colorh_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_colorh_3_array)
data_view.set(value)
self.a_colorh_3_array_size = data_view.get_array_size()
@property
def a_colorh_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorh_4)
return data_view.get()
@a_colorh_4.setter
def a_colorh_4(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_colorh_4)
data_view.set(value)
@property
def a_colorh_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorh_4_array)
return data_view.get(reserved_element_count=self.a_colorh_4_array_size)
@a_colorh_4_array.setter
def a_colorh_4_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_colorh_4_array)
data_view.set(value)
self.a_colorh_4_array_size = data_view.get_array_size()
@property
def a_double(self):
data_view = og.AttributeValueHelper(self._attributes.a_double)
return data_view.get()
@a_double.setter
def a_double(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_double)
data_view.set(value)
@property
def a_double_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_2)
return data_view.get()
@a_double_2.setter
def a_double_2(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_double_2)
data_view.set(value)
@property
def a_double_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_2_array)
return data_view.get(reserved_element_count=self.a_double_2_array_size)
@a_double_2_array.setter
def a_double_2_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_double_2_array)
data_view.set(value)
self.a_double_2_array_size = data_view.get_array_size()
@property
def a_double_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_3)
return data_view.get()
@a_double_3.setter
def a_double_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_double_3)
data_view.set(value)
@property
def a_double_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_3_array)
return data_view.get(reserved_element_count=self.a_double_3_array_size)
@a_double_3_array.setter
def a_double_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_double_3_array)
data_view.set(value)
self.a_double_3_array_size = data_view.get_array_size()
@property
def a_double_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_4)
return data_view.get()
@a_double_4.setter
def a_double_4(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_double_4)
data_view.set(value)
@property
def a_double_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_4_array)
return data_view.get(reserved_element_count=self.a_double_4_array_size)
@a_double_4_array.setter
def a_double_4_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_double_4_array)
data_view.set(value)
self.a_double_4_array_size = data_view.get_array_size()
@property
def a_double_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_array)
return data_view.get(reserved_element_count=self.a_double_array_size)
@a_double_array.setter
def a_double_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_double_array)
data_view.set(value)
self.a_double_array_size = data_view.get_array_size()
@property
def a_execution(self):
data_view = og.AttributeValueHelper(self._attributes.a_execution)
return data_view.get()
@a_execution.setter
def a_execution(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_execution)
data_view.set(value)
@property
def a_float(self):
data_view = og.AttributeValueHelper(self._attributes.a_float)
return data_view.get()
@a_float.setter
def a_float(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_float)
data_view.set(value)
@property
def a_float_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_2)
return data_view.get()
@a_float_2.setter
def a_float_2(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_float_2)
data_view.set(value)
@property
def a_float_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_2_array)
return data_view.get(reserved_element_count=self.a_float_2_array_size)
@a_float_2_array.setter
def a_float_2_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_float_2_array)
data_view.set(value)
self.a_float_2_array_size = data_view.get_array_size()
@property
def a_float_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_3)
return data_view.get()
@a_float_3.setter
def a_float_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_float_3)
data_view.set(value)
@property
def a_float_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_3_array)
return data_view.get(reserved_element_count=self.a_float_3_array_size)
@a_float_3_array.setter
def a_float_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_float_3_array)
data_view.set(value)
self.a_float_3_array_size = data_view.get_array_size()
@property
def a_float_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_4)
return data_view.get()
@a_float_4.setter
def a_float_4(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_float_4)
data_view.set(value)
@property
def a_float_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_4_array)
return data_view.get(reserved_element_count=self.a_float_4_array_size)
@a_float_4_array.setter
def a_float_4_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_float_4_array)
data_view.set(value)
self.a_float_4_array_size = data_view.get_array_size()
@property
def a_float_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_array)
return data_view.get(reserved_element_count=self.a_float_array_size)
@a_float_array.setter
def a_float_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_float_array)
data_view.set(value)
self.a_float_array_size = data_view.get_array_size()
@property
def a_frame_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_frame_4)
return data_view.get()
@a_frame_4.setter
def a_frame_4(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_frame_4)
data_view.set(value)
@property
def a_frame_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_frame_4_array)
return data_view.get(reserved_element_count=self.a_frame_4_array_size)
@a_frame_4_array.setter
def a_frame_4_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_frame_4_array)
data_view.set(value)
self.a_frame_4_array_size = data_view.get_array_size()
@property
def a_half(self):
data_view = og.AttributeValueHelper(self._attributes.a_half)
return data_view.get()
@a_half.setter
def a_half(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_half)
data_view.set(value)
@property
def a_half_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_2)
return data_view.get()
@a_half_2.setter
def a_half_2(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_half_2)
data_view.set(value)
@property
def a_half_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_2_array)
return data_view.get(reserved_element_count=self.a_half_2_array_size)
@a_half_2_array.setter
def a_half_2_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_half_2_array)
data_view.set(value)
self.a_half_2_array_size = data_view.get_array_size()
@property
def a_half_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_3)
return data_view.get()
@a_half_3.setter
def a_half_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_half_3)
data_view.set(value)
@property
def a_half_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_3_array)
return data_view.get(reserved_element_count=self.a_half_3_array_size)
@a_half_3_array.setter
def a_half_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_half_3_array)
data_view.set(value)
self.a_half_3_array_size = data_view.get_array_size()
@property
def a_half_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_4)
return data_view.get()
@a_half_4.setter
def a_half_4(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_half_4)
data_view.set(value)
@property
def a_half_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_4_array)
return data_view.get(reserved_element_count=self.a_half_4_array_size)
@a_half_4_array.setter
def a_half_4_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_half_4_array)
data_view.set(value)
self.a_half_4_array_size = data_view.get_array_size()
@property
def a_half_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_array)
return data_view.get(reserved_element_count=self.a_half_array_size)
@a_half_array.setter
def a_half_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_half_array)
data_view.set(value)
self.a_half_array_size = data_view.get_array_size()
@property
def a_int(self):
data_view = og.AttributeValueHelper(self._attributes.a_int)
return data_view.get()
@a_int.setter
def a_int(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_int)
data_view.set(value)
@property
def a_int64(self):
data_view = og.AttributeValueHelper(self._attributes.a_int64)
return data_view.get()
@a_int64.setter
def a_int64(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_int64)
data_view.set(value)
@property
def a_int64_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_int64_array)
return data_view.get(reserved_element_count=self.a_int64_array_size)
@a_int64_array.setter
def a_int64_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_int64_array)
data_view.set(value)
self.a_int64_array_size = data_view.get_array_size()
@property
def a_int_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_2)
return data_view.get()
@a_int_2.setter
def a_int_2(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_int_2)
data_view.set(value)
@property
def a_int_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_2_array)
return data_view.get(reserved_element_count=self.a_int_2_array_size)
@a_int_2_array.setter
def a_int_2_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_int_2_array)
data_view.set(value)
self.a_int_2_array_size = data_view.get_array_size()
@property
def a_int_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_3)
return data_view.get()
@a_int_3.setter
def a_int_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_int_3)
data_view.set(value)
@property
def a_int_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_3_array)
return data_view.get(reserved_element_count=self.a_int_3_array_size)
@a_int_3_array.setter
def a_int_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_int_3_array)
data_view.set(value)
self.a_int_3_array_size = data_view.get_array_size()
@property
def a_int_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_4)
return data_view.get()
@a_int_4.setter
def a_int_4(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_int_4)
data_view.set(value)
@property
def a_int_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_4_array)
return data_view.get(reserved_element_count=self.a_int_4_array_size)
@a_int_4_array.setter
def a_int_4_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_int_4_array)
data_view.set(value)
self.a_int_4_array_size = data_view.get_array_size()
@property
def a_int_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_array)
return data_view.get(reserved_element_count=self.a_int_array_size)
@a_int_array.setter
def a_int_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_int_array)
data_view.set(value)
self.a_int_array_size = data_view.get_array_size()
@property
def a_matrixd_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_2)
return data_view.get()
@a_matrixd_2.setter
def a_matrixd_2(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_2)
data_view.set(value)
@property
def a_matrixd_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_2_array)
return data_view.get(reserved_element_count=self.a_matrixd_2_array_size)
@a_matrixd_2_array.setter
def a_matrixd_2_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_2_array)
data_view.set(value)
self.a_matrixd_2_array_size = data_view.get_array_size()
@property
def a_matrixd_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_3)
return data_view.get()
@a_matrixd_3.setter
def a_matrixd_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_3)
data_view.set(value)
@property
def a_matrixd_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_3_array)
return data_view.get(reserved_element_count=self.a_matrixd_3_array_size)
@a_matrixd_3_array.setter
def a_matrixd_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_3_array)
data_view.set(value)
self.a_matrixd_3_array_size = data_view.get_array_size()
@property
def a_matrixd_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_4)
return data_view.get()
@a_matrixd_4.setter
def a_matrixd_4(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_4)
data_view.set(value)
@property
def a_matrixd_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_4_array)
return data_view.get(reserved_element_count=self.a_matrixd_4_array_size)
@a_matrixd_4_array.setter
def a_matrixd_4_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_4_array)
data_view.set(value)
self.a_matrixd_4_array_size = data_view.get_array_size()
@property
def a_normald_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_normald_3)
return data_view.get()
@a_normald_3.setter
def a_normald_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_normald_3)
data_view.set(value)
@property
def a_normald_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_normald_3_array)
return data_view.get(reserved_element_count=self.a_normald_3_array_size)
@a_normald_3_array.setter
def a_normald_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_normald_3_array)
data_view.set(value)
self.a_normald_3_array_size = data_view.get_array_size()
@property
def a_normalf_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_normalf_3)
return data_view.get()
@a_normalf_3.setter
def a_normalf_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_normalf_3)
data_view.set(value)
@property
def a_normalf_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_normalf_3_array)
return data_view.get(reserved_element_count=self.a_normalf_3_array_size)
@a_normalf_3_array.setter
def a_normalf_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_normalf_3_array)
data_view.set(value)
self.a_normalf_3_array_size = data_view.get_array_size()
@property
def a_normalh_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_normalh_3)
return data_view.get()
@a_normalh_3.setter
def a_normalh_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_normalh_3)
data_view.set(value)
@property
def a_normalh_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_normalh_3_array)
return data_view.get(reserved_element_count=self.a_normalh_3_array_size)
@a_normalh_3_array.setter
def a_normalh_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_normalh_3_array)
data_view.set(value)
self.a_normalh_3_array_size = data_view.get_array_size()
@property
def a_objectId(self):
data_view = og.AttributeValueHelper(self._attributes.a_objectId)
return data_view.get()
@a_objectId.setter
def a_objectId(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_objectId)
data_view.set(value)
@property
def a_objectId_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_objectId_array)
return data_view.get(reserved_element_count=self.a_objectId_array_size)
@a_objectId_array.setter
def a_objectId_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_objectId_array)
data_view.set(value)
self.a_objectId_array_size = data_view.get_array_size()
@property
def a_pointd_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_pointd_3)
return data_view.get()
@a_pointd_3.setter
def a_pointd_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_pointd_3)
data_view.set(value)
@property
def a_pointd_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_pointd_3_array)
return data_view.get(reserved_element_count=self.a_pointd_3_array_size)
@a_pointd_3_array.setter
def a_pointd_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_pointd_3_array)
data_view.set(value)
self.a_pointd_3_array_size = data_view.get_array_size()
@property
def a_pointf_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_pointf_3)
return data_view.get()
@a_pointf_3.setter
def a_pointf_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_pointf_3)
data_view.set(value)
@property
def a_pointf_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_pointf_3_array)
return data_view.get(reserved_element_count=self.a_pointf_3_array_size)
@a_pointf_3_array.setter
def a_pointf_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_pointf_3_array)
data_view.set(value)
self.a_pointf_3_array_size = data_view.get_array_size()
@property
def a_pointh_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_pointh_3)
return data_view.get()
@a_pointh_3.setter
def a_pointh_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_pointh_3)
data_view.set(value)
@property
def a_pointh_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_pointh_3_array)
return data_view.get(reserved_element_count=self.a_pointh_3_array_size)
@a_pointh_3_array.setter
def a_pointh_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_pointh_3_array)
data_view.set(value)
self.a_pointh_3_array_size = data_view.get_array_size()
@property
def a_quatd_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_quatd_4)
return data_view.get()
@a_quatd_4.setter
def a_quatd_4(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_quatd_4)
data_view.set(value)
@property
def a_quatd_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_quatd_4_array)
return data_view.get(reserved_element_count=self.a_quatd_4_array_size)
@a_quatd_4_array.setter
def a_quatd_4_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_quatd_4_array)
data_view.set(value)
self.a_quatd_4_array_size = data_view.get_array_size()
@property
def a_quatf_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_quatf_4)
return data_view.get()
@a_quatf_4.setter
def a_quatf_4(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_quatf_4)
data_view.set(value)
@property
def a_quatf_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_quatf_4_array)
return data_view.get(reserved_element_count=self.a_quatf_4_array_size)
@a_quatf_4_array.setter
def a_quatf_4_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_quatf_4_array)
data_view.set(value)
self.a_quatf_4_array_size = data_view.get_array_size()
@property
def a_quath_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_quath_4)
return data_view.get()
@a_quath_4.setter
def a_quath_4(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_quath_4)
data_view.set(value)
@property
def a_quath_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_quath_4_array)
return data_view.get(reserved_element_count=self.a_quath_4_array_size)
@a_quath_4_array.setter
def a_quath_4_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_quath_4_array)
data_view.set(value)
self.a_quath_4_array_size = data_view.get_array_size()
@property
def a_string(self):
data_view = og.AttributeValueHelper(self._attributes.a_string)
return data_view.get(reserved_element_count=self.a_string_size)
@a_string.setter
def a_string(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_string)
data_view.set(value)
self.a_string_size = data_view.get_array_size()
@property
def a_texcoordd_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_2)
return data_view.get()
@a_texcoordd_2.setter
def a_texcoordd_2(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_2)
data_view.set(value)
@property
def a_texcoordd_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_2_array)
return data_view.get(reserved_element_count=self.a_texcoordd_2_array_size)
@a_texcoordd_2_array.setter
def a_texcoordd_2_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_2_array)
data_view.set(value)
self.a_texcoordd_2_array_size = data_view.get_array_size()
@property
def a_texcoordd_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_3)
return data_view.get()
@a_texcoordd_3.setter
def a_texcoordd_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_3)
data_view.set(value)
@property
def a_texcoordd_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_3_array)
return data_view.get(reserved_element_count=self.a_texcoordd_3_array_size)
@a_texcoordd_3_array.setter
def a_texcoordd_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_3_array)
data_view.set(value)
self.a_texcoordd_3_array_size = data_view.get_array_size()
@property
def a_texcoordf_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_2)
return data_view.get()
@a_texcoordf_2.setter
def a_texcoordf_2(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_2)
data_view.set(value)
@property
def a_texcoordf_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_2_array)
return data_view.get(reserved_element_count=self.a_texcoordf_2_array_size)
@a_texcoordf_2_array.setter
def a_texcoordf_2_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_2_array)
data_view.set(value)
self.a_texcoordf_2_array_size = data_view.get_array_size()
@property
def a_texcoordf_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_3)
return data_view.get()
@a_texcoordf_3.setter
def a_texcoordf_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_3)
data_view.set(value)
@property
def a_texcoordf_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_3_array)
return data_view.get(reserved_element_count=self.a_texcoordf_3_array_size)
@a_texcoordf_3_array.setter
def a_texcoordf_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_3_array)
data_view.set(value)
self.a_texcoordf_3_array_size = data_view.get_array_size()
@property
def a_texcoordh_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_2)
return data_view.get()
@a_texcoordh_2.setter
def a_texcoordh_2(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_2)
data_view.set(value)
@property
def a_texcoordh_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_2_array)
return data_view.get(reserved_element_count=self.a_texcoordh_2_array_size)
@a_texcoordh_2_array.setter
def a_texcoordh_2_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_2_array)
data_view.set(value)
self.a_texcoordh_2_array_size = data_view.get_array_size()
@property
def a_texcoordh_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_3)
return data_view.get()
@a_texcoordh_3.setter
def a_texcoordh_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_3)
data_view.set(value)
@property
def a_texcoordh_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_3_array)
return data_view.get(reserved_element_count=self.a_texcoordh_3_array_size)
@a_texcoordh_3_array.setter
def a_texcoordh_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_3_array)
data_view.set(value)
self.a_texcoordh_3_array_size = data_view.get_array_size()
@property
def a_timecode(self):
data_view = og.AttributeValueHelper(self._attributes.a_timecode)
return data_view.get()
@a_timecode.setter
def a_timecode(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_timecode)
data_view.set(value)
@property
def a_timecode_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_timecode_array)
return data_view.get(reserved_element_count=self.a_timecode_array_size)
@a_timecode_array.setter
def a_timecode_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_timecode_array)
data_view.set(value)
self.a_timecode_array_size = data_view.get_array_size()
@property
def a_token(self):
data_view = og.AttributeValueHelper(self._attributes.a_token)
return data_view.get()
@a_token.setter
def a_token(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_token)
data_view.set(value)
@property
def a_token_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_token_array)
return data_view.get(reserved_element_count=self.a_token_array_size)
@a_token_array.setter
def a_token_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_token_array)
data_view.set(value)
self.a_token_array_size = data_view.get_array_size()
@property
def a_uchar(self):
data_view = og.AttributeValueHelper(self._attributes.a_uchar)
return data_view.get()
@a_uchar.setter
def a_uchar(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_uchar)
data_view.set(value)
@property
def a_uchar_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_uchar_array)
return data_view.get(reserved_element_count=self.a_uchar_array_size)
@a_uchar_array.setter
def a_uchar_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_uchar_array)
data_view.set(value)
self.a_uchar_array_size = data_view.get_array_size()
@property
def a_uint(self):
data_view = og.AttributeValueHelper(self._attributes.a_uint)
return data_view.get()
@a_uint.setter
def a_uint(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_uint)
data_view.set(value)
@property
def a_uint64(self):
data_view = og.AttributeValueHelper(self._attributes.a_uint64)
return data_view.get()
@a_uint64.setter
def a_uint64(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_uint64)
data_view.set(value)
@property
def a_uint64_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_uint64_array)
return data_view.get(reserved_element_count=self.a_uint64_array_size)
@a_uint64_array.setter
def a_uint64_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_uint64_array)
data_view.set(value)
self.a_uint64_array_size = data_view.get_array_size()
@property
def a_uint_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_uint_array)
return data_view.get(reserved_element_count=self.a_uint_array_size)
@a_uint_array.setter
def a_uint_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_uint_array)
data_view.set(value)
self.a_uint_array_size = data_view.get_array_size()
@property
def a_vectord_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_vectord_3)
return data_view.get()
@a_vectord_3.setter
def a_vectord_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_vectord_3)
data_view.set(value)
@property
def a_vectord_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_vectord_3_array)
return data_view.get(reserved_element_count=self.a_vectord_3_array_size)
@a_vectord_3_array.setter
def a_vectord_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_vectord_3_array)
data_view.set(value)
self.a_vectord_3_array_size = data_view.get_array_size()
@property
def a_vectorf_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_vectorf_3)
return data_view.get()
@a_vectorf_3.setter
def a_vectorf_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_vectorf_3)
data_view.set(value)
@property
def a_vectorf_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_vectorf_3_array)
return data_view.get(reserved_element_count=self.a_vectorf_3_array_size)
@a_vectorf_3_array.setter
def a_vectorf_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_vectorf_3_array)
data_view.set(value)
self.a_vectorf_3_array_size = data_view.get_array_size()
@property
def a_vectorh_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_vectorh_3)
return data_view.get()
@a_vectorh_3.setter
def a_vectorh_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_vectorh_3)
data_view.set(value)
@property
def a_vectorh_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_vectorh_3_array)
return data_view.get(reserved_element_count=self.a_vectorh_3_array_size)
@a_vectorh_3_array.setter
def a_vectorh_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_vectorh_3_array)
data_view.set(value)
self.a_vectorh_3_array_size = data_view.get_array_size()
def _commit(self):
_og._commit_output_attributes_data(self._batchedWriteValues)
self._batchedWriteValues = { }
class ValuesForState(og.DynamicAttributeAccess):
"""Helper class that creates natural hierarchical access to state attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnTestAllDataTypesCarbDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnTestAllDataTypesCarbDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnTestAllDataTypesCarbDatabase.ValuesForState(node, self.attributes.state, dynamic_attributes)
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestConcurrencyDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestConcurrency
Test concurrency level during execution
"""
import carb
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnTestConcurrencyDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.test.TestConcurrency
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.expected
inputs.timeOut
Outputs:
outputs.result
"""
# Imprint the generator and target ABI versions in the file for JIT generation
GENERATOR_VERSION = (1, 41, 3)
TARGET_VERSION = (2, 139, 12)
# This is an internal object that provides per-class storage of a per-node data dictionary
PER_NODE_DATA = {}
# This is an internal object that describes unchanging attributes in a generic way
# The values in this list are in no particular order, as a per-attribute tuple
# Name, Type, ExtendedTypeIndex, UiName, Description, Metadata,
# Is_Required, DefaultValue, Is_Deprecated, DeprecationMsg
# You should not need to access any of this data directly, use the defined database interfaces
INTERFACE = og.Database._get_interface([
('inputs:expected', 'uint64', 0, 'Expected Concurrency', 'Number of nodes expected to be executing concurrently', {}, True, 0, False, ''),
('inputs:timeOut', 'uint64', 0, 'Time Out', 'Time out in miliseconds used when waiting on expected concurrency level. Used to avoid deadlocks.', {ogn.MetadataKeys.DEFAULT: '100'}, True, 100, False, ''),
('outputs:result', 'bool', 0, 'Result', 'Set to true when expected concurrency level was achieved. False on time out.', {}, True, None, False, ''),
])
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to input attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedReadAttributes = []
self._batchedReadValues = []
@property
def expected(self):
data_view = og.AttributeValueHelper(self._attributes.expected)
return data_view.get()
@expected.setter
def expected(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.expected)
data_view = og.AttributeValueHelper(self._attributes.expected)
data_view.set(value)
@property
def timeOut(self):
data_view = og.AttributeValueHelper(self._attributes.timeOut)
return data_view.get()
@timeOut.setter
def timeOut(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.timeOut)
data_view = og.AttributeValueHelper(self._attributes.timeOut)
data_view.set(value)
def _prefetch(self):
readAttributes = self._batchedReadAttributes
newValues = _og._prefetch_input_attributes_data(readAttributes)
if len(readAttributes) == len(newValues):
self._batchedReadValues = newValues
class ValuesForOutputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to output attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedWriteValues = { }
@property
def result(self):
data_view = og.AttributeValueHelper(self._attributes.result)
return data_view.get()
@result.setter
def result(self, value):
data_view = og.AttributeValueHelper(self._attributes.result)
data_view.set(value)
def _commit(self):
_og._commit_output_attributes_data(self._batchedWriteValues)
self._batchedWriteValues = { }
class ValuesForState(og.DynamicAttributeAccess):
"""Helper class that creates natural hierarchical access to state attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnTestConcurrencyDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnTestConcurrencyDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnTestConcurrencyDatabase.ValuesForState(node, self.attributes.state, dynamic_attributes)
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnBundlePropertiesDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.BundleProperties
Node that exposes properties of the bundle
"""
import carb
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnBundlePropertiesDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.test.BundleProperties
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.bundle
Outputs:
outputs.valid
"""
# Imprint the generator and target ABI versions in the file for JIT generation
GENERATOR_VERSION = (1, 41, 3)
TARGET_VERSION = (2, 139, 12)
# This is an internal object that provides per-class storage of a per-node data dictionary
PER_NODE_DATA = {}
# This is an internal object that describes unchanging attributes in a generic way
# The values in this list are in no particular order, as a per-attribute tuple
# Name, Type, ExtendedTypeIndex, UiName, Description, Metadata,
# Is_Required, DefaultValue, Is_Deprecated, DeprecationMsg
# You should not need to access any of this data directly, use the defined database interfaces
INTERFACE = og.Database._get_interface([
('inputs:bundle', 'bundle', 0, None, 'Input Bundle', {}, True, None, False, ''),
('outputs:valid', 'bool', 0, None, 'Valid state of the input bundle', {ogn.MetadataKeys.DEFAULT: 'false'}, True, False, False, ''),
])
@classmethod
def _populate_role_data(cls):
"""Populate a role structure with the non-default roles on this node type"""
role_data = super()._populate_role_data()
role_data.inputs.bundle = og.AttributeRole.BUNDLE
return role_data
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to input attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self.__bundles = og.BundleContainer(context, node, attributes, [], read_only=True, gpu_ptr_kinds={})
self._batchedReadAttributes = []
self._batchedReadValues = []
@property
def bundle(self) -> og.BundleContents:
"""Get the bundle wrapper class for the attribute inputs.bundle"""
return self.__bundles.bundle
def _prefetch(self):
readAttributes = self._batchedReadAttributes
newValues = _og._prefetch_input_attributes_data(readAttributes)
if len(readAttributes) == len(newValues):
self._batchedReadValues = newValues
class ValuesForOutputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to output attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedWriteValues = { }
@property
def valid(self):
data_view = og.AttributeValueHelper(self._attributes.valid)
return data_view.get()
@valid.setter
def valid(self, value):
data_view = og.AttributeValueHelper(self._attributes.valid)
data_view.set(value)
def _commit(self):
_og._commit_output_attributes_data(self._batchedWriteValues)
self._batchedWriteValues = { }
class ValuesForState(og.DynamicAttributeAccess):
"""Helper class that creates natural hierarchical access to state attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnBundlePropertiesDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnBundlePropertiesDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnBundlePropertiesDatabase.ValuesForState(node, self.attributes.state, dynamic_attributes)
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestBundleAttributeInterpolationDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestBundleAttributeInterpolation
Test node that exposes attribute interpolation through ConstBundlePrims interface.
"""
import carb
import carb
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnTestBundleAttributeInterpolationDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.test.TestBundleAttributeInterpolation
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.attribute
inputs.prims
Outputs:
outputs.interpolation
"""
# Imprint the generator and target ABI versions in the file for JIT generation
GENERATOR_VERSION = (1, 41, 3)
TARGET_VERSION = (2, 139, 12)
# This is an internal object that provides per-class storage of a per-node data dictionary
PER_NODE_DATA = {}
# This is an internal object that describes unchanging attributes in a generic way
# The values in this list are in no particular order, as a per-attribute tuple
# Name, Type, ExtendedTypeIndex, UiName, Description, Metadata,
# Is_Required, DefaultValue, Is_Deprecated, DeprecationMsg
# You should not need to access any of this data directly, use the defined database interfaces
INTERFACE = og.Database._get_interface([
('inputs:attribute', 'token', 0, None, 'Attribute name', {}, True, "", False, ''),
('inputs:prims', 'bundle', 0, None, 'input bundle', {}, True, None, False, ''),
('outputs:interpolation', 'token', 0, None, 'Attribute interpolation', {}, True, None, False, ''),
])
@classmethod
def _populate_role_data(cls):
"""Populate a role structure with the non-default roles on this node type"""
role_data = super()._populate_role_data()
role_data.inputs.prims = og.AttributeRole.BUNDLE
return role_data
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to input attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self.__bundles = og.BundleContainer(context, node, attributes, [], read_only=True, gpu_ptr_kinds={})
self._batchedReadAttributes = []
self._batchedReadValues = []
@property
def attribute(self):
data_view = og.AttributeValueHelper(self._attributes.attribute)
return data_view.get()
@attribute.setter
def attribute(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.attribute)
data_view = og.AttributeValueHelper(self._attributes.attribute)
data_view.set(value)
@property
def prims(self) -> og.BundleContents:
"""Get the bundle wrapper class for the attribute inputs.prims"""
return self.__bundles.prims
def _prefetch(self):
readAttributes = self._batchedReadAttributes
newValues = _og._prefetch_input_attributes_data(readAttributes)
if len(readAttributes) == len(newValues):
self._batchedReadValues = newValues
class ValuesForOutputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to output attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedWriteValues = { }
@property
def interpolation(self):
data_view = og.AttributeValueHelper(self._attributes.interpolation)
return data_view.get()
@interpolation.setter
def interpolation(self, value):
data_view = og.AttributeValueHelper(self._attributes.interpolation)
data_view.set(value)
def _commit(self):
_og._commit_output_attributes_data(self._batchedWriteValues)
self._batchedWriteValues = { }
class ValuesForState(og.DynamicAttributeAccess):
"""Helper class that creates natural hierarchical access to state attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnTestBundleAttributeInterpolationDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnTestBundleAttributeInterpolationDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnTestBundleAttributeInterpolationDatabase.ValuesForState(node, self.attributes.state, dynamic_attributes)
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnComposeDouble3CDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.ComposeDouble3C
Example node that takes in the components of three doubles and outputs a double3
"""
import carb
import numpy
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnComposeDouble3CDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.test.ComposeDouble3C
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.x
inputs.y
inputs.z
Outputs:
outputs.double3
"""
# Imprint the generator and target ABI versions in the file for JIT generation
GENERATOR_VERSION = (1, 41, 3)
TARGET_VERSION = (2, 139, 12)
# This is an internal object that provides per-class storage of a per-node data dictionary
PER_NODE_DATA = {}
# This is an internal object that describes unchanging attributes in a generic way
# The values in this list are in no particular order, as a per-attribute tuple
# Name, Type, ExtendedTypeIndex, UiName, Description, Metadata,
# Is_Required, DefaultValue, Is_Deprecated, DeprecationMsg
# You should not need to access any of this data directly, use the defined database interfaces
INTERFACE = og.Database._get_interface([
('inputs:x', 'double', 0, None, 'The x component of the input double3', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
('inputs:y', 'double', 0, None, 'The y component of the input double3', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
('inputs:z', 'double', 0, None, 'The z component of the input double3', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
('outputs:double3', 'double3', 0, None, 'Output double3', {}, True, None, False, ''),
])
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to input attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedReadAttributes = []
self._batchedReadValues = []
@property
def x(self):
data_view = og.AttributeValueHelper(self._attributes.x)
return data_view.get()
@x.setter
def x(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.x)
data_view = og.AttributeValueHelper(self._attributes.x)
data_view.set(value)
@property
def y(self):
data_view = og.AttributeValueHelper(self._attributes.y)
return data_view.get()
@y.setter
def y(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.y)
data_view = og.AttributeValueHelper(self._attributes.y)
data_view.set(value)
@property
def z(self):
data_view = og.AttributeValueHelper(self._attributes.z)
return data_view.get()
@z.setter
def z(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.z)
data_view = og.AttributeValueHelper(self._attributes.z)
data_view.set(value)
def _prefetch(self):
readAttributes = self._batchedReadAttributes
newValues = _og._prefetch_input_attributes_data(readAttributes)
if len(readAttributes) == len(newValues):
self._batchedReadValues = newValues
class ValuesForOutputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to output attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedWriteValues = { }
@property
def double3(self):
data_view = og.AttributeValueHelper(self._attributes.double3)
return data_view.get()
@double3.setter
def double3(self, value):
data_view = og.AttributeValueHelper(self._attributes.double3)
data_view.set(value)
def _commit(self):
_og._commit_output_attributes_data(self._batchedWriteValues)
self._batchedWriteValues = { }
class ValuesForState(og.DynamicAttributeAccess):
"""Helper class that creates natural hierarchical access to state attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnComposeDouble3CDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnComposeDouble3CDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnComposeDouble3CDatabase.ValuesForState(node, self.attributes.state, dynamic_attributes)
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestDynamicAttributeMemoryDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestDynamicAttributeMemory
Test node that exercises various memory locations for dynamic attributes. Add a dynamic input attribute named 'array' with
type 'int[]' and a dynamic output attribute named 'array' with type 'int[]' to exercise the node. The inputs array will be
copied to the output array using the requested memory space.
"""
import carb
import sys
import traceback
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnTestDynamicAttributeMemoryDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.test.TestDynamicAttributeMemory
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.gpuPtrsOnGpu
inputs.onGpu
Outputs:
outputs.inputMemoryVerified
outputs.outputMemoryVerified
"""
# Imprint the generator and target ABI versions in the file for JIT generation
GENERATOR_VERSION = (1, 41, 3)
TARGET_VERSION = (2, 139, 12)
# This is an internal object that provides per-class storage of a per-node data dictionary
PER_NODE_DATA = {}
# This is an internal object that describes unchanging attributes in a generic way
# The values in this list are in no particular order, as a per-attribute tuple
# Name, Type, ExtendedTypeIndex, UiName, Description, Metadata,
# Is_Required, DefaultValue, Is_Deprecated, DeprecationMsg
# You should not need to access any of this data directly, use the defined database interfaces
INTERFACE = og.Database._get_interface([
('inputs:gpuPtrsOnGpu', 'bool', 0, None, 'Set to True if the pointers to GPU array memory should also be on the GPU', {}, True, False, False, ''),
('inputs:onGpu', 'bool', 0, None, 'Set to True if the dynamic attribute memory should come from the GPU', {}, True, False, False, ''),
('outputs:inputMemoryVerified', 'bool', 0, None, 'True if the memory locations of the input dynamic attribute matched the locations requested\nby the input attribute values.', {}, True, None, False, ''),
('outputs:outputMemoryVerified', 'bool', 0, None, 'True if the memory locations of the output dynamic attribute matched the locations requested\nby the input attribute values.', {}, True, None, False, ''),
])
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = {"gpuPtrsOnGpu", "onGpu", "_setting_locked", "_batchedReadAttributes", "_batchedReadValues"}
"""Helper class that creates natural hierarchical access to input attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedReadAttributes = [self._attributes.gpuPtrsOnGpu, self._attributes.onGpu]
self._batchedReadValues = [False, False]
@property
def gpuPtrsOnGpu(self):
return self._batchedReadValues[0]
@gpuPtrsOnGpu.setter
def gpuPtrsOnGpu(self, value):
self._batchedReadValues[0] = value
@property
def onGpu(self):
return self._batchedReadValues[1]
@onGpu.setter
def onGpu(self, value):
self._batchedReadValues[1] = value
def __getattr__(self, item: str):
if item in self.LOCAL_PROPERTY_NAMES:
return object.__getattribute__(self, item)
else:
return super().__getattr__(item)
def __setattr__(self, item: str, new_value):
if item in self.LOCAL_PROPERTY_NAMES:
object.__setattr__(self, item, new_value)
else:
super().__setattr__(item, new_value)
def _prefetch(self):
readAttributes = self._batchedReadAttributes
newValues = _og._prefetch_input_attributes_data(readAttributes)
if len(readAttributes) == len(newValues):
self._batchedReadValues = newValues
class ValuesForOutputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = {"inputMemoryVerified", "outputMemoryVerified", "_batchedWriteValues"}
"""Helper class that creates natural hierarchical access to output attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedWriteValues = { }
@property
def inputMemoryVerified(self):
value = self._batchedWriteValues.get(self._attributes.inputMemoryVerified)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.inputMemoryVerified)
return data_view.get()
@inputMemoryVerified.setter
def inputMemoryVerified(self, value):
self._batchedWriteValues[self._attributes.inputMemoryVerified] = value
@property
def outputMemoryVerified(self):
value = self._batchedWriteValues.get(self._attributes.outputMemoryVerified)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.outputMemoryVerified)
return data_view.get()
@outputMemoryVerified.setter
def outputMemoryVerified(self, value):
self._batchedWriteValues[self._attributes.outputMemoryVerified] = value
def __getattr__(self, item: str):
if item in self.LOCAL_PROPERTY_NAMES:
return object.__getattribute__(self, item)
else:
return super().__getattr__(item)
def __setattr__(self, item: str, new_value):
if item in self.LOCAL_PROPERTY_NAMES:
object.__setattr__(self, item, new_value)
else:
super().__setattr__(item, new_value)
def _commit(self):
_og._commit_output_attributes_data(self._batchedWriteValues)
self._batchedWriteValues = { }
class ValuesForState(og.DynamicAttributeAccess):
"""Helper class that creates natural hierarchical access to state attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnTestDynamicAttributeMemoryDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnTestDynamicAttributeMemoryDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnTestDynamicAttributeMemoryDatabase.ValuesForState(node, self.attributes.state, dynamic_attributes)
class abi:
"""Class defining the ABI interface for the node type"""
@staticmethod
def get_node_type():
get_node_type_function = getattr(OgnTestDynamicAttributeMemoryDatabase.NODE_TYPE_CLASS, 'get_node_type', None)
if callable(get_node_type_function):
return get_node_type_function()
return 'omni.graph.test.TestDynamicAttributeMemory'
@staticmethod
def compute(context, node):
def database_valid():
return True
try:
per_node_data = OgnTestDynamicAttributeMemoryDatabase.PER_NODE_DATA[node.node_id()]
db = per_node_data.get('_db')
if db is None:
db = OgnTestDynamicAttributeMemoryDatabase(node)
per_node_data['_db'] = db
if not database_valid():
per_node_data['_db'] = None
return False
except:
db = OgnTestDynamicAttributeMemoryDatabase(node)
try:
compute_function = getattr(OgnTestDynamicAttributeMemoryDatabase.NODE_TYPE_CLASS, 'compute', None)
if callable(compute_function) and compute_function.__code__.co_argcount > 1:
return compute_function(context, node)
db.inputs._prefetch()
db.inputs._setting_locked = True
with og.in_compute():
return OgnTestDynamicAttributeMemoryDatabase.NODE_TYPE_CLASS.compute(db)
except Exception as error:
stack_trace = "".join(traceback.format_tb(sys.exc_info()[2].tb_next))
db.log_error(f'Assertion raised in compute - {error}\n{stack_trace}', add_context=False)
finally:
db.inputs._setting_locked = False
db.outputs._commit()
return False
@staticmethod
def initialize(context, node):
OgnTestDynamicAttributeMemoryDatabase._initialize_per_node_data(node)
initialize_function = getattr(OgnTestDynamicAttributeMemoryDatabase.NODE_TYPE_CLASS, 'initialize', None)
if callable(initialize_function):
initialize_function(context, node)
per_node_data = OgnTestDynamicAttributeMemoryDatabase.PER_NODE_DATA[node.node_id()]
def on_connection_or_disconnection(*args):
per_node_data['_db'] = None
node.register_on_connected_callback(on_connection_or_disconnection)
node.register_on_disconnected_callback(on_connection_or_disconnection)
@staticmethod
def release(node):
release_function = getattr(OgnTestDynamicAttributeMemoryDatabase.NODE_TYPE_CLASS, 'release', None)
if callable(release_function):
release_function(node)
OgnTestDynamicAttributeMemoryDatabase._release_per_node_data(node)
@staticmethod
def release_instance(node, target):
OgnTestDynamicAttributeMemoryDatabase._release_per_node_instance_data(node, target)
@staticmethod
def update_node_version(context, node, old_version, new_version):
update_node_version_function = getattr(OgnTestDynamicAttributeMemoryDatabase.NODE_TYPE_CLASS, 'update_node_version', None)
if callable(update_node_version_function):
return update_node_version_function(context, node, old_version, new_version)
return False
@staticmethod
def initialize_type(node_type):
initialize_type_function = getattr(OgnTestDynamicAttributeMemoryDatabase.NODE_TYPE_CLASS, 'initialize_type', None)
needs_initializing = True
if callable(initialize_type_function):
needs_initializing = initialize_type_function(node_type)
if needs_initializing:
node_type.set_metadata(ogn.MetadataKeys.EXTENSION, "omni.graph.test")
node_type.set_metadata(ogn.MetadataKeys.CATEGORIES, "internal:test")
node_type.set_metadata(ogn.MetadataKeys.DESCRIPTION, "Test node that exercises various memory locations for dynamic attributes. Add a dynamic input attribute named 'array' with type 'int[]' and a dynamic output attribute named 'array' with type 'int[]' to exercise the node. The inputs array will be copied to the output array using the requested memory space.")
node_type.set_metadata(ogn.MetadataKeys.EXCLUSIONS, "tests,usd,docs")
node_type.set_metadata(ogn.MetadataKeys.LANGUAGE, "Python")
icon_path = carb.tokens.get_tokens_interface().resolve("${omni.graph.test}")
icon_path = icon_path + '/' + "ogn/icons/omni.graph.test.TestDynamicAttributeMemory.svg"
node_type.set_metadata(ogn.MetadataKeys.ICON_PATH, icon_path)
OgnTestDynamicAttributeMemoryDatabase.INTERFACE.add_to_node_type(node_type)
@staticmethod
def on_connection_type_resolve(node):
on_connection_type_resolve_function = getattr(OgnTestDynamicAttributeMemoryDatabase.NODE_TYPE_CLASS, 'on_connection_type_resolve', None)
if callable(on_connection_type_resolve_function):
on_connection_type_resolve_function(node)
NODE_TYPE_CLASS = None
@staticmethod
def register(node_type_class):
OgnTestDynamicAttributeMemoryDatabase.NODE_TYPE_CLASS = node_type_class
og.register_node_type(OgnTestDynamicAttributeMemoryDatabase.abi, 1)
@staticmethod
def deregister():
og.deregister_node_type("omni.graph.test.TestDynamicAttributeMemory")
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestScatterDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestScatter
Test node to test out the effects of vectorization. Scatters the results of gathered compute back to FC
"""
import carb
import numpy
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnTestScatterDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.test.TestScatter
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.gathered_paths
inputs.rotations
Outputs:
outputs.gathered_paths
outputs.rotations
outputs.single_rotation
"""
# Imprint the generator and target ABI versions in the file for JIT generation
GENERATOR_VERSION = (1, 41, 3)
TARGET_VERSION = (2, 139, 12)
# This is an internal object that provides per-class storage of a per-node data dictionary
PER_NODE_DATA = {}
# This is an internal object that describes unchanging attributes in a generic way
# The values in this list are in no particular order, as a per-attribute tuple
# Name, Type, ExtendedTypeIndex, UiName, Description, Metadata,
# Is_Required, DefaultValue, Is_Deprecated, DeprecationMsg
# You should not need to access any of this data directly, use the defined database interfaces
INTERFACE = og.Database._get_interface([
('inputs:gathered_paths', 'token[]', 0, None, 'The paths of the gathered objects', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:rotations', 'double3[]', 0, None, 'The rotations of the gathered points', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:gathered_paths', 'token[]', 0, None, 'The paths of the gathered objects', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:rotations', 'double3[]', 0, None, 'The rotations of the gathered points', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:single_rotation', 'double3', 0, None, 'Placeholder single rotation until we get the scatter working properly', {ogn.MetadataKeys.DEFAULT: '[0, 0, 0]'}, True, [0, 0, 0], False, ''),
])
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to input attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedReadAttributes = []
self._batchedReadValues = []
@property
def gathered_paths(self):
data_view = og.AttributeValueHelper(self._attributes.gathered_paths)
return data_view.get()
@gathered_paths.setter
def gathered_paths(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.gathered_paths)
data_view = og.AttributeValueHelper(self._attributes.gathered_paths)
data_view.set(value)
self.gathered_paths_size = data_view.get_array_size()
@property
def rotations(self):
data_view = og.AttributeValueHelper(self._attributes.rotations)
return data_view.get()
@rotations.setter
def rotations(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.rotations)
data_view = og.AttributeValueHelper(self._attributes.rotations)
data_view.set(value)
self.rotations_size = data_view.get_array_size()
def _prefetch(self):
readAttributes = self._batchedReadAttributes
newValues = _og._prefetch_input_attributes_data(readAttributes)
if len(readAttributes) == len(newValues):
self._batchedReadValues = newValues
class ValuesForOutputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to output attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self.gathered_paths_size = 0
self.rotations_size = 0
self._batchedWriteValues = { }
@property
def gathered_paths(self):
data_view = og.AttributeValueHelper(self._attributes.gathered_paths)
return data_view.get(reserved_element_count=self.gathered_paths_size)
@gathered_paths.setter
def gathered_paths(self, value):
data_view = og.AttributeValueHelper(self._attributes.gathered_paths)
data_view.set(value)
self.gathered_paths_size = data_view.get_array_size()
@property
def rotations(self):
data_view = og.AttributeValueHelper(self._attributes.rotations)
return data_view.get(reserved_element_count=self.rotations_size)
@rotations.setter
def rotations(self, value):
data_view = og.AttributeValueHelper(self._attributes.rotations)
data_view.set(value)
self.rotations_size = data_view.get_array_size()
@property
def single_rotation(self):
data_view = og.AttributeValueHelper(self._attributes.single_rotation)
return data_view.get()
@single_rotation.setter
def single_rotation(self, value):
data_view = og.AttributeValueHelper(self._attributes.single_rotation)
data_view.set(value)
def _commit(self):
_og._commit_output_attributes_data(self._batchedWriteValues)
self._batchedWriteValues = { }
class ValuesForState(og.DynamicAttributeAccess):
"""Helper class that creates natural hierarchical access to state attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnTestScatterDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnTestScatterDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnTestScatterDatabase.ValuesForState(node, self.attributes.state, dynamic_attributes)
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestWriteVariablePyDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestWriteVariablePy
Node that test writes a value to a variable in python
"""
from typing import Any
import carb
import sys
import traceback
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnTestWriteVariablePyDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.test.TestWriteVariablePy
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.execIn
inputs.value
inputs.variableName
Outputs:
outputs.execOut
outputs.value
"""
# Imprint the generator and target ABI versions in the file for JIT generation
GENERATOR_VERSION = (1, 41, 3)
TARGET_VERSION = (2, 139, 12)
# This is an internal object that provides per-class storage of a per-node data dictionary
PER_NODE_DATA = {}
# This is an internal object that describes unchanging attributes in a generic way
# The values in this list are in no particular order, as a per-attribute tuple
# Name, Type, ExtendedTypeIndex, UiName, Description, Metadata,
# Is_Required, DefaultValue, Is_Deprecated, DeprecationMsg
# You should not need to access any of this data directly, use the defined database interfaces
INTERFACE = og.Database._get_interface([
('inputs:execIn', 'execution', 0, None, 'Input execution state', {}, True, None, False, ''),
('inputs:value', 'any', 2, None, 'The new value to be written', {}, True, None, False, ''),
('inputs:variableName', 'token', 0, None, 'The name of the graph variable to use.', {}, True, "", False, ''),
('outputs:execOut', 'execution', 0, None, 'Output execution', {}, True, None, False, ''),
('outputs:value', 'any', 2, None, 'The newly written value', {}, True, None, False, ''),
])
@classmethod
def _populate_role_data(cls):
"""Populate a role structure with the non-default roles on this node type"""
role_data = super()._populate_role_data()
role_data.inputs.execIn = og.AttributeRole.EXECUTION
role_data.outputs.execOut = og.AttributeRole.EXECUTION
return role_data
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = {"execIn", "variableName", "_setting_locked", "_batchedReadAttributes", "_batchedReadValues"}
"""Helper class that creates natural hierarchical access to input attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedReadAttributes = [self._attributes.execIn, self._attributes.variableName]
self._batchedReadValues = [None, ""]
@property
def value(self) -> og.RuntimeAttribute:
"""Get the runtime wrapper class for the attribute inputs.value"""
return og.RuntimeAttribute(self._attributes.value.get_attribute_data(), self._context, True)
@value.setter
def value(self, value_to_set: Any):
"""Assign another attribute's value to outputs.value"""
if isinstance(value_to_set, og.RuntimeAttribute):
self.value.value = value_to_set.value
else:
self.value.value = value_to_set
@property
def execIn(self):
return self._batchedReadValues[0]
@execIn.setter
def execIn(self, value):
self._batchedReadValues[0] = value
@property
def variableName(self):
return self._batchedReadValues[1]
@variableName.setter
def variableName(self, value):
self._batchedReadValues[1] = value
def __getattr__(self, item: str):
if item in self.LOCAL_PROPERTY_NAMES:
return object.__getattribute__(self, item)
else:
return super().__getattr__(item)
def __setattr__(self, item: str, new_value):
if item in self.LOCAL_PROPERTY_NAMES:
object.__setattr__(self, item, new_value)
else:
super().__setattr__(item, new_value)
def _prefetch(self):
readAttributes = self._batchedReadAttributes
newValues = _og._prefetch_input_attributes_data(readAttributes)
if len(readAttributes) == len(newValues):
self._batchedReadValues = newValues
class ValuesForOutputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = {"execOut", "_batchedWriteValues"}
"""Helper class that creates natural hierarchical access to output attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedWriteValues = { }
@property
def value(self) -> og.RuntimeAttribute:
"""Get the runtime wrapper class for the attribute outputs.value"""
return og.RuntimeAttribute(self._attributes.value.get_attribute_data(), self._context, False)
@value.setter
def value(self, value_to_set: Any):
"""Assign another attribute's value to outputs.value"""
if isinstance(value_to_set, og.RuntimeAttribute):
self.value.value = value_to_set.value
else:
self.value.value = value_to_set
@property
def execOut(self):
value = self._batchedWriteValues.get(self._attributes.execOut)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.execOut)
return data_view.get()
@execOut.setter
def execOut(self, value):
self._batchedWriteValues[self._attributes.execOut] = value
def __getattr__(self, item: str):
if item in self.LOCAL_PROPERTY_NAMES:
return object.__getattribute__(self, item)
else:
return super().__getattr__(item)
def __setattr__(self, item: str, new_value):
if item in self.LOCAL_PROPERTY_NAMES:
object.__setattr__(self, item, new_value)
else:
super().__setattr__(item, new_value)
def _commit(self):
_og._commit_output_attributes_data(self._batchedWriteValues)
self._batchedWriteValues = { }
class ValuesForState(og.DynamicAttributeAccess):
"""Helper class that creates natural hierarchical access to state attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnTestWriteVariablePyDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnTestWriteVariablePyDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnTestWriteVariablePyDatabase.ValuesForState(node, self.attributes.state, dynamic_attributes)
class abi:
"""Class defining the ABI interface for the node type"""
@staticmethod
def get_node_type():
get_node_type_function = getattr(OgnTestWriteVariablePyDatabase.NODE_TYPE_CLASS, 'get_node_type', None)
if callable(get_node_type_function):
return get_node_type_function()
return 'omni.graph.test.TestWriteVariablePy'
@staticmethod
def compute(context, node):
def database_valid():
if db.inputs.value.type.base_type == og.BaseDataType.UNKNOWN:
db.log_warning('Required extended attribute inputs:value is not resolved, compute skipped')
return False
if db.outputs.value.type.base_type == og.BaseDataType.UNKNOWN:
db.log_warning('Required extended attribute outputs:value is not resolved, compute skipped')
return False
return True
try:
per_node_data = OgnTestWriteVariablePyDatabase.PER_NODE_DATA[node.node_id()]
db = per_node_data.get('_db')
if db is None:
db = OgnTestWriteVariablePyDatabase(node)
per_node_data['_db'] = db
if not database_valid():
per_node_data['_db'] = None
return False
except:
db = OgnTestWriteVariablePyDatabase(node)
try:
compute_function = getattr(OgnTestWriteVariablePyDatabase.NODE_TYPE_CLASS, 'compute', None)
if callable(compute_function) and compute_function.__code__.co_argcount > 1:
return compute_function(context, node)
db.inputs._prefetch()
db.inputs._setting_locked = True
with og.in_compute():
return OgnTestWriteVariablePyDatabase.NODE_TYPE_CLASS.compute(db)
except Exception as error:
stack_trace = "".join(traceback.format_tb(sys.exc_info()[2].tb_next))
db.log_error(f'Assertion raised in compute - {error}\n{stack_trace}', add_context=False)
finally:
db.inputs._setting_locked = False
db.outputs._commit()
return False
@staticmethod
def initialize(context, node):
OgnTestWriteVariablePyDatabase._initialize_per_node_data(node)
initialize_function = getattr(OgnTestWriteVariablePyDatabase.NODE_TYPE_CLASS, 'initialize', None)
if callable(initialize_function):
initialize_function(context, node)
per_node_data = OgnTestWriteVariablePyDatabase.PER_NODE_DATA[node.node_id()]
def on_connection_or_disconnection(*args):
per_node_data['_db'] = None
node.register_on_connected_callback(on_connection_or_disconnection)
node.register_on_disconnected_callback(on_connection_or_disconnection)
@staticmethod
def release(node):
release_function = getattr(OgnTestWriteVariablePyDatabase.NODE_TYPE_CLASS, 'release', None)
if callable(release_function):
release_function(node)
OgnTestWriteVariablePyDatabase._release_per_node_data(node)
@staticmethod
def release_instance(node, target):
OgnTestWriteVariablePyDatabase._release_per_node_instance_data(node, target)
@staticmethod
def update_node_version(context, node, old_version, new_version):
update_node_version_function = getattr(OgnTestWriteVariablePyDatabase.NODE_TYPE_CLASS, 'update_node_version', None)
if callable(update_node_version_function):
return update_node_version_function(context, node, old_version, new_version)
return False
@staticmethod
def initialize_type(node_type):
initialize_type_function = getattr(OgnTestWriteVariablePyDatabase.NODE_TYPE_CLASS, 'initialize_type', None)
needs_initializing = True
if callable(initialize_type_function):
needs_initializing = initialize_type_function(node_type)
if needs_initializing:
node_type.set_metadata(ogn.MetadataKeys.EXTENSION, "omni.graph.test")
node_type.set_metadata(ogn.MetadataKeys.UI_NAME, "Write Variable")
node_type.set_metadata(ogn.MetadataKeys.CATEGORIES, "internal:test")
node_type.set_metadata(ogn.MetadataKeys.DESCRIPTION, "Node that test writes a value to a variable in python")
node_type.set_metadata(ogn.MetadataKeys.EXCLUSIONS, "tests,usd,docs")
node_type.set_metadata(ogn.MetadataKeys.LANGUAGE, "Python")
icon_path = carb.tokens.get_tokens_interface().resolve("${omni.graph.test}")
icon_path = icon_path + '/' + "ogn/icons/omni.graph.test.TestWriteVariablePy.svg"
node_type.set_metadata(ogn.MetadataKeys.ICON_PATH, icon_path)
OgnTestWriteVariablePyDatabase.INTERFACE.add_to_node_type(node_type)
@staticmethod
def on_connection_type_resolve(node):
on_connection_type_resolve_function = getattr(OgnTestWriteVariablePyDatabase.NODE_TYPE_CLASS, 'on_connection_type_resolve', None)
if callable(on_connection_type_resolve_function):
on_connection_type_resolve_function(node)
NODE_TYPE_CLASS = None
@staticmethod
def register(node_type_class):
OgnTestWriteVariablePyDatabase.NODE_TYPE_CLASS = node_type_class
og.register_node_type(OgnTestWriteVariablePyDatabase.abi, 1)
@staticmethod
def deregister():
og.deregister_node_type("omni.graph.test.TestWriteVariablePy")
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestDynamicAttributeRawDataDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestDynamicAttributeRawData
Node that tests the APIs for accessing and mutating the dynamic attributes
"""
import carb
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnTestDynamicAttributeRawDataDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.test.TestDynamicAttributeRawData
Class Members:
node: Node being evaluated
"""
# Imprint the generator and target ABI versions in the file for JIT generation
GENERATOR_VERSION = (1, 41, 3)
TARGET_VERSION = (2, 139, 12)
# This is an internal object that provides per-class storage of a per-node data dictionary
PER_NODE_DATA = {}
# This is an internal object that describes unchanging attributes in a generic way
# The values in this list are in no particular order, as a per-attribute tuple
# Name, Type, ExtendedTypeIndex, UiName, Description, Metadata,
# Is_Required, DefaultValue, Is_Deprecated, DeprecationMsg
# You should not need to access any of this data directly, use the defined database interfaces
INTERFACE = og.Database._get_interface([
])
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to input attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedReadAttributes = []
self._batchedReadValues = []
def _prefetch(self):
readAttributes = self._batchedReadAttributes
newValues = _og._prefetch_input_attributes_data(readAttributes)
if len(readAttributes) == len(newValues):
self._batchedReadValues = newValues
class ValuesForOutputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to output attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedWriteValues = { }
def _commit(self):
_og._commit_output_attributes_data(self._batchedWriteValues)
self._batchedWriteValues = { }
class ValuesForState(og.DynamicAttributeAccess):
"""Helper class that creates natural hierarchical access to state attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnTestDynamicAttributeRawDataDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnTestDynamicAttributeRawDataDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnTestDynamicAttributeRawDataDatabase.ValuesForState(node, self.attributes.state, dynamic_attributes)
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestUsdCastingDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestUsdCasting
This node is meant to exercise special bundle member casting used by USD types. It just copies members of the input bundle
to the output bundle when any of the recognized USD casting types are found.
"""
import carb
import carb
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnTestUsdCastingDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.test.TestUsdCasting
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.a_bundle
Outputs:
outputs.a_bundle
State:
state.a_bundle
"""
# Imprint the generator and target ABI versions in the file for JIT generation
GENERATOR_VERSION = (1, 41, 3)
TARGET_VERSION = (2, 139, 12)
# This is an internal object that provides per-class storage of a per-node data dictionary
PER_NODE_DATA = {}
# This is an internal object that describes unchanging attributes in a generic way
# The values in this list are in no particular order, as a per-attribute tuple
# Name, Type, ExtendedTypeIndex, UiName, Description, Metadata,
# Is_Required, DefaultValue, Is_Deprecated, DeprecationMsg
# You should not need to access any of this data directly, use the defined database interfaces
INTERFACE = og.Database._get_interface([
('inputs:a_bundle', 'bundle', 0, None, 'Input Attribute', {}, True, None, False, ''),
('outputs:a_bundle', 'bundle', 0, None, 'Computed Attribute', {}, True, None, False, ''),
('state:a_bundle', 'bundle', 0, None, 'State Attribute', {}, True, None, False, ''),
])
@classmethod
def _populate_role_data(cls):
"""Populate a role structure with the non-default roles on this node type"""
role_data = super()._populate_role_data()
role_data.inputs.a_bundle = og.AttributeRole.BUNDLE
role_data.outputs.a_bundle = og.AttributeRole.BUNDLE
role_data.state.a_bundle = og.AttributeRole.BUNDLE
return role_data
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to input attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self.__bundles = og.BundleContainer(context, node, attributes, [], read_only=True, gpu_ptr_kinds={})
self._batchedReadAttributes = []
self._batchedReadValues = []
@property
def a_bundle(self) -> og.BundleContents:
"""Get the bundle wrapper class for the attribute inputs.a_bundle"""
return self.__bundles.a_bundle
def _prefetch(self):
readAttributes = self._batchedReadAttributes
newValues = _og._prefetch_input_attributes_data(readAttributes)
if len(readAttributes) == len(newValues):
self._batchedReadValues = newValues
class ValuesForOutputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to output attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self.__bundles = og.BundleContainer(context, node, attributes, [], read_only=False, gpu_ptr_kinds={})
self._batchedWriteValues = { }
@property
def a_bundle(self) -> og.BundleContents:
"""Get the bundle wrapper class for the attribute outputs.a_bundle"""
return self.__bundles.a_bundle
@a_bundle.setter
def a_bundle(self, bundle: og.BundleContents):
"""Overwrite the bundle attribute outputs.a_bundle with a new bundle"""
if not isinstance(bundle, og.BundleContents):
carb.log_error("Only bundle attributes can be assigned to another bundle attribute")
self.__bundles.a_bundle.bundle = bundle
def _commit(self):
_og._commit_output_attributes_data(self._batchedWriteValues)
self._batchedWriteValues = { }
class ValuesForState(og.DynamicAttributeAccess):
"""Helper class that creates natural hierarchical access to state attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self.__bundles = og.BundleContainer(context, node, attributes, [], read_only=False, gpu_ptr_kinds={})
@property
def a_bundle(self) -> og.BundleContents:
"""Get the bundle wrapper class for the attribute state.a_bundle"""
return self.__bundles.a_bundle
@a_bundle.setter
def a_bundle(self, bundle: og.BundleContents):
"""Overwrite the bundle attribute state.a_bundle with a new bundle"""
if not isinstance(bundle, og.BundleContents):
carb.log_error("Only bundle attributes can be assigned to another bundle attribute")
self.__bundles.a_bundle.bundle = bundle
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnTestUsdCastingDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnTestUsdCastingDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnTestUsdCastingDatabase.ValuesForState(node, self.attributes.state, dynamic_attributes)
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestCategoryDefinitionsDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestCategoryDefinitions
Test node that tests custom category definitions
"""
import carb
import sys
import traceback
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnTestCategoryDefinitionsDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.test.TestCategoryDefinitions
Class Members:
node: Node being evaluated
Attribute Value Properties:
Outputs:
outputs.category
"""
# Imprint the generator and target ABI versions in the file for JIT generation
GENERATOR_VERSION = (1, 41, 3)
TARGET_VERSION = (2, 139, 12)
# This is an internal object that provides per-class storage of a per-node data dictionary
PER_NODE_DATA = {}
# This is an internal object that describes unchanging attributes in a generic way
# The values in this list are in no particular order, as a per-attribute tuple
# Name, Type, ExtendedTypeIndex, UiName, Description, Metadata,
# Is_Required, DefaultValue, Is_Deprecated, DeprecationMsg
# You should not need to access any of this data directly, use the defined database interfaces
INTERFACE = og.Database._get_interface([
('outputs:category', 'string', 0, None, 'The custom category assigned to this node for testing', {ogn.MetadataKeys.DEFAULT: '"internal"'}, True, "internal", False, ''),
])
@classmethod
def _populate_role_data(cls):
"""Populate a role structure with the non-default roles on this node type"""
role_data = super()._populate_role_data()
role_data.outputs.category = og.AttributeRole.TEXT
return role_data
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to input attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedReadAttributes = []
self._batchedReadValues = []
def _prefetch(self):
readAttributes = self._batchedReadAttributes
newValues = _og._prefetch_input_attributes_data(readAttributes)
if len(readAttributes) == len(newValues):
self._batchedReadValues = newValues
class ValuesForOutputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = {"category", "_batchedWriteValues"}
"""Helper class that creates natural hierarchical access to output attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self.category_size = 8
self._batchedWriteValues = { }
@property
def category(self):
value = self._batchedWriteValues.get(self._attributes.category)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.category)
return data_view.get()
@category.setter
def category(self, value):
self._batchedWriteValues[self._attributes.category] = value
def __getattr__(self, item: str):
if item in self.LOCAL_PROPERTY_NAMES:
return object.__getattribute__(self, item)
else:
return super().__getattr__(item)
def __setattr__(self, item: str, new_value):
if item in self.LOCAL_PROPERTY_NAMES:
object.__setattr__(self, item, new_value)
else:
super().__setattr__(item, new_value)
def _commit(self):
_og._commit_output_attributes_data(self._batchedWriteValues)
self._batchedWriteValues = { }
class ValuesForState(og.DynamicAttributeAccess):
"""Helper class that creates natural hierarchical access to state attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnTestCategoryDefinitionsDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnTestCategoryDefinitionsDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnTestCategoryDefinitionsDatabase.ValuesForState(node, self.attributes.state, dynamic_attributes)
class abi:
"""Class defining the ABI interface for the node type"""
@staticmethod
def get_node_type():
get_node_type_function = getattr(OgnTestCategoryDefinitionsDatabase.NODE_TYPE_CLASS, 'get_node_type', None)
if callable(get_node_type_function):
return get_node_type_function()
return 'omni.graph.test.TestCategoryDefinitions'
@staticmethod
def compute(context, node):
def database_valid():
return True
try:
per_node_data = OgnTestCategoryDefinitionsDatabase.PER_NODE_DATA[node.node_id()]
db = per_node_data.get('_db')
if db is None:
db = OgnTestCategoryDefinitionsDatabase(node)
per_node_data['_db'] = db
if not database_valid():
per_node_data['_db'] = None
return False
except:
db = OgnTestCategoryDefinitionsDatabase(node)
try:
compute_function = getattr(OgnTestCategoryDefinitionsDatabase.NODE_TYPE_CLASS, 'compute', None)
if callable(compute_function) and compute_function.__code__.co_argcount > 1:
return compute_function(context, node)
db.inputs._prefetch()
db.inputs._setting_locked = True
with og.in_compute():
return OgnTestCategoryDefinitionsDatabase.NODE_TYPE_CLASS.compute(db)
except Exception as error:
stack_trace = "".join(traceback.format_tb(sys.exc_info()[2].tb_next))
db.log_error(f'Assertion raised in compute - {error}\n{stack_trace}', add_context=False)
finally:
db.inputs._setting_locked = False
db.outputs._commit()
return False
@staticmethod
def initialize(context, node):
OgnTestCategoryDefinitionsDatabase._initialize_per_node_data(node)
initialize_function = getattr(OgnTestCategoryDefinitionsDatabase.NODE_TYPE_CLASS, 'initialize', None)
if callable(initialize_function):
initialize_function(context, node)
per_node_data = OgnTestCategoryDefinitionsDatabase.PER_NODE_DATA[node.node_id()]
def on_connection_or_disconnection(*args):
per_node_data['_db'] = None
node.register_on_connected_callback(on_connection_or_disconnection)
node.register_on_disconnected_callback(on_connection_or_disconnection)
@staticmethod
def release(node):
release_function = getattr(OgnTestCategoryDefinitionsDatabase.NODE_TYPE_CLASS, 'release', None)
if callable(release_function):
release_function(node)
OgnTestCategoryDefinitionsDatabase._release_per_node_data(node)
@staticmethod
def release_instance(node, target):
OgnTestCategoryDefinitionsDatabase._release_per_node_instance_data(node, target)
@staticmethod
def update_node_version(context, node, old_version, new_version):
update_node_version_function = getattr(OgnTestCategoryDefinitionsDatabase.NODE_TYPE_CLASS, 'update_node_version', None)
if callable(update_node_version_function):
return update_node_version_function(context, node, old_version, new_version)
return False
@staticmethod
def initialize_type(node_type):
initialize_type_function = getattr(OgnTestCategoryDefinitionsDatabase.NODE_TYPE_CLASS, 'initialize_type', None)
needs_initializing = True
if callable(initialize_type_function):
needs_initializing = initialize_type_function(node_type)
if needs_initializing:
node_type.set_metadata(ogn.MetadataKeys.EXTENSION, "omni.graph.test")
node_type.set_metadata(ogn.MetadataKeys.UI_NAME, "Test Node: Custom Category Definitions")
node_type.set_metadata(ogn.MetadataKeys.CATEGORIES, "internal:categoryTest")
node_type.set_metadata(ogn.MetadataKeys.DESCRIPTION, "Test node that tests custom category definitions")
node_type.set_metadata(ogn.MetadataKeys.EXCLUSIONS, "usd,docs")
node_type.set_metadata(ogn.MetadataKeys.LANGUAGE, "Python")
icon_path = carb.tokens.get_tokens_interface().resolve("${omni.graph.test}")
icon_path = icon_path + '/' + "ogn/icons/omni.graph.test.TestCategoryDefinitions.svg"
node_type.set_metadata(ogn.MetadataKeys.ICON_PATH, icon_path)
OgnTestCategoryDefinitionsDatabase.INTERFACE.add_to_node_type(node_type)
@staticmethod
def on_connection_type_resolve(node):
on_connection_type_resolve_function = getattr(OgnTestCategoryDefinitionsDatabase.NODE_TYPE_CLASS, 'on_connection_type_resolve', None)
if callable(on_connection_type_resolve_function):
on_connection_type_resolve_function(node)
NODE_TYPE_CLASS = None
@staticmethod
def register(node_type_class):
OgnTestCategoryDefinitionsDatabase.NODE_TYPE_CLASS = node_type_class
og.register_node_type(OgnTestCategoryDefinitionsDatabase.abi, 1)
@staticmethod
def deregister():
og.deregister_node_type("omni.graph.test.TestCategoryDefinitions")
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestAllDataTypesPodDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestAllDataTypesPod
This node is meant to exercise the data access for all available data types used by the POD type configuration file. It includes
all other data types as well, to confirm that non-overridden types retain their default types.
"""
import carb
import numpy
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnTestAllDataTypesPodDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.test.TestAllDataTypesPod
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.a_bool
inputs.a_bool_array
inputs.a_colord_3
inputs.a_colord_3_array
inputs.a_colord_4
inputs.a_colord_4_array
inputs.a_colorf_3
inputs.a_colorf_3_array
inputs.a_colorf_4
inputs.a_colorf_4_array
inputs.a_colorh_3
inputs.a_colorh_3_array
inputs.a_colorh_4
inputs.a_colorh_4_array
inputs.a_double
inputs.a_double_2
inputs.a_double_2_array
inputs.a_double_3
inputs.a_double_3_array
inputs.a_double_4
inputs.a_double_4_array
inputs.a_double_array
inputs.a_execution
inputs.a_float
inputs.a_float_2
inputs.a_float_2_array
inputs.a_float_3
inputs.a_float_3_array
inputs.a_float_4
inputs.a_float_4_array
inputs.a_float_array
inputs.a_frame_4
inputs.a_frame_4_array
inputs.a_half
inputs.a_half_2
inputs.a_half_2_array
inputs.a_half_3
inputs.a_half_3_array
inputs.a_half_4
inputs.a_half_4_array
inputs.a_half_array
inputs.a_int
inputs.a_int64
inputs.a_int64_array
inputs.a_int_2
inputs.a_int_2_array
inputs.a_int_3
inputs.a_int_3_array
inputs.a_int_4
inputs.a_int_4_array
inputs.a_int_array
inputs.a_matrixd_2
inputs.a_matrixd_2_array
inputs.a_matrixd_3
inputs.a_matrixd_3_array
inputs.a_matrixd_4
inputs.a_matrixd_4_array
inputs.a_normald_3
inputs.a_normald_3_array
inputs.a_normalf_3
inputs.a_normalf_3_array
inputs.a_normalh_3
inputs.a_normalh_3_array
inputs.a_objectId
inputs.a_objectId_array
inputs.a_pointd_3
inputs.a_pointd_3_array
inputs.a_pointf_3
inputs.a_pointf_3_array
inputs.a_pointh_3
inputs.a_pointh_3_array
inputs.a_quatd_4
inputs.a_quatd_4_array
inputs.a_quatf_4
inputs.a_quatf_4_array
inputs.a_quath_4
inputs.a_quath_4_array
inputs.a_string
inputs.a_texcoordd_2
inputs.a_texcoordd_2_array
inputs.a_texcoordd_3
inputs.a_texcoordd_3_array
inputs.a_texcoordf_2
inputs.a_texcoordf_2_array
inputs.a_texcoordf_3
inputs.a_texcoordf_3_array
inputs.a_texcoordh_2
inputs.a_texcoordh_2_array
inputs.a_texcoordh_3
inputs.a_texcoordh_3_array
inputs.a_timecode
inputs.a_timecode_array
inputs.a_token
inputs.a_token_array
inputs.a_uchar
inputs.a_uchar_array
inputs.a_uint
inputs.a_uint64
inputs.a_uint64_array
inputs.a_uint_array
inputs.a_vectord_3
inputs.a_vectord_3_array
inputs.a_vectorf_3
inputs.a_vectorf_3_array
inputs.a_vectorh_3
inputs.a_vectorh_3_array
inputs.doNotCompute
Outputs:
outputs.a_bool
outputs.a_bool_array
outputs.a_colord_3
outputs.a_colord_3_array
outputs.a_colord_4
outputs.a_colord_4_array
outputs.a_colorf_3
outputs.a_colorf_3_array
outputs.a_colorf_4
outputs.a_colorf_4_array
outputs.a_colorh_3
outputs.a_colorh_3_array
outputs.a_colorh_4
outputs.a_colorh_4_array
outputs.a_double
outputs.a_double_2
outputs.a_double_2_array
outputs.a_double_3
outputs.a_double_3_array
outputs.a_double_4
outputs.a_double_4_array
outputs.a_double_array
outputs.a_execution
outputs.a_float
outputs.a_float_2
outputs.a_float_2_array
outputs.a_float_3
outputs.a_float_3_array
outputs.a_float_4
outputs.a_float_4_array
outputs.a_float_array
outputs.a_frame_4
outputs.a_frame_4_array
outputs.a_half
outputs.a_half_2
outputs.a_half_2_array
outputs.a_half_3
outputs.a_half_3_array
outputs.a_half_4
outputs.a_half_4_array
outputs.a_half_array
outputs.a_int
outputs.a_int64
outputs.a_int64_array
outputs.a_int_2
outputs.a_int_2_array
outputs.a_int_3
outputs.a_int_3_array
outputs.a_int_4
outputs.a_int_4_array
outputs.a_int_array
outputs.a_matrixd_2
outputs.a_matrixd_2_array
outputs.a_matrixd_3
outputs.a_matrixd_3_array
outputs.a_matrixd_4
outputs.a_matrixd_4_array
outputs.a_normald_3
outputs.a_normald_3_array
outputs.a_normalf_3
outputs.a_normalf_3_array
outputs.a_normalh_3
outputs.a_normalh_3_array
outputs.a_objectId
outputs.a_objectId_array
outputs.a_pointd_3
outputs.a_pointd_3_array
outputs.a_pointf_3
outputs.a_pointf_3_array
outputs.a_pointh_3
outputs.a_pointh_3_array
outputs.a_quatd_4
outputs.a_quatd_4_array
outputs.a_quatf_4
outputs.a_quatf_4_array
outputs.a_quath_4
outputs.a_quath_4_array
outputs.a_string
outputs.a_texcoordd_2
outputs.a_texcoordd_2_array
outputs.a_texcoordd_3
outputs.a_texcoordd_3_array
outputs.a_texcoordf_2
outputs.a_texcoordf_2_array
outputs.a_texcoordf_3
outputs.a_texcoordf_3_array
outputs.a_texcoordh_2
outputs.a_texcoordh_2_array
outputs.a_texcoordh_3
outputs.a_texcoordh_3_array
outputs.a_timecode
outputs.a_timecode_array
outputs.a_token
outputs.a_token_array
outputs.a_uchar
outputs.a_uchar_array
outputs.a_uint
outputs.a_uint64
outputs.a_uint64_array
outputs.a_uint_array
outputs.a_vectord_3
outputs.a_vectord_3_array
outputs.a_vectorf_3
outputs.a_vectorf_3_array
outputs.a_vectorh_3
outputs.a_vectorh_3_array
"""
# Imprint the generator and target ABI versions in the file for JIT generation
GENERATOR_VERSION = (1, 41, 3)
TARGET_VERSION = (2, 139, 12)
# This is an internal object that provides per-class storage of a per-node data dictionary
PER_NODE_DATA = {}
# This is an internal object that describes unchanging attributes in a generic way
# The values in this list are in no particular order, as a per-attribute tuple
# Name, Type, ExtendedTypeIndex, UiName, Description, Metadata,
# Is_Required, DefaultValue, Is_Deprecated, DeprecationMsg
# You should not need to access any of this data directly, use the defined database interfaces
INTERFACE = og.Database._get_interface([
('inputs:a_bool', 'bool', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: 'false'}, True, False, False, ''),
('inputs:a_bool_array', 'bool[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[false, true]'}, True, [False, True], False, ''),
('inputs:a_colord_3', 'color3d', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_colord_3_array', 'color3d[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_colord_4', 'color4d', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0, 4.0]'}, True, [1.0, 2.0, 3.0, 4.0], False, ''),
('inputs:a_colord_4_array', 'color4d[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]]'}, True, [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False, ''),
('inputs:a_colorf_3', 'color3f', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_colorf_3_array', 'color3f[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_colorf_4', 'color4f', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0, 4.0]'}, True, [1.0, 2.0, 3.0, 4.0], False, ''),
('inputs:a_colorf_4_array', 'color4f[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]]'}, True, [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False, ''),
('inputs:a_colorh_3', 'color3h', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_colorh_3_array', 'color3h[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_colorh_4', 'color4h', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0, 4.0]'}, True, [1.0, 2.0, 3.0, 4.0], False, ''),
('inputs:a_colorh_4_array', 'color4h[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]]'}, True, [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False, ''),
('inputs:a_double', 'double', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '1.0'}, True, 1.0, False, ''),
('inputs:a_double_2', 'double2', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0]'}, True, [1.0, 2.0], False, ''),
('inputs:a_double_2_array', 'double2[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0], [11.0, 12.0]]'}, True, [[1.0, 2.0], [11.0, 12.0]], False, ''),
('inputs:a_double_3', 'double3', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_double_3_array', 'double3[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_double_4', 'double4', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0, 4.0]'}, True, [1.0, 2.0, 3.0, 4.0], False, ''),
('inputs:a_double_4_array', 'double4[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]]'}, True, [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False, ''),
('inputs:a_double_array', 'double[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0]'}, True, [1.0, 2.0], False, ''),
('inputs:a_execution', 'execution', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '1'}, True, 1, False, ''),
('inputs:a_float', 'float', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '1.0'}, True, 1.0, False, ''),
('inputs:a_float_2', 'float2', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0]'}, True, [1.0, 2.0], False, ''),
('inputs:a_float_2_array', 'float2[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0], [11.0, 12.0]]'}, True, [[1.0, 2.0], [11.0, 12.0]], False, ''),
('inputs:a_float_3', 'float3', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_float_3_array', 'float3[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_float_4', 'float4', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0, 4.0]'}, True, [1.0, 2.0, 3.0, 4.0], False, ''),
('inputs:a_float_4_array', 'float4[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]]'}, True, [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False, ''),
('inputs:a_float_array', 'float[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0]'}, True, [1.0, 2.0], False, ''),
('inputs:a_frame_4', 'frame4d', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]]'}, True, [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], False, ''),
('inputs:a_frame_4_array', 'frame4d[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]]'}, True, [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]], False, ''),
('inputs:a_half', 'half', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '1.0'}, True, 1.0, False, ''),
('inputs:a_half_2', 'half2', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0]'}, True, [1.0, 2.0], False, ''),
('inputs:a_half_2_array', 'half2[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0], [11.0, 12.0]]'}, True, [[1.0, 2.0], [11.0, 12.0]], False, ''),
('inputs:a_half_3', 'half3', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_half_3_array', 'half3[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_half_4', 'half4', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0, 4.0]'}, True, [1.0, 2.0, 3.0, 4.0], False, ''),
('inputs:a_half_4_array', 'half4[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]]'}, True, [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False, ''),
('inputs:a_half_array', 'half[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0]'}, True, [1.0, 2.0], False, ''),
('inputs:a_int', 'int', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '1'}, True, 1, False, ''),
('inputs:a_int64', 'int64', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '12345'}, True, 12345, False, ''),
('inputs:a_int64_array', 'int64[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[12345, 23456]'}, True, [12345, 23456], False, ''),
('inputs:a_int_2', 'int2', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1, 2]'}, True, [1, 2], False, ''),
('inputs:a_int_2_array', 'int2[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1, 2], [3, 4]]'}, True, [[1, 2], [3, 4]], False, ''),
('inputs:a_int_3', 'int3', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1, 2, 3]'}, True, [1, 2, 3], False, ''),
('inputs:a_int_3_array', 'int3[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1, 2, 3], [4, 5, 6]]'}, True, [[1, 2, 3], [4, 5, 6]], False, ''),
('inputs:a_int_4', 'int4', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1, 2, 3, 4]'}, True, [1, 2, 3, 4], False, ''),
('inputs:a_int_4_array', 'int4[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1, 2, 3, 4], [5, 6, 7, 8]]'}, True, [[1, 2, 3, 4], [5, 6, 7, 8]], False, ''),
('inputs:a_int_array', 'int[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1, 2]'}, True, [1, 2], False, ''),
('inputs:a_matrixd_2', 'matrix2d', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0], [3.0, 4.0]]'}, True, [[1.0, 2.0], [3.0, 4.0]], False, ''),
('inputs:a_matrixd_2_array', 'matrix2d[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[[1.0, 2.0], [3.0, 4.0]], [[11.0, 12.0], [13.0, 14.0]]]'}, True, [[[1.0, 2.0], [3.0, 4.0]], [[11.0, 12.0], [13.0, 14.0]]], False, ''),
('inputs:a_matrixd_3', 'matrix3d', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]]'}, True, [[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]], False, ''),
('inputs:a_matrixd_3_array', 'matrix3d[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]], [[11.0, 12.0, 13.0], [14.0, 15.0, 16.0], [17.0, 18.0, 19.0]]]'}, True, [[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]], [[11.0, 12.0, 13.0], [14.0, 15.0, 16.0], [17.0, 18.0, 19.0]]], False, ''),
('inputs:a_matrixd_4', 'matrix4d', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]]'}, True, [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], False, ''),
('inputs:a_matrixd_4_array', 'matrix4d[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]]'}, True, [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]], False, ''),
('inputs:a_normald_3', 'normal3d', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_normald_3_array', 'normal3d[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_normalf_3', 'normal3f', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_normalf_3_array', 'normal3f[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_normalh_3', 'normal3h', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_normalh_3_array', 'normal3h[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_objectId', 'objectId', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '1'}, True, 1, False, ''),
('inputs:a_objectId_array', 'objectId[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1, 2]'}, True, [1, 2], False, ''),
('inputs:a_pointd_3', 'point3d', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_pointd_3_array', 'point3d[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_pointf_3', 'point3f', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_pointf_3_array', 'point3f[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_pointh_3', 'point3h', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_pointh_3_array', 'point3h[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_quatd_4', 'quatd', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0, 4.0]'}, True, [1.0, 2.0, 3.0, 4.0], False, ''),
('inputs:a_quatd_4_array', 'quatd[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]]'}, True, [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False, ''),
('inputs:a_quatf_4', 'quatf', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0, 4.0]'}, True, [1.0, 2.0, 3.0, 4.0], False, ''),
('inputs:a_quatf_4_array', 'quatf[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]]'}, True, [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False, ''),
('inputs:a_quath_4', 'quath', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0, 4.0]'}, True, [1.0, 2.0, 3.0, 4.0], False, ''),
('inputs:a_quath_4_array', 'quath[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]]'}, True, [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False, ''),
('inputs:a_string', 'string', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '"Rey"'}, True, "Rey", False, ''),
('inputs:a_texcoordd_2', 'texCoord2d', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0]'}, True, [1.0, 2.0], False, ''),
('inputs:a_texcoordd_2_array', 'texCoord2d[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0], [11.0, 12.0]]'}, True, [[1.0, 2.0], [11.0, 12.0]], False, ''),
('inputs:a_texcoordd_3', 'texCoord3d', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_texcoordd_3_array', 'texCoord3d[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_texcoordf_2', 'texCoord2f', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0]'}, True, [1.0, 2.0], False, ''),
('inputs:a_texcoordf_2_array', 'texCoord2f[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0], [11.0, 12.0]]'}, True, [[1.0, 2.0], [11.0, 12.0]], False, ''),
('inputs:a_texcoordf_3', 'texCoord3f', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_texcoordf_3_array', 'texCoord3f[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_texcoordh_2', 'texCoord2h', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0]'}, True, [1.0, 2.0], False, ''),
('inputs:a_texcoordh_2_array', 'texCoord2h[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0], [11.0, 12.0]]'}, True, [[1.0, 2.0], [11.0, 12.0]], False, ''),
('inputs:a_texcoordh_3', 'texCoord3h', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_texcoordh_3_array', 'texCoord3h[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_timecode', 'timecode', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '1.0'}, True, 1.0, False, ''),
('inputs:a_timecode_array', 'timecode[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0]'}, True, [1.0, 2.0], False, ''),
('inputs:a_token', 'token', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '"Sith"'}, True, "Sith", False, ''),
('inputs:a_token_array', 'token[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '["Kylo", "Ren"]'}, True, ['Kylo', 'Ren'], False, ''),
('inputs:a_uchar', 'uchar', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '1'}, True, 1, False, ''),
('inputs:a_uchar_array', 'uchar[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1, 2]'}, True, [1, 2], False, ''),
('inputs:a_uint', 'uint', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '1'}, True, 1, False, ''),
('inputs:a_uint64', 'uint64', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '1'}, True, 1, False, ''),
('inputs:a_uint64_array', 'uint64[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1, 2]'}, True, [1, 2], False, ''),
('inputs:a_uint_array', 'uint[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1, 2]'}, True, [1, 2], False, ''),
('inputs:a_vectord_3', 'vector3d', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_vectord_3_array', 'vector3d[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_vectorf_3', 'vector3f', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_vectorf_3_array', 'vector3f[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:a_vectorh_3', 'vector3h', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[1.0, 2.0, 3.0]'}, True, [1.0, 2.0, 3.0], False, ''),
('inputs:a_vectorh_3_array', 'vector3h[]', 0, None, 'Input Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]'}, True, [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False, ''),
('inputs:doNotCompute', 'bool', 0, None, 'Prevent the compute from running', {ogn.MetadataKeys.DEFAULT: 'true'}, True, True, False, ''),
('outputs:a_bool', 'bool', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: 'true'}, True, True, False, ''),
('outputs:a_bool_array', 'bool[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[true, false]'}, True, [True, False], False, ''),
('outputs:a_colord_3', 'color3d', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_colord_3_array', 'color3d[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_colord_4', 'color4d', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5, 4.5]'}, True, [1.5, 2.5, 3.5, 4.5], False, ''),
('outputs:a_colord_4_array', 'color4d[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]]'}, True, [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False, ''),
('outputs:a_colorf_3', 'color3f', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_colorf_3_array', 'color3f[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_colorf_4', 'color4f', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5, 4.5]'}, True, [1.5, 2.5, 3.5, 4.5], False, ''),
('outputs:a_colorf_4_array', 'color4f[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]]'}, True, [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False, ''),
('outputs:a_colorh_3', 'color3h', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_colorh_3_array', 'color3h[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_colorh_4', 'color4h', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5, 4.5]'}, True, [1.5, 2.5, 3.5, 4.5], False, ''),
('outputs:a_colorh_4_array', 'color4h[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]]'}, True, [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False, ''),
('outputs:a_double', 'double', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '1.5'}, True, 1.5, False, ''),
('outputs:a_double_2', 'double2', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5]'}, True, [1.5, 2.5], False, ''),
('outputs:a_double_2_array', 'double2[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5], [11.5, 12.5]]'}, True, [[1.5, 2.5], [11.5, 12.5]], False, ''),
('outputs:a_double_3', 'double3', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_double_3_array', 'double3[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_double_4', 'double4', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5, 4.5]'}, True, [1.5, 2.5, 3.5, 4.5], False, ''),
('outputs:a_double_4_array', 'double4[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]]'}, True, [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False, ''),
('outputs:a_double_array', 'double[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5]'}, True, [1.5, 2.5], False, ''),
('outputs:a_execution', 'execution', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '2'}, True, 2, False, ''),
('outputs:a_float', 'float', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '1.5'}, True, 1.5, False, ''),
('outputs:a_float_2', 'float2', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5]'}, True, [1.5, 2.5], False, ''),
('outputs:a_float_2_array', 'float2[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5], [11.5, 12.5]]'}, True, [[1.5, 2.5], [11.5, 12.5]], False, ''),
('outputs:a_float_3', 'float3', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_float_3_array', 'float3[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_float_4', 'float4', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5, 4.5]'}, True, [1.5, 2.5, 3.5, 4.5], False, ''),
('outputs:a_float_4_array', 'float4[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]]'}, True, [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False, ''),
('outputs:a_float_array', 'float[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5]'}, True, [1.5, 2.5], False, ''),
('outputs:a_frame_4', 'frame4d', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]]'}, True, [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], False, ''),
('outputs:a_frame_4_array', 'frame4d[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]]'}, True, [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]], False, ''),
('outputs:a_half', 'half', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '1.5'}, True, 1.5, False, ''),
('outputs:a_half_2', 'half2', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5]'}, True, [1.5, 2.5], False, ''),
('outputs:a_half_2_array', 'half2[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5], [11.5, 12.5]]'}, True, [[1.5, 2.5], [11.5, 12.5]], False, ''),
('outputs:a_half_3', 'half3', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_half_3_array', 'half3[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_half_4', 'half4', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5, 4.5]'}, True, [1.5, 2.5, 3.5, 4.5], False, ''),
('outputs:a_half_4_array', 'half4[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]]'}, True, [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False, ''),
('outputs:a_half_array', 'half[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5]'}, True, [1.5, 2.5], False, ''),
('outputs:a_int', 'int', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '1'}, True, 1, False, ''),
('outputs:a_int64', 'int64', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '12345'}, True, 12345, False, ''),
('outputs:a_int64_array', 'int64[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[12345, 23456]'}, True, [12345, 23456], False, ''),
('outputs:a_int_2', 'int2', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1, 2]'}, True, [1, 2], False, ''),
('outputs:a_int_2_array', 'int2[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1, 2], [3, 4]]'}, True, [[1, 2], [3, 4]], False, ''),
('outputs:a_int_3', 'int3', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1, 2, 3]'}, True, [1, 2, 3], False, ''),
('outputs:a_int_3_array', 'int3[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1, 2, 3], [4, 5, 6]]'}, True, [[1, 2, 3], [4, 5, 6]], False, ''),
('outputs:a_int_4', 'int4', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1, 2, 3, 4]'}, True, [1, 2, 3, 4], False, ''),
('outputs:a_int_4_array', 'int4[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1, 2, 3, 4], [5, 6, 7, 8]]'}, True, [[1, 2, 3, 4], [5, 6, 7, 8]], False, ''),
('outputs:a_int_array', 'int[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1, 2]'}, True, [1, 2], False, ''),
('outputs:a_matrixd_2', 'matrix2d', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5], [3.5, 4.5]]'}, True, [[1.5, 2.5], [3.5, 4.5]], False, ''),
('outputs:a_matrixd_2_array', 'matrix2d[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[[1.5, 2.5], [3.5, 4.5]], [[11.5, 12.5], [13.5, 14.5]]]'}, True, [[[1.5, 2.5], [3.5, 4.5]], [[11.5, 12.5], [13.5, 14.5]]], False, ''),
('outputs:a_matrixd_3', 'matrix3d', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]]'}, True, [[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]], False, ''),
('outputs:a_matrixd_3_array', 'matrix3d[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]], [[11.5, 12.5, 13.5], [14.5, 15.5, 16.5], [17.5, 18.5, 19.5]]]'}, True, [[[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]], [[11.5, 12.5, 13.5], [14.5, 15.5, 16.5], [17.5, 18.5, 19.5]]], False, ''),
('outputs:a_matrixd_4', 'matrix4d', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]]'}, True, [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], False, ''),
('outputs:a_matrixd_4_array', 'matrix4d[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]]'}, True, [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]], False, ''),
('outputs:a_normald_3', 'normal3d', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_normald_3_array', 'normal3d[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_normalf_3', 'normal3f', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_normalf_3_array', 'normal3f[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_normalh_3', 'normal3h', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_normalh_3_array', 'normal3h[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_objectId', 'objectId', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '2'}, True, 2, False, ''),
('outputs:a_objectId_array', 'objectId[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[2, 3]'}, True, [2, 3], False, ''),
('outputs:a_pointd_3', 'point3d', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_pointd_3_array', 'point3d[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_pointf_3', 'point3f', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_pointf_3_array', 'point3f[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_pointh_3', 'point3h', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_pointh_3_array', 'point3h[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_quatd_4', 'quatd', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5, 4.5]'}, True, [1.5, 2.5, 3.5, 4.5], False, ''),
('outputs:a_quatd_4_array', 'quatd[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]]'}, True, [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False, ''),
('outputs:a_quatf_4', 'quatf', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5, 4.5]'}, True, [1.5, 2.5, 3.5, 4.5], False, ''),
('outputs:a_quatf_4_array', 'quatf[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]]'}, True, [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False, ''),
('outputs:a_quath_4', 'quath', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5, 4.5]'}, True, [1.5, 2.5, 3.5, 4.5], False, ''),
('outputs:a_quath_4_array', 'quath[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]]'}, True, [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False, ''),
('outputs:a_string', 'string', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '"Snoke"'}, True, "Snoke", False, ''),
('outputs:a_texcoordd_2', 'texCoord2d', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5]'}, True, [1.5, 2.5], False, ''),
('outputs:a_texcoordd_2_array', 'texCoord2d[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5], [11.5, 12.5]]'}, True, [[1.5, 2.5], [11.5, 12.5]], False, ''),
('outputs:a_texcoordd_3', 'texCoord3d', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_texcoordd_3_array', 'texCoord3d[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_texcoordf_2', 'texCoord2f', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5]'}, True, [1.5, 2.5], False, ''),
('outputs:a_texcoordf_2_array', 'texCoord2f[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5], [11.5, 12.5]]'}, True, [[1.5, 2.5], [11.5, 12.5]], False, ''),
('outputs:a_texcoordf_3', 'texCoord3f', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_texcoordf_3_array', 'texCoord3f[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_texcoordh_2', 'texCoord2h', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5]'}, True, [1.5, 2.5], False, ''),
('outputs:a_texcoordh_2_array', 'texCoord2h[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5], [11.5, 12.5]]'}, True, [[1.5, 2.5], [11.5, 12.5]], False, ''),
('outputs:a_texcoordh_3', 'texCoord3h', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_texcoordh_3_array', 'texCoord3h[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_timecode', 'timecode', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '2.5'}, True, 2.5, False, ''),
('outputs:a_timecode_array', 'timecode[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[2.5, 3.5]'}, True, [2.5, 3.5], False, ''),
('outputs:a_token', 'token', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '"Jedi"'}, True, "Jedi", False, ''),
('outputs:a_token_array', 'token[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '["Luke", "Skywalker"]'}, True, ['Luke', 'Skywalker'], False, ''),
('outputs:a_uchar', 'uchar', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '2'}, True, 2, False, ''),
('outputs:a_uchar_array', 'uchar[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[2, 3]'}, True, [2, 3], False, ''),
('outputs:a_uint', 'uint', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '2'}, True, 2, False, ''),
('outputs:a_uint64', 'uint64', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '2'}, True, 2, False, ''),
('outputs:a_uint64_array', 'uint64[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[2, 3]'}, True, [2, 3], False, ''),
('outputs:a_uint_array', 'uint[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[2, 3]'}, True, [2, 3], False, ''),
('outputs:a_vectord_3', 'vector3d', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_vectord_3_array', 'vector3d[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_vectorf_3', 'vector3f', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_vectorf_3_array', 'vector3f[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
('outputs:a_vectorh_3', 'vector3h', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[1.5, 2.5, 3.5]'}, True, [1.5, 2.5, 3.5], False, ''),
('outputs:a_vectorh_3_array', 'vector3h[]', 0, None, 'Computed Attribute', {ogn.MetadataKeys.DEFAULT: '[[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]'}, True, [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False, ''),
])
@classmethod
def _populate_role_data(cls):
"""Populate a role structure with the non-default roles on this node type"""
role_data = super()._populate_role_data()
role_data.inputs.a_colord_3 = og.AttributeRole.COLOR
role_data.inputs.a_colord_3_array = og.AttributeRole.COLOR
role_data.inputs.a_colord_4 = og.AttributeRole.COLOR
role_data.inputs.a_colord_4_array = og.AttributeRole.COLOR
role_data.inputs.a_colorf_3 = og.AttributeRole.COLOR
role_data.inputs.a_colorf_3_array = og.AttributeRole.COLOR
role_data.inputs.a_colorf_4 = og.AttributeRole.COLOR
role_data.inputs.a_colorf_4_array = og.AttributeRole.COLOR
role_data.inputs.a_colorh_3 = og.AttributeRole.COLOR
role_data.inputs.a_colorh_3_array = og.AttributeRole.COLOR
role_data.inputs.a_colorh_4 = og.AttributeRole.COLOR
role_data.inputs.a_colorh_4_array = og.AttributeRole.COLOR
role_data.inputs.a_execution = og.AttributeRole.EXECUTION
role_data.inputs.a_frame_4 = og.AttributeRole.FRAME
role_data.inputs.a_frame_4_array = og.AttributeRole.FRAME
role_data.inputs.a_matrixd_2 = og.AttributeRole.MATRIX
role_data.inputs.a_matrixd_2_array = og.AttributeRole.MATRIX
role_data.inputs.a_matrixd_3 = og.AttributeRole.MATRIX
role_data.inputs.a_matrixd_3_array = og.AttributeRole.MATRIX
role_data.inputs.a_matrixd_4 = og.AttributeRole.MATRIX
role_data.inputs.a_matrixd_4_array = og.AttributeRole.MATRIX
role_data.inputs.a_normald_3 = og.AttributeRole.NORMAL
role_data.inputs.a_normald_3_array = og.AttributeRole.NORMAL
role_data.inputs.a_normalf_3 = og.AttributeRole.NORMAL
role_data.inputs.a_normalf_3_array = og.AttributeRole.NORMAL
role_data.inputs.a_normalh_3 = og.AttributeRole.NORMAL
role_data.inputs.a_normalh_3_array = og.AttributeRole.NORMAL
role_data.inputs.a_objectId = og.AttributeRole.OBJECT_ID
role_data.inputs.a_objectId_array = og.AttributeRole.OBJECT_ID
role_data.inputs.a_pointd_3 = og.AttributeRole.POSITION
role_data.inputs.a_pointd_3_array = og.AttributeRole.POSITION
role_data.inputs.a_pointf_3 = og.AttributeRole.POSITION
role_data.inputs.a_pointf_3_array = og.AttributeRole.POSITION
role_data.inputs.a_pointh_3 = og.AttributeRole.POSITION
role_data.inputs.a_pointh_3_array = og.AttributeRole.POSITION
role_data.inputs.a_quatd_4 = og.AttributeRole.QUATERNION
role_data.inputs.a_quatd_4_array = og.AttributeRole.QUATERNION
role_data.inputs.a_quatf_4 = og.AttributeRole.QUATERNION
role_data.inputs.a_quatf_4_array = og.AttributeRole.QUATERNION
role_data.inputs.a_quath_4 = og.AttributeRole.QUATERNION
role_data.inputs.a_quath_4_array = og.AttributeRole.QUATERNION
role_data.inputs.a_string = og.AttributeRole.TEXT
role_data.inputs.a_texcoordd_2 = og.AttributeRole.TEXCOORD
role_data.inputs.a_texcoordd_2_array = og.AttributeRole.TEXCOORD
role_data.inputs.a_texcoordd_3 = og.AttributeRole.TEXCOORD
role_data.inputs.a_texcoordd_3_array = og.AttributeRole.TEXCOORD
role_data.inputs.a_texcoordf_2 = og.AttributeRole.TEXCOORD
role_data.inputs.a_texcoordf_2_array = og.AttributeRole.TEXCOORD
role_data.inputs.a_texcoordf_3 = og.AttributeRole.TEXCOORD
role_data.inputs.a_texcoordf_3_array = og.AttributeRole.TEXCOORD
role_data.inputs.a_texcoordh_2 = og.AttributeRole.TEXCOORD
role_data.inputs.a_texcoordh_2_array = og.AttributeRole.TEXCOORD
role_data.inputs.a_texcoordh_3 = og.AttributeRole.TEXCOORD
role_data.inputs.a_texcoordh_3_array = og.AttributeRole.TEXCOORD
role_data.inputs.a_timecode = og.AttributeRole.TIMECODE
role_data.inputs.a_timecode_array = og.AttributeRole.TIMECODE
role_data.inputs.a_vectord_3 = og.AttributeRole.VECTOR
role_data.inputs.a_vectord_3_array = og.AttributeRole.VECTOR
role_data.inputs.a_vectorf_3 = og.AttributeRole.VECTOR
role_data.inputs.a_vectorf_3_array = og.AttributeRole.VECTOR
role_data.inputs.a_vectorh_3 = og.AttributeRole.VECTOR
role_data.inputs.a_vectorh_3_array = og.AttributeRole.VECTOR
role_data.outputs.a_colord_3 = og.AttributeRole.COLOR
role_data.outputs.a_colord_3_array = og.AttributeRole.COLOR
role_data.outputs.a_colord_4 = og.AttributeRole.COLOR
role_data.outputs.a_colord_4_array = og.AttributeRole.COLOR
role_data.outputs.a_colorf_3 = og.AttributeRole.COLOR
role_data.outputs.a_colorf_3_array = og.AttributeRole.COLOR
role_data.outputs.a_colorf_4 = og.AttributeRole.COLOR
role_data.outputs.a_colorf_4_array = og.AttributeRole.COLOR
role_data.outputs.a_colorh_3 = og.AttributeRole.COLOR
role_data.outputs.a_colorh_3_array = og.AttributeRole.COLOR
role_data.outputs.a_colorh_4 = og.AttributeRole.COLOR
role_data.outputs.a_colorh_4_array = og.AttributeRole.COLOR
role_data.outputs.a_execution = og.AttributeRole.EXECUTION
role_data.outputs.a_frame_4 = og.AttributeRole.FRAME
role_data.outputs.a_frame_4_array = og.AttributeRole.FRAME
role_data.outputs.a_matrixd_2 = og.AttributeRole.MATRIX
role_data.outputs.a_matrixd_2_array = og.AttributeRole.MATRIX
role_data.outputs.a_matrixd_3 = og.AttributeRole.MATRIX
role_data.outputs.a_matrixd_3_array = og.AttributeRole.MATRIX
role_data.outputs.a_matrixd_4 = og.AttributeRole.MATRIX
role_data.outputs.a_matrixd_4_array = og.AttributeRole.MATRIX
role_data.outputs.a_normald_3 = og.AttributeRole.NORMAL
role_data.outputs.a_normald_3_array = og.AttributeRole.NORMAL
role_data.outputs.a_normalf_3 = og.AttributeRole.NORMAL
role_data.outputs.a_normalf_3_array = og.AttributeRole.NORMAL
role_data.outputs.a_normalh_3 = og.AttributeRole.NORMAL
role_data.outputs.a_normalh_3_array = og.AttributeRole.NORMAL
role_data.outputs.a_objectId = og.AttributeRole.OBJECT_ID
role_data.outputs.a_objectId_array = og.AttributeRole.OBJECT_ID
role_data.outputs.a_pointd_3 = og.AttributeRole.POSITION
role_data.outputs.a_pointd_3_array = og.AttributeRole.POSITION
role_data.outputs.a_pointf_3 = og.AttributeRole.POSITION
role_data.outputs.a_pointf_3_array = og.AttributeRole.POSITION
role_data.outputs.a_pointh_3 = og.AttributeRole.POSITION
role_data.outputs.a_pointh_3_array = og.AttributeRole.POSITION
role_data.outputs.a_quatd_4 = og.AttributeRole.QUATERNION
role_data.outputs.a_quatd_4_array = og.AttributeRole.QUATERNION
role_data.outputs.a_quatf_4 = og.AttributeRole.QUATERNION
role_data.outputs.a_quatf_4_array = og.AttributeRole.QUATERNION
role_data.outputs.a_quath_4 = og.AttributeRole.QUATERNION
role_data.outputs.a_quath_4_array = og.AttributeRole.QUATERNION
role_data.outputs.a_string = og.AttributeRole.TEXT
role_data.outputs.a_texcoordd_2 = og.AttributeRole.TEXCOORD
role_data.outputs.a_texcoordd_2_array = og.AttributeRole.TEXCOORD
role_data.outputs.a_texcoordd_3 = og.AttributeRole.TEXCOORD
role_data.outputs.a_texcoordd_3_array = og.AttributeRole.TEXCOORD
role_data.outputs.a_texcoordf_2 = og.AttributeRole.TEXCOORD
role_data.outputs.a_texcoordf_2_array = og.AttributeRole.TEXCOORD
role_data.outputs.a_texcoordf_3 = og.AttributeRole.TEXCOORD
role_data.outputs.a_texcoordf_3_array = og.AttributeRole.TEXCOORD
role_data.outputs.a_texcoordh_2 = og.AttributeRole.TEXCOORD
role_data.outputs.a_texcoordh_2_array = og.AttributeRole.TEXCOORD
role_data.outputs.a_texcoordh_3 = og.AttributeRole.TEXCOORD
role_data.outputs.a_texcoordh_3_array = og.AttributeRole.TEXCOORD
role_data.outputs.a_timecode = og.AttributeRole.TIMECODE
role_data.outputs.a_timecode_array = og.AttributeRole.TIMECODE
role_data.outputs.a_vectord_3 = og.AttributeRole.VECTOR
role_data.outputs.a_vectord_3_array = og.AttributeRole.VECTOR
role_data.outputs.a_vectorf_3 = og.AttributeRole.VECTOR
role_data.outputs.a_vectorf_3_array = og.AttributeRole.VECTOR
role_data.outputs.a_vectorh_3 = og.AttributeRole.VECTOR
role_data.outputs.a_vectorh_3_array = og.AttributeRole.VECTOR
return role_data
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to input attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedReadAttributes = []
self._batchedReadValues = []
@property
def a_bool(self):
data_view = og.AttributeValueHelper(self._attributes.a_bool)
return data_view.get()
@a_bool.setter
def a_bool(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_bool)
data_view = og.AttributeValueHelper(self._attributes.a_bool)
data_view.set(value)
@property
def a_bool_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_bool_array)
return data_view.get()
@a_bool_array.setter
def a_bool_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_bool_array)
data_view = og.AttributeValueHelper(self._attributes.a_bool_array)
data_view.set(value)
self.a_bool_array_size = data_view.get_array_size()
@property
def a_colord_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_colord_3)
return data_view.get()
@a_colord_3.setter
def a_colord_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_colord_3)
data_view = og.AttributeValueHelper(self._attributes.a_colord_3)
data_view.set(value)
@property
def a_colord_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_colord_3_array)
return data_view.get()
@a_colord_3_array.setter
def a_colord_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_colord_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_colord_3_array)
data_view.set(value)
self.a_colord_3_array_size = data_view.get_array_size()
@property
def a_colord_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_colord_4)
return data_view.get()
@a_colord_4.setter
def a_colord_4(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_colord_4)
data_view = og.AttributeValueHelper(self._attributes.a_colord_4)
data_view.set(value)
@property
def a_colord_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_colord_4_array)
return data_view.get()
@a_colord_4_array.setter
def a_colord_4_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_colord_4_array)
data_view = og.AttributeValueHelper(self._attributes.a_colord_4_array)
data_view.set(value)
self.a_colord_4_array_size = data_view.get_array_size()
@property
def a_colorf_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorf_3)
return data_view.get()
@a_colorf_3.setter
def a_colorf_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_colorf_3)
data_view = og.AttributeValueHelper(self._attributes.a_colorf_3)
data_view.set(value)
@property
def a_colorf_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorf_3_array)
return data_view.get()
@a_colorf_3_array.setter
def a_colorf_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_colorf_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_colorf_3_array)
data_view.set(value)
self.a_colorf_3_array_size = data_view.get_array_size()
@property
def a_colorf_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorf_4)
return data_view.get()
@a_colorf_4.setter
def a_colorf_4(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_colorf_4)
data_view = og.AttributeValueHelper(self._attributes.a_colorf_4)
data_view.set(value)
@property
def a_colorf_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorf_4_array)
return data_view.get()
@a_colorf_4_array.setter
def a_colorf_4_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_colorf_4_array)
data_view = og.AttributeValueHelper(self._attributes.a_colorf_4_array)
data_view.set(value)
self.a_colorf_4_array_size = data_view.get_array_size()
@property
def a_colorh_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorh_3)
return data_view.get()
@a_colorh_3.setter
def a_colorh_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_colorh_3)
data_view = og.AttributeValueHelper(self._attributes.a_colorh_3)
data_view.set(value)
@property
def a_colorh_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorh_3_array)
return data_view.get()
@a_colorh_3_array.setter
def a_colorh_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_colorh_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_colorh_3_array)
data_view.set(value)
self.a_colorh_3_array_size = data_view.get_array_size()
@property
def a_colorh_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorh_4)
return data_view.get()
@a_colorh_4.setter
def a_colorh_4(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_colorh_4)
data_view = og.AttributeValueHelper(self._attributes.a_colorh_4)
data_view.set(value)
@property
def a_colorh_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorh_4_array)
return data_view.get()
@a_colorh_4_array.setter
def a_colorh_4_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_colorh_4_array)
data_view = og.AttributeValueHelper(self._attributes.a_colorh_4_array)
data_view.set(value)
self.a_colorh_4_array_size = data_view.get_array_size()
@property
def a_double(self):
data_view = og.AttributeValueHelper(self._attributes.a_double)
return data_view.get()
@a_double.setter
def a_double(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_double)
data_view = og.AttributeValueHelper(self._attributes.a_double)
data_view.set(value)
@property
def a_double_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_2)
return data_view.get()
@a_double_2.setter
def a_double_2(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_double_2)
data_view = og.AttributeValueHelper(self._attributes.a_double_2)
data_view.set(value)
@property
def a_double_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_2_array)
return data_view.get()
@a_double_2_array.setter
def a_double_2_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_double_2_array)
data_view = og.AttributeValueHelper(self._attributes.a_double_2_array)
data_view.set(value)
self.a_double_2_array_size = data_view.get_array_size()
@property
def a_double_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_3)
return data_view.get()
@a_double_3.setter
def a_double_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_double_3)
data_view = og.AttributeValueHelper(self._attributes.a_double_3)
data_view.set(value)
@property
def a_double_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_3_array)
return data_view.get()
@a_double_3_array.setter
def a_double_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_double_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_double_3_array)
data_view.set(value)
self.a_double_3_array_size = data_view.get_array_size()
@property
def a_double_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_4)
return data_view.get()
@a_double_4.setter
def a_double_4(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_double_4)
data_view = og.AttributeValueHelper(self._attributes.a_double_4)
data_view.set(value)
@property
def a_double_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_4_array)
return data_view.get()
@a_double_4_array.setter
def a_double_4_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_double_4_array)
data_view = og.AttributeValueHelper(self._attributes.a_double_4_array)
data_view.set(value)
self.a_double_4_array_size = data_view.get_array_size()
@property
def a_double_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_array)
return data_view.get()
@a_double_array.setter
def a_double_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_double_array)
data_view = og.AttributeValueHelper(self._attributes.a_double_array)
data_view.set(value)
self.a_double_array_size = data_view.get_array_size()
@property
def a_execution(self):
data_view = og.AttributeValueHelper(self._attributes.a_execution)
return data_view.get()
@a_execution.setter
def a_execution(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_execution)
data_view = og.AttributeValueHelper(self._attributes.a_execution)
data_view.set(value)
@property
def a_float(self):
data_view = og.AttributeValueHelper(self._attributes.a_float)
return data_view.get()
@a_float.setter
def a_float(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_float)
data_view = og.AttributeValueHelper(self._attributes.a_float)
data_view.set(value)
@property
def a_float_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_2)
return data_view.get()
@a_float_2.setter
def a_float_2(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_float_2)
data_view = og.AttributeValueHelper(self._attributes.a_float_2)
data_view.set(value)
@property
def a_float_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_2_array)
return data_view.get()
@a_float_2_array.setter
def a_float_2_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_float_2_array)
data_view = og.AttributeValueHelper(self._attributes.a_float_2_array)
data_view.set(value)
self.a_float_2_array_size = data_view.get_array_size()
@property
def a_float_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_3)
return data_view.get()
@a_float_3.setter
def a_float_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_float_3)
data_view = og.AttributeValueHelper(self._attributes.a_float_3)
data_view.set(value)
@property
def a_float_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_3_array)
return data_view.get()
@a_float_3_array.setter
def a_float_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_float_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_float_3_array)
data_view.set(value)
self.a_float_3_array_size = data_view.get_array_size()
@property
def a_float_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_4)
return data_view.get()
@a_float_4.setter
def a_float_4(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_float_4)
data_view = og.AttributeValueHelper(self._attributes.a_float_4)
data_view.set(value)
@property
def a_float_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_4_array)
return data_view.get()
@a_float_4_array.setter
def a_float_4_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_float_4_array)
data_view = og.AttributeValueHelper(self._attributes.a_float_4_array)
data_view.set(value)
self.a_float_4_array_size = data_view.get_array_size()
@property
def a_float_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_array)
return data_view.get()
@a_float_array.setter
def a_float_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_float_array)
data_view = og.AttributeValueHelper(self._attributes.a_float_array)
data_view.set(value)
self.a_float_array_size = data_view.get_array_size()
@property
def a_frame_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_frame_4)
return data_view.get()
@a_frame_4.setter
def a_frame_4(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_frame_4)
data_view = og.AttributeValueHelper(self._attributes.a_frame_4)
data_view.set(value)
@property
def a_frame_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_frame_4_array)
return data_view.get()
@a_frame_4_array.setter
def a_frame_4_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_frame_4_array)
data_view = og.AttributeValueHelper(self._attributes.a_frame_4_array)
data_view.set(value)
self.a_frame_4_array_size = data_view.get_array_size()
@property
def a_half(self):
data_view = og.AttributeValueHelper(self._attributes.a_half)
return data_view.get()
@a_half.setter
def a_half(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_half)
data_view = og.AttributeValueHelper(self._attributes.a_half)
data_view.set(value)
@property
def a_half_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_2)
return data_view.get()
@a_half_2.setter
def a_half_2(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_half_2)
data_view = og.AttributeValueHelper(self._attributes.a_half_2)
data_view.set(value)
@property
def a_half_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_2_array)
return data_view.get()
@a_half_2_array.setter
def a_half_2_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_half_2_array)
data_view = og.AttributeValueHelper(self._attributes.a_half_2_array)
data_view.set(value)
self.a_half_2_array_size = data_view.get_array_size()
@property
def a_half_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_3)
return data_view.get()
@a_half_3.setter
def a_half_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_half_3)
data_view = og.AttributeValueHelper(self._attributes.a_half_3)
data_view.set(value)
@property
def a_half_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_3_array)
return data_view.get()
@a_half_3_array.setter
def a_half_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_half_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_half_3_array)
data_view.set(value)
self.a_half_3_array_size = data_view.get_array_size()
@property
def a_half_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_4)
return data_view.get()
@a_half_4.setter
def a_half_4(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_half_4)
data_view = og.AttributeValueHelper(self._attributes.a_half_4)
data_view.set(value)
@property
def a_half_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_4_array)
return data_view.get()
@a_half_4_array.setter
def a_half_4_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_half_4_array)
data_view = og.AttributeValueHelper(self._attributes.a_half_4_array)
data_view.set(value)
self.a_half_4_array_size = data_view.get_array_size()
@property
def a_half_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_array)
return data_view.get()
@a_half_array.setter
def a_half_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_half_array)
data_view = og.AttributeValueHelper(self._attributes.a_half_array)
data_view.set(value)
self.a_half_array_size = data_view.get_array_size()
@property
def a_int(self):
data_view = og.AttributeValueHelper(self._attributes.a_int)
return data_view.get()
@a_int.setter
def a_int(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_int)
data_view = og.AttributeValueHelper(self._attributes.a_int)
data_view.set(value)
@property
def a_int64(self):
data_view = og.AttributeValueHelper(self._attributes.a_int64)
return data_view.get()
@a_int64.setter
def a_int64(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_int64)
data_view = og.AttributeValueHelper(self._attributes.a_int64)
data_view.set(value)
@property
def a_int64_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_int64_array)
return data_view.get()
@a_int64_array.setter
def a_int64_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_int64_array)
data_view = og.AttributeValueHelper(self._attributes.a_int64_array)
data_view.set(value)
self.a_int64_array_size = data_view.get_array_size()
@property
def a_int_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_2)
return data_view.get()
@a_int_2.setter
def a_int_2(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_int_2)
data_view = og.AttributeValueHelper(self._attributes.a_int_2)
data_view.set(value)
@property
def a_int_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_2_array)
return data_view.get()
@a_int_2_array.setter
def a_int_2_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_int_2_array)
data_view = og.AttributeValueHelper(self._attributes.a_int_2_array)
data_view.set(value)
self.a_int_2_array_size = data_view.get_array_size()
@property
def a_int_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_3)
return data_view.get()
@a_int_3.setter
def a_int_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_int_3)
data_view = og.AttributeValueHelper(self._attributes.a_int_3)
data_view.set(value)
@property
def a_int_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_3_array)
return data_view.get()
@a_int_3_array.setter
def a_int_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_int_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_int_3_array)
data_view.set(value)
self.a_int_3_array_size = data_view.get_array_size()
@property
def a_int_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_4)
return data_view.get()
@a_int_4.setter
def a_int_4(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_int_4)
data_view = og.AttributeValueHelper(self._attributes.a_int_4)
data_view.set(value)
@property
def a_int_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_4_array)
return data_view.get()
@a_int_4_array.setter
def a_int_4_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_int_4_array)
data_view = og.AttributeValueHelper(self._attributes.a_int_4_array)
data_view.set(value)
self.a_int_4_array_size = data_view.get_array_size()
@property
def a_int_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_array)
return data_view.get()
@a_int_array.setter
def a_int_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_int_array)
data_view = og.AttributeValueHelper(self._attributes.a_int_array)
data_view.set(value)
self.a_int_array_size = data_view.get_array_size()
@property
def a_matrixd_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_2)
return data_view.get()
@a_matrixd_2.setter
def a_matrixd_2(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_matrixd_2)
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_2)
data_view.set(value)
@property
def a_matrixd_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_2_array)
return data_view.get()
@a_matrixd_2_array.setter
def a_matrixd_2_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_matrixd_2_array)
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_2_array)
data_view.set(value)
self.a_matrixd_2_array_size = data_view.get_array_size()
@property
def a_matrixd_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_3)
return data_view.get()
@a_matrixd_3.setter
def a_matrixd_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_matrixd_3)
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_3)
data_view.set(value)
@property
def a_matrixd_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_3_array)
return data_view.get()
@a_matrixd_3_array.setter
def a_matrixd_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_matrixd_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_3_array)
data_view.set(value)
self.a_matrixd_3_array_size = data_view.get_array_size()
@property
def a_matrixd_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_4)
return data_view.get()
@a_matrixd_4.setter
def a_matrixd_4(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_matrixd_4)
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_4)
data_view.set(value)
@property
def a_matrixd_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_4_array)
return data_view.get()
@a_matrixd_4_array.setter
def a_matrixd_4_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_matrixd_4_array)
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_4_array)
data_view.set(value)
self.a_matrixd_4_array_size = data_view.get_array_size()
@property
def a_normald_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_normald_3)
return data_view.get()
@a_normald_3.setter
def a_normald_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_normald_3)
data_view = og.AttributeValueHelper(self._attributes.a_normald_3)
data_view.set(value)
@property
def a_normald_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_normald_3_array)
return data_view.get()
@a_normald_3_array.setter
def a_normald_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_normald_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_normald_3_array)
data_view.set(value)
self.a_normald_3_array_size = data_view.get_array_size()
@property
def a_normalf_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_normalf_3)
return data_view.get()
@a_normalf_3.setter
def a_normalf_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_normalf_3)
data_view = og.AttributeValueHelper(self._attributes.a_normalf_3)
data_view.set(value)
@property
def a_normalf_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_normalf_3_array)
return data_view.get()
@a_normalf_3_array.setter
def a_normalf_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_normalf_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_normalf_3_array)
data_view.set(value)
self.a_normalf_3_array_size = data_view.get_array_size()
@property
def a_normalh_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_normalh_3)
return data_view.get()
@a_normalh_3.setter
def a_normalh_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_normalh_3)
data_view = og.AttributeValueHelper(self._attributes.a_normalh_3)
data_view.set(value)
@property
def a_normalh_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_normalh_3_array)
return data_view.get()
@a_normalh_3_array.setter
def a_normalh_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_normalh_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_normalh_3_array)
data_view.set(value)
self.a_normalh_3_array_size = data_view.get_array_size()
@property
def a_objectId(self):
data_view = og.AttributeValueHelper(self._attributes.a_objectId)
return data_view.get()
@a_objectId.setter
def a_objectId(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_objectId)
data_view = og.AttributeValueHelper(self._attributes.a_objectId)
data_view.set(value)
@property
def a_objectId_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_objectId_array)
return data_view.get()
@a_objectId_array.setter
def a_objectId_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_objectId_array)
data_view = og.AttributeValueHelper(self._attributes.a_objectId_array)
data_view.set(value)
self.a_objectId_array_size = data_view.get_array_size()
@property
def a_pointd_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_pointd_3)
return data_view.get()
@a_pointd_3.setter
def a_pointd_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_pointd_3)
data_view = og.AttributeValueHelper(self._attributes.a_pointd_3)
data_view.set(value)
@property
def a_pointd_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_pointd_3_array)
return data_view.get()
@a_pointd_3_array.setter
def a_pointd_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_pointd_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_pointd_3_array)
data_view.set(value)
self.a_pointd_3_array_size = data_view.get_array_size()
@property
def a_pointf_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_pointf_3)
return data_view.get()
@a_pointf_3.setter
def a_pointf_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_pointf_3)
data_view = og.AttributeValueHelper(self._attributes.a_pointf_3)
data_view.set(value)
@property
def a_pointf_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_pointf_3_array)
return data_view.get()
@a_pointf_3_array.setter
def a_pointf_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_pointf_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_pointf_3_array)
data_view.set(value)
self.a_pointf_3_array_size = data_view.get_array_size()
@property
def a_pointh_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_pointh_3)
return data_view.get()
@a_pointh_3.setter
def a_pointh_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_pointh_3)
data_view = og.AttributeValueHelper(self._attributes.a_pointh_3)
data_view.set(value)
@property
def a_pointh_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_pointh_3_array)
return data_view.get()
@a_pointh_3_array.setter
def a_pointh_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_pointh_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_pointh_3_array)
data_view.set(value)
self.a_pointh_3_array_size = data_view.get_array_size()
@property
def a_quatd_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_quatd_4)
return data_view.get()
@a_quatd_4.setter
def a_quatd_4(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_quatd_4)
data_view = og.AttributeValueHelper(self._attributes.a_quatd_4)
data_view.set(value)
@property
def a_quatd_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_quatd_4_array)
return data_view.get()
@a_quatd_4_array.setter
def a_quatd_4_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_quatd_4_array)
data_view = og.AttributeValueHelper(self._attributes.a_quatd_4_array)
data_view.set(value)
self.a_quatd_4_array_size = data_view.get_array_size()
@property
def a_quatf_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_quatf_4)
return data_view.get()
@a_quatf_4.setter
def a_quatf_4(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_quatf_4)
data_view = og.AttributeValueHelper(self._attributes.a_quatf_4)
data_view.set(value)
@property
def a_quatf_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_quatf_4_array)
return data_view.get()
@a_quatf_4_array.setter
def a_quatf_4_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_quatf_4_array)
data_view = og.AttributeValueHelper(self._attributes.a_quatf_4_array)
data_view.set(value)
self.a_quatf_4_array_size = data_view.get_array_size()
@property
def a_quath_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_quath_4)
return data_view.get()
@a_quath_4.setter
def a_quath_4(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_quath_4)
data_view = og.AttributeValueHelper(self._attributes.a_quath_4)
data_view.set(value)
@property
def a_quath_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_quath_4_array)
return data_view.get()
@a_quath_4_array.setter
def a_quath_4_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_quath_4_array)
data_view = og.AttributeValueHelper(self._attributes.a_quath_4_array)
data_view.set(value)
self.a_quath_4_array_size = data_view.get_array_size()
@property
def a_string(self):
data_view = og.AttributeValueHelper(self._attributes.a_string)
return data_view.get()
@a_string.setter
def a_string(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_string)
data_view = og.AttributeValueHelper(self._attributes.a_string)
data_view.set(value)
self.a_string_size = data_view.get_array_size()
@property
def a_texcoordd_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_2)
return data_view.get()
@a_texcoordd_2.setter
def a_texcoordd_2(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_texcoordd_2)
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_2)
data_view.set(value)
@property
def a_texcoordd_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_2_array)
return data_view.get()
@a_texcoordd_2_array.setter
def a_texcoordd_2_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_texcoordd_2_array)
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_2_array)
data_view.set(value)
self.a_texcoordd_2_array_size = data_view.get_array_size()
@property
def a_texcoordd_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_3)
return data_view.get()
@a_texcoordd_3.setter
def a_texcoordd_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_texcoordd_3)
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_3)
data_view.set(value)
@property
def a_texcoordd_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_3_array)
return data_view.get()
@a_texcoordd_3_array.setter
def a_texcoordd_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_texcoordd_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_3_array)
data_view.set(value)
self.a_texcoordd_3_array_size = data_view.get_array_size()
@property
def a_texcoordf_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_2)
return data_view.get()
@a_texcoordf_2.setter
def a_texcoordf_2(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_texcoordf_2)
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_2)
data_view.set(value)
@property
def a_texcoordf_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_2_array)
return data_view.get()
@a_texcoordf_2_array.setter
def a_texcoordf_2_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_texcoordf_2_array)
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_2_array)
data_view.set(value)
self.a_texcoordf_2_array_size = data_view.get_array_size()
@property
def a_texcoordf_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_3)
return data_view.get()
@a_texcoordf_3.setter
def a_texcoordf_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_texcoordf_3)
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_3)
data_view.set(value)
@property
def a_texcoordf_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_3_array)
return data_view.get()
@a_texcoordf_3_array.setter
def a_texcoordf_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_texcoordf_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_3_array)
data_view.set(value)
self.a_texcoordf_3_array_size = data_view.get_array_size()
@property
def a_texcoordh_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_2)
return data_view.get()
@a_texcoordh_2.setter
def a_texcoordh_2(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_texcoordh_2)
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_2)
data_view.set(value)
@property
def a_texcoordh_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_2_array)
return data_view.get()
@a_texcoordh_2_array.setter
def a_texcoordh_2_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_texcoordh_2_array)
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_2_array)
data_view.set(value)
self.a_texcoordh_2_array_size = data_view.get_array_size()
@property
def a_texcoordh_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_3)
return data_view.get()
@a_texcoordh_3.setter
def a_texcoordh_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_texcoordh_3)
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_3)
data_view.set(value)
@property
def a_texcoordh_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_3_array)
return data_view.get()
@a_texcoordh_3_array.setter
def a_texcoordh_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_texcoordh_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_3_array)
data_view.set(value)
self.a_texcoordh_3_array_size = data_view.get_array_size()
@property
def a_timecode(self):
data_view = og.AttributeValueHelper(self._attributes.a_timecode)
return data_view.get()
@a_timecode.setter
def a_timecode(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_timecode)
data_view = og.AttributeValueHelper(self._attributes.a_timecode)
data_view.set(value)
@property
def a_timecode_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_timecode_array)
return data_view.get()
@a_timecode_array.setter
def a_timecode_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_timecode_array)
data_view = og.AttributeValueHelper(self._attributes.a_timecode_array)
data_view.set(value)
self.a_timecode_array_size = data_view.get_array_size()
@property
def a_token(self):
data_view = og.AttributeValueHelper(self._attributes.a_token)
return data_view.get()
@a_token.setter
def a_token(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_token)
data_view = og.AttributeValueHelper(self._attributes.a_token)
data_view.set(value)
@property
def a_token_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_token_array)
return data_view.get()
@a_token_array.setter
def a_token_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_token_array)
data_view = og.AttributeValueHelper(self._attributes.a_token_array)
data_view.set(value)
self.a_token_array_size = data_view.get_array_size()
@property
def a_uchar(self):
data_view = og.AttributeValueHelper(self._attributes.a_uchar)
return data_view.get()
@a_uchar.setter
def a_uchar(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_uchar)
data_view = og.AttributeValueHelper(self._attributes.a_uchar)
data_view.set(value)
@property
def a_uchar_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_uchar_array)
return data_view.get()
@a_uchar_array.setter
def a_uchar_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_uchar_array)
data_view = og.AttributeValueHelper(self._attributes.a_uchar_array)
data_view.set(value)
self.a_uchar_array_size = data_view.get_array_size()
@property
def a_uint(self):
data_view = og.AttributeValueHelper(self._attributes.a_uint)
return data_view.get()
@a_uint.setter
def a_uint(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_uint)
data_view = og.AttributeValueHelper(self._attributes.a_uint)
data_view.set(value)
@property
def a_uint64(self):
data_view = og.AttributeValueHelper(self._attributes.a_uint64)
return data_view.get()
@a_uint64.setter
def a_uint64(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_uint64)
data_view = og.AttributeValueHelper(self._attributes.a_uint64)
data_view.set(value)
@property
def a_uint64_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_uint64_array)
return data_view.get()
@a_uint64_array.setter
def a_uint64_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_uint64_array)
data_view = og.AttributeValueHelper(self._attributes.a_uint64_array)
data_view.set(value)
self.a_uint64_array_size = data_view.get_array_size()
@property
def a_uint_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_uint_array)
return data_view.get()
@a_uint_array.setter
def a_uint_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_uint_array)
data_view = og.AttributeValueHelper(self._attributes.a_uint_array)
data_view.set(value)
self.a_uint_array_size = data_view.get_array_size()
@property
def a_vectord_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_vectord_3)
return data_view.get()
@a_vectord_3.setter
def a_vectord_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_vectord_3)
data_view = og.AttributeValueHelper(self._attributes.a_vectord_3)
data_view.set(value)
@property
def a_vectord_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_vectord_3_array)
return data_view.get()
@a_vectord_3_array.setter
def a_vectord_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_vectord_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_vectord_3_array)
data_view.set(value)
self.a_vectord_3_array_size = data_view.get_array_size()
@property
def a_vectorf_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_vectorf_3)
return data_view.get()
@a_vectorf_3.setter
def a_vectorf_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_vectorf_3)
data_view = og.AttributeValueHelper(self._attributes.a_vectorf_3)
data_view.set(value)
@property
def a_vectorf_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_vectorf_3_array)
return data_view.get()
@a_vectorf_3_array.setter
def a_vectorf_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_vectorf_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_vectorf_3_array)
data_view.set(value)
self.a_vectorf_3_array_size = data_view.get_array_size()
@property
def a_vectorh_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_vectorh_3)
return data_view.get()
@a_vectorh_3.setter
def a_vectorh_3(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_vectorh_3)
data_view = og.AttributeValueHelper(self._attributes.a_vectorh_3)
data_view.set(value)
@property
def a_vectorh_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_vectorh_3_array)
return data_view.get()
@a_vectorh_3_array.setter
def a_vectorh_3_array(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.a_vectorh_3_array)
data_view = og.AttributeValueHelper(self._attributes.a_vectorh_3_array)
data_view.set(value)
self.a_vectorh_3_array_size = data_view.get_array_size()
@property
def doNotCompute(self):
data_view = og.AttributeValueHelper(self._attributes.doNotCompute)
return data_view.get()
@doNotCompute.setter
def doNotCompute(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.doNotCompute)
data_view = og.AttributeValueHelper(self._attributes.doNotCompute)
data_view.set(value)
def _prefetch(self):
readAttributes = self._batchedReadAttributes
newValues = _og._prefetch_input_attributes_data(readAttributes)
if len(readAttributes) == len(newValues):
self._batchedReadValues = newValues
class ValuesForOutputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to output attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self.a_bool_array_size = 2
self.a_colord_3_array_size = 2
self.a_colord_4_array_size = 2
self.a_colorf_3_array_size = 2
self.a_colorf_4_array_size = 2
self.a_colorh_3_array_size = 2
self.a_colorh_4_array_size = 2
self.a_double_2_array_size = 2
self.a_double_3_array_size = 2
self.a_double_4_array_size = 2
self.a_double_array_size = 2
self.a_float_2_array_size = 2
self.a_float_3_array_size = 2
self.a_float_4_array_size = 2
self.a_float_array_size = 2
self.a_frame_4_array_size = 2
self.a_half_2_array_size = 2
self.a_half_3_array_size = 2
self.a_half_4_array_size = 2
self.a_half_array_size = 2
self.a_int64_array_size = 2
self.a_int_2_array_size = 2
self.a_int_3_array_size = 2
self.a_int_4_array_size = 2
self.a_int_array_size = 2
self.a_matrixd_2_array_size = 2
self.a_matrixd_3_array_size = 2
self.a_matrixd_4_array_size = 2
self.a_normald_3_array_size = 2
self.a_normalf_3_array_size = 2
self.a_normalh_3_array_size = 2
self.a_objectId_array_size = 2
self.a_pointd_3_array_size = 2
self.a_pointf_3_array_size = 2
self.a_pointh_3_array_size = 2
self.a_quatd_4_array_size = 2
self.a_quatf_4_array_size = 2
self.a_quath_4_array_size = 2
self.a_string_size = 5
self.a_texcoordd_2_array_size = 2
self.a_texcoordd_3_array_size = 2
self.a_texcoordf_2_array_size = 2
self.a_texcoordf_3_array_size = 2
self.a_texcoordh_2_array_size = 2
self.a_texcoordh_3_array_size = 2
self.a_timecode_array_size = 2
self.a_token_array_size = 2
self.a_uchar_array_size = 2
self.a_uint64_array_size = 2
self.a_uint_array_size = 2
self.a_vectord_3_array_size = 2
self.a_vectorf_3_array_size = 2
self.a_vectorh_3_array_size = 2
self._batchedWriteValues = { }
@property
def a_bool(self):
data_view = og.AttributeValueHelper(self._attributes.a_bool)
return data_view.get()
@a_bool.setter
def a_bool(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_bool)
data_view.set(value)
@property
def a_bool_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_bool_array)
return data_view.get(reserved_element_count=self.a_bool_array_size)
@a_bool_array.setter
def a_bool_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_bool_array)
data_view.set(value)
self.a_bool_array_size = data_view.get_array_size()
@property
def a_colord_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_colord_3)
return data_view.get()
@a_colord_3.setter
def a_colord_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_colord_3)
data_view.set(value)
@property
def a_colord_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_colord_3_array)
return data_view.get(reserved_element_count=self.a_colord_3_array_size)
@a_colord_3_array.setter
def a_colord_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_colord_3_array)
data_view.set(value)
self.a_colord_3_array_size = data_view.get_array_size()
@property
def a_colord_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_colord_4)
return data_view.get()
@a_colord_4.setter
def a_colord_4(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_colord_4)
data_view.set(value)
@property
def a_colord_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_colord_4_array)
return data_view.get(reserved_element_count=self.a_colord_4_array_size)
@a_colord_4_array.setter
def a_colord_4_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_colord_4_array)
data_view.set(value)
self.a_colord_4_array_size = data_view.get_array_size()
@property
def a_colorf_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorf_3)
return data_view.get()
@a_colorf_3.setter
def a_colorf_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_colorf_3)
data_view.set(value)
@property
def a_colorf_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorf_3_array)
return data_view.get(reserved_element_count=self.a_colorf_3_array_size)
@a_colorf_3_array.setter
def a_colorf_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_colorf_3_array)
data_view.set(value)
self.a_colorf_3_array_size = data_view.get_array_size()
@property
def a_colorf_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorf_4)
return data_view.get()
@a_colorf_4.setter
def a_colorf_4(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_colorf_4)
data_view.set(value)
@property
def a_colorf_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorf_4_array)
return data_view.get(reserved_element_count=self.a_colorf_4_array_size)
@a_colorf_4_array.setter
def a_colorf_4_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_colorf_4_array)
data_view.set(value)
self.a_colorf_4_array_size = data_view.get_array_size()
@property
def a_colorh_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorh_3)
return data_view.get()
@a_colorh_3.setter
def a_colorh_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_colorh_3)
data_view.set(value)
@property
def a_colorh_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorh_3_array)
return data_view.get(reserved_element_count=self.a_colorh_3_array_size)
@a_colorh_3_array.setter
def a_colorh_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_colorh_3_array)
data_view.set(value)
self.a_colorh_3_array_size = data_view.get_array_size()
@property
def a_colorh_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorh_4)
return data_view.get()
@a_colorh_4.setter
def a_colorh_4(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_colorh_4)
data_view.set(value)
@property
def a_colorh_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_colorh_4_array)
return data_view.get(reserved_element_count=self.a_colorh_4_array_size)
@a_colorh_4_array.setter
def a_colorh_4_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_colorh_4_array)
data_view.set(value)
self.a_colorh_4_array_size = data_view.get_array_size()
@property
def a_double(self):
data_view = og.AttributeValueHelper(self._attributes.a_double)
return data_view.get()
@a_double.setter
def a_double(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_double)
data_view.set(value)
@property
def a_double_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_2)
return data_view.get()
@a_double_2.setter
def a_double_2(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_double_2)
data_view.set(value)
@property
def a_double_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_2_array)
return data_view.get(reserved_element_count=self.a_double_2_array_size)
@a_double_2_array.setter
def a_double_2_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_double_2_array)
data_view.set(value)
self.a_double_2_array_size = data_view.get_array_size()
@property
def a_double_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_3)
return data_view.get()
@a_double_3.setter
def a_double_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_double_3)
data_view.set(value)
@property
def a_double_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_3_array)
return data_view.get(reserved_element_count=self.a_double_3_array_size)
@a_double_3_array.setter
def a_double_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_double_3_array)
data_view.set(value)
self.a_double_3_array_size = data_view.get_array_size()
@property
def a_double_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_4)
return data_view.get()
@a_double_4.setter
def a_double_4(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_double_4)
data_view.set(value)
@property
def a_double_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_4_array)
return data_view.get(reserved_element_count=self.a_double_4_array_size)
@a_double_4_array.setter
def a_double_4_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_double_4_array)
data_view.set(value)
self.a_double_4_array_size = data_view.get_array_size()
@property
def a_double_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_double_array)
return data_view.get(reserved_element_count=self.a_double_array_size)
@a_double_array.setter
def a_double_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_double_array)
data_view.set(value)
self.a_double_array_size = data_view.get_array_size()
@property
def a_execution(self):
data_view = og.AttributeValueHelper(self._attributes.a_execution)
return data_view.get()
@a_execution.setter
def a_execution(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_execution)
data_view.set(value)
@property
def a_float(self):
data_view = og.AttributeValueHelper(self._attributes.a_float)
return data_view.get()
@a_float.setter
def a_float(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_float)
data_view.set(value)
@property
def a_float_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_2)
return data_view.get()
@a_float_2.setter
def a_float_2(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_float_2)
data_view.set(value)
@property
def a_float_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_2_array)
return data_view.get(reserved_element_count=self.a_float_2_array_size)
@a_float_2_array.setter
def a_float_2_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_float_2_array)
data_view.set(value)
self.a_float_2_array_size = data_view.get_array_size()
@property
def a_float_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_3)
return data_view.get()
@a_float_3.setter
def a_float_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_float_3)
data_view.set(value)
@property
def a_float_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_3_array)
return data_view.get(reserved_element_count=self.a_float_3_array_size)
@a_float_3_array.setter
def a_float_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_float_3_array)
data_view.set(value)
self.a_float_3_array_size = data_view.get_array_size()
@property
def a_float_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_4)
return data_view.get()
@a_float_4.setter
def a_float_4(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_float_4)
data_view.set(value)
@property
def a_float_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_4_array)
return data_view.get(reserved_element_count=self.a_float_4_array_size)
@a_float_4_array.setter
def a_float_4_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_float_4_array)
data_view.set(value)
self.a_float_4_array_size = data_view.get_array_size()
@property
def a_float_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_float_array)
return data_view.get(reserved_element_count=self.a_float_array_size)
@a_float_array.setter
def a_float_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_float_array)
data_view.set(value)
self.a_float_array_size = data_view.get_array_size()
@property
def a_frame_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_frame_4)
return data_view.get()
@a_frame_4.setter
def a_frame_4(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_frame_4)
data_view.set(value)
@property
def a_frame_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_frame_4_array)
return data_view.get(reserved_element_count=self.a_frame_4_array_size)
@a_frame_4_array.setter
def a_frame_4_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_frame_4_array)
data_view.set(value)
self.a_frame_4_array_size = data_view.get_array_size()
@property
def a_half(self):
data_view = og.AttributeValueHelper(self._attributes.a_half)
return data_view.get()
@a_half.setter
def a_half(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_half)
data_view.set(value)
@property
def a_half_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_2)
return data_view.get()
@a_half_2.setter
def a_half_2(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_half_2)
data_view.set(value)
@property
def a_half_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_2_array)
return data_view.get(reserved_element_count=self.a_half_2_array_size)
@a_half_2_array.setter
def a_half_2_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_half_2_array)
data_view.set(value)
self.a_half_2_array_size = data_view.get_array_size()
@property
def a_half_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_3)
return data_view.get()
@a_half_3.setter
def a_half_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_half_3)
data_view.set(value)
@property
def a_half_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_3_array)
return data_view.get(reserved_element_count=self.a_half_3_array_size)
@a_half_3_array.setter
def a_half_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_half_3_array)
data_view.set(value)
self.a_half_3_array_size = data_view.get_array_size()
@property
def a_half_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_4)
return data_view.get()
@a_half_4.setter
def a_half_4(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_half_4)
data_view.set(value)
@property
def a_half_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_4_array)
return data_view.get(reserved_element_count=self.a_half_4_array_size)
@a_half_4_array.setter
def a_half_4_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_half_4_array)
data_view.set(value)
self.a_half_4_array_size = data_view.get_array_size()
@property
def a_half_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_half_array)
return data_view.get(reserved_element_count=self.a_half_array_size)
@a_half_array.setter
def a_half_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_half_array)
data_view.set(value)
self.a_half_array_size = data_view.get_array_size()
@property
def a_int(self):
data_view = og.AttributeValueHelper(self._attributes.a_int)
return data_view.get()
@a_int.setter
def a_int(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_int)
data_view.set(value)
@property
def a_int64(self):
data_view = og.AttributeValueHelper(self._attributes.a_int64)
return data_view.get()
@a_int64.setter
def a_int64(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_int64)
data_view.set(value)
@property
def a_int64_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_int64_array)
return data_view.get(reserved_element_count=self.a_int64_array_size)
@a_int64_array.setter
def a_int64_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_int64_array)
data_view.set(value)
self.a_int64_array_size = data_view.get_array_size()
@property
def a_int_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_2)
return data_view.get()
@a_int_2.setter
def a_int_2(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_int_2)
data_view.set(value)
@property
def a_int_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_2_array)
return data_view.get(reserved_element_count=self.a_int_2_array_size)
@a_int_2_array.setter
def a_int_2_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_int_2_array)
data_view.set(value)
self.a_int_2_array_size = data_view.get_array_size()
@property
def a_int_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_3)
return data_view.get()
@a_int_3.setter
def a_int_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_int_3)
data_view.set(value)
@property
def a_int_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_3_array)
return data_view.get(reserved_element_count=self.a_int_3_array_size)
@a_int_3_array.setter
def a_int_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_int_3_array)
data_view.set(value)
self.a_int_3_array_size = data_view.get_array_size()
@property
def a_int_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_4)
return data_view.get()
@a_int_4.setter
def a_int_4(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_int_4)
data_view.set(value)
@property
def a_int_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_4_array)
return data_view.get(reserved_element_count=self.a_int_4_array_size)
@a_int_4_array.setter
def a_int_4_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_int_4_array)
data_view.set(value)
self.a_int_4_array_size = data_view.get_array_size()
@property
def a_int_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_int_array)
return data_view.get(reserved_element_count=self.a_int_array_size)
@a_int_array.setter
def a_int_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_int_array)
data_view.set(value)
self.a_int_array_size = data_view.get_array_size()
@property
def a_matrixd_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_2)
return data_view.get()
@a_matrixd_2.setter
def a_matrixd_2(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_2)
data_view.set(value)
@property
def a_matrixd_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_2_array)
return data_view.get(reserved_element_count=self.a_matrixd_2_array_size)
@a_matrixd_2_array.setter
def a_matrixd_2_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_2_array)
data_view.set(value)
self.a_matrixd_2_array_size = data_view.get_array_size()
@property
def a_matrixd_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_3)
return data_view.get()
@a_matrixd_3.setter
def a_matrixd_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_3)
data_view.set(value)
@property
def a_matrixd_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_3_array)
return data_view.get(reserved_element_count=self.a_matrixd_3_array_size)
@a_matrixd_3_array.setter
def a_matrixd_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_3_array)
data_view.set(value)
self.a_matrixd_3_array_size = data_view.get_array_size()
@property
def a_matrixd_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_4)
return data_view.get()
@a_matrixd_4.setter
def a_matrixd_4(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_4)
data_view.set(value)
@property
def a_matrixd_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_4_array)
return data_view.get(reserved_element_count=self.a_matrixd_4_array_size)
@a_matrixd_4_array.setter
def a_matrixd_4_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_matrixd_4_array)
data_view.set(value)
self.a_matrixd_4_array_size = data_view.get_array_size()
@property
def a_normald_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_normald_3)
return data_view.get()
@a_normald_3.setter
def a_normald_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_normald_3)
data_view.set(value)
@property
def a_normald_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_normald_3_array)
return data_view.get(reserved_element_count=self.a_normald_3_array_size)
@a_normald_3_array.setter
def a_normald_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_normald_3_array)
data_view.set(value)
self.a_normald_3_array_size = data_view.get_array_size()
@property
def a_normalf_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_normalf_3)
return data_view.get()
@a_normalf_3.setter
def a_normalf_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_normalf_3)
data_view.set(value)
@property
def a_normalf_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_normalf_3_array)
return data_view.get(reserved_element_count=self.a_normalf_3_array_size)
@a_normalf_3_array.setter
def a_normalf_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_normalf_3_array)
data_view.set(value)
self.a_normalf_3_array_size = data_view.get_array_size()
@property
def a_normalh_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_normalh_3)
return data_view.get()
@a_normalh_3.setter
def a_normalh_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_normalh_3)
data_view.set(value)
@property
def a_normalh_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_normalh_3_array)
return data_view.get(reserved_element_count=self.a_normalh_3_array_size)
@a_normalh_3_array.setter
def a_normalh_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_normalh_3_array)
data_view.set(value)
self.a_normalh_3_array_size = data_view.get_array_size()
@property
def a_objectId(self):
data_view = og.AttributeValueHelper(self._attributes.a_objectId)
return data_view.get()
@a_objectId.setter
def a_objectId(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_objectId)
data_view.set(value)
@property
def a_objectId_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_objectId_array)
return data_view.get(reserved_element_count=self.a_objectId_array_size)
@a_objectId_array.setter
def a_objectId_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_objectId_array)
data_view.set(value)
self.a_objectId_array_size = data_view.get_array_size()
@property
def a_pointd_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_pointd_3)
return data_view.get()
@a_pointd_3.setter
def a_pointd_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_pointd_3)
data_view.set(value)
@property
def a_pointd_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_pointd_3_array)
return data_view.get(reserved_element_count=self.a_pointd_3_array_size)
@a_pointd_3_array.setter
def a_pointd_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_pointd_3_array)
data_view.set(value)
self.a_pointd_3_array_size = data_view.get_array_size()
@property
def a_pointf_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_pointf_3)
return data_view.get()
@a_pointf_3.setter
def a_pointf_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_pointf_3)
data_view.set(value)
@property
def a_pointf_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_pointf_3_array)
return data_view.get(reserved_element_count=self.a_pointf_3_array_size)
@a_pointf_3_array.setter
def a_pointf_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_pointf_3_array)
data_view.set(value)
self.a_pointf_3_array_size = data_view.get_array_size()
@property
def a_pointh_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_pointh_3)
return data_view.get()
@a_pointh_3.setter
def a_pointh_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_pointh_3)
data_view.set(value)
@property
def a_pointh_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_pointh_3_array)
return data_view.get(reserved_element_count=self.a_pointh_3_array_size)
@a_pointh_3_array.setter
def a_pointh_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_pointh_3_array)
data_view.set(value)
self.a_pointh_3_array_size = data_view.get_array_size()
@property
def a_quatd_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_quatd_4)
return data_view.get()
@a_quatd_4.setter
def a_quatd_4(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_quatd_4)
data_view.set(value)
@property
def a_quatd_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_quatd_4_array)
return data_view.get(reserved_element_count=self.a_quatd_4_array_size)
@a_quatd_4_array.setter
def a_quatd_4_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_quatd_4_array)
data_view.set(value)
self.a_quatd_4_array_size = data_view.get_array_size()
@property
def a_quatf_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_quatf_4)
return data_view.get()
@a_quatf_4.setter
def a_quatf_4(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_quatf_4)
data_view.set(value)
@property
def a_quatf_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_quatf_4_array)
return data_view.get(reserved_element_count=self.a_quatf_4_array_size)
@a_quatf_4_array.setter
def a_quatf_4_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_quatf_4_array)
data_view.set(value)
self.a_quatf_4_array_size = data_view.get_array_size()
@property
def a_quath_4(self):
data_view = og.AttributeValueHelper(self._attributes.a_quath_4)
return data_view.get()
@a_quath_4.setter
def a_quath_4(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_quath_4)
data_view.set(value)
@property
def a_quath_4_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_quath_4_array)
return data_view.get(reserved_element_count=self.a_quath_4_array_size)
@a_quath_4_array.setter
def a_quath_4_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_quath_4_array)
data_view.set(value)
self.a_quath_4_array_size = data_view.get_array_size()
@property
def a_string(self):
data_view = og.AttributeValueHelper(self._attributes.a_string)
return data_view.get(reserved_element_count=self.a_string_size)
@a_string.setter
def a_string(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_string)
data_view.set(value)
self.a_string_size = data_view.get_array_size()
@property
def a_texcoordd_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_2)
return data_view.get()
@a_texcoordd_2.setter
def a_texcoordd_2(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_2)
data_view.set(value)
@property
def a_texcoordd_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_2_array)
return data_view.get(reserved_element_count=self.a_texcoordd_2_array_size)
@a_texcoordd_2_array.setter
def a_texcoordd_2_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_2_array)
data_view.set(value)
self.a_texcoordd_2_array_size = data_view.get_array_size()
@property
def a_texcoordd_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_3)
return data_view.get()
@a_texcoordd_3.setter
def a_texcoordd_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_3)
data_view.set(value)
@property
def a_texcoordd_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_3_array)
return data_view.get(reserved_element_count=self.a_texcoordd_3_array_size)
@a_texcoordd_3_array.setter
def a_texcoordd_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordd_3_array)
data_view.set(value)
self.a_texcoordd_3_array_size = data_view.get_array_size()
@property
def a_texcoordf_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_2)
return data_view.get()
@a_texcoordf_2.setter
def a_texcoordf_2(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_2)
data_view.set(value)
@property
def a_texcoordf_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_2_array)
return data_view.get(reserved_element_count=self.a_texcoordf_2_array_size)
@a_texcoordf_2_array.setter
def a_texcoordf_2_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_2_array)
data_view.set(value)
self.a_texcoordf_2_array_size = data_view.get_array_size()
@property
def a_texcoordf_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_3)
return data_view.get()
@a_texcoordf_3.setter
def a_texcoordf_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_3)
data_view.set(value)
@property
def a_texcoordf_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_3_array)
return data_view.get(reserved_element_count=self.a_texcoordf_3_array_size)
@a_texcoordf_3_array.setter
def a_texcoordf_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordf_3_array)
data_view.set(value)
self.a_texcoordf_3_array_size = data_view.get_array_size()
@property
def a_texcoordh_2(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_2)
return data_view.get()
@a_texcoordh_2.setter
def a_texcoordh_2(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_2)
data_view.set(value)
@property
def a_texcoordh_2_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_2_array)
return data_view.get(reserved_element_count=self.a_texcoordh_2_array_size)
@a_texcoordh_2_array.setter
def a_texcoordh_2_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_2_array)
data_view.set(value)
self.a_texcoordh_2_array_size = data_view.get_array_size()
@property
def a_texcoordh_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_3)
return data_view.get()
@a_texcoordh_3.setter
def a_texcoordh_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_3)
data_view.set(value)
@property
def a_texcoordh_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_3_array)
return data_view.get(reserved_element_count=self.a_texcoordh_3_array_size)
@a_texcoordh_3_array.setter
def a_texcoordh_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_texcoordh_3_array)
data_view.set(value)
self.a_texcoordh_3_array_size = data_view.get_array_size()
@property
def a_timecode(self):
data_view = og.AttributeValueHelper(self._attributes.a_timecode)
return data_view.get()
@a_timecode.setter
def a_timecode(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_timecode)
data_view.set(value)
@property
def a_timecode_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_timecode_array)
return data_view.get(reserved_element_count=self.a_timecode_array_size)
@a_timecode_array.setter
def a_timecode_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_timecode_array)
data_view.set(value)
self.a_timecode_array_size = data_view.get_array_size()
@property
def a_token(self):
data_view = og.AttributeValueHelper(self._attributes.a_token)
return data_view.get()
@a_token.setter
def a_token(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_token)
data_view.set(value)
@property
def a_token_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_token_array)
return data_view.get(reserved_element_count=self.a_token_array_size)
@a_token_array.setter
def a_token_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_token_array)
data_view.set(value)
self.a_token_array_size = data_view.get_array_size()
@property
def a_uchar(self):
data_view = og.AttributeValueHelper(self._attributes.a_uchar)
return data_view.get()
@a_uchar.setter
def a_uchar(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_uchar)
data_view.set(value)
@property
def a_uchar_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_uchar_array)
return data_view.get(reserved_element_count=self.a_uchar_array_size)
@a_uchar_array.setter
def a_uchar_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_uchar_array)
data_view.set(value)
self.a_uchar_array_size = data_view.get_array_size()
@property
def a_uint(self):
data_view = og.AttributeValueHelper(self._attributes.a_uint)
return data_view.get()
@a_uint.setter
def a_uint(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_uint)
data_view.set(value)
@property
def a_uint64(self):
data_view = og.AttributeValueHelper(self._attributes.a_uint64)
return data_view.get()
@a_uint64.setter
def a_uint64(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_uint64)
data_view.set(value)
@property
def a_uint64_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_uint64_array)
return data_view.get(reserved_element_count=self.a_uint64_array_size)
@a_uint64_array.setter
def a_uint64_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_uint64_array)
data_view.set(value)
self.a_uint64_array_size = data_view.get_array_size()
@property
def a_uint_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_uint_array)
return data_view.get(reserved_element_count=self.a_uint_array_size)
@a_uint_array.setter
def a_uint_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_uint_array)
data_view.set(value)
self.a_uint_array_size = data_view.get_array_size()
@property
def a_vectord_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_vectord_3)
return data_view.get()
@a_vectord_3.setter
def a_vectord_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_vectord_3)
data_view.set(value)
@property
def a_vectord_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_vectord_3_array)
return data_view.get(reserved_element_count=self.a_vectord_3_array_size)
@a_vectord_3_array.setter
def a_vectord_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_vectord_3_array)
data_view.set(value)
self.a_vectord_3_array_size = data_view.get_array_size()
@property
def a_vectorf_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_vectorf_3)
return data_view.get()
@a_vectorf_3.setter
def a_vectorf_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_vectorf_3)
data_view.set(value)
@property
def a_vectorf_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_vectorf_3_array)
return data_view.get(reserved_element_count=self.a_vectorf_3_array_size)
@a_vectorf_3_array.setter
def a_vectorf_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_vectorf_3_array)
data_view.set(value)
self.a_vectorf_3_array_size = data_view.get_array_size()
@property
def a_vectorh_3(self):
data_view = og.AttributeValueHelper(self._attributes.a_vectorh_3)
return data_view.get()
@a_vectorh_3.setter
def a_vectorh_3(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_vectorh_3)
data_view.set(value)
@property
def a_vectorh_3_array(self):
data_view = og.AttributeValueHelper(self._attributes.a_vectorh_3_array)
return data_view.get(reserved_element_count=self.a_vectorh_3_array_size)
@a_vectorh_3_array.setter
def a_vectorh_3_array(self, value):
data_view = og.AttributeValueHelper(self._attributes.a_vectorh_3_array)
data_view.set(value)
self.a_vectorh_3_array_size = data_view.get_array_size()
def _commit(self):
_og._commit_output_attributes_data(self._batchedWriteValues)
self._batchedWriteValues = { }
class ValuesForState(og.DynamicAttributeAccess):
"""Helper class that creates natural hierarchical access to state attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnTestAllDataTypesPodDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnTestAllDataTypesPodDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnTestAllDataTypesPodDatabase.ValuesForState(node, self.attributes.state, dynamic_attributes)
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnRandomPointsGpuDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.RandomPointsGpu
Generate an array of the specified number of points at random locations within the bounding cube. This is the same node as
OgnRandomPoints.ogn, except the memory is stored on the GPU.
"""
import carb
import numpy
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnRandomPointsGpuDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.test.RandomPointsGpu
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.maximum
inputs.minimum
inputs.pointCount
Outputs:
outputs.points
"""
# Imprint the generator and target ABI versions in the file for JIT generation
GENERATOR_VERSION = (1, 41, 3)
TARGET_VERSION = (2, 139, 12)
# This is an internal object that provides per-class storage of a per-node data dictionary
PER_NODE_DATA = {}
# This is an internal object that describes unchanging attributes in a generic way
# The values in this list are in no particular order, as a per-attribute tuple
# Name, Type, ExtendedTypeIndex, UiName, Description, Metadata,
# Is_Required, DefaultValue, Is_Deprecated, DeprecationMsg
# You should not need to access any of this data directly, use the defined database interfaces
INTERFACE = og.Database._get_interface([
('inputs:maximum', 'point3f', 0, 'Bounding Cube Maximum', 'Highest X, Y, Z values for the bounding volume', {ogn.MetadataKeys.DEFAULT: '[1.0, 1.0, 1.0]'}, True, [1.0, 1.0, 1.0], False, ''),
('inputs:minimum', 'point3f', 0, 'Bounding Cube Minimum', 'Lowest X, Y, Z values for the bounding volume', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:pointCount', 'uint64', 0, 'Point Count', 'Number of points to generate', {ogn.MetadataKeys.MEMORY_TYPE: 'cpu'}, True, 0, False, ''),
('outputs:points', 'point3f[]', 0, 'Random Points', 'Randomly generated points', {}, True, None, False, ''),
])
@classmethod
def _populate_role_data(cls):
"""Populate a role structure with the non-default roles on this node type"""
role_data = super()._populate_role_data()
role_data.inputs.maximum = og.AttributeRole.POSITION
role_data.inputs.minimum = og.AttributeRole.POSITION
role_data.outputs.points = og.AttributeRole.POSITION
return role_data
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to input attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedReadAttributes = []
self._batchedReadValues = []
@property
def maximum(self):
data_view = og.AttributeValueHelper(self._attributes.maximum)
return data_view.get(on_gpu=True)
@maximum.setter
def maximum(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.maximum)
data_view = og.AttributeValueHelper(self._attributes.maximum)
data_view.set(value, on_gpu=True)
@property
def minimum(self):
data_view = og.AttributeValueHelper(self._attributes.minimum)
return data_view.get(on_gpu=True)
@minimum.setter
def minimum(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.minimum)
data_view = og.AttributeValueHelper(self._attributes.minimum)
data_view.set(value, on_gpu=True)
@property
def pointCount(self):
data_view = og.AttributeValueHelper(self._attributes.pointCount)
return data_view.get()
@pointCount.setter
def pointCount(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.pointCount)
data_view = og.AttributeValueHelper(self._attributes.pointCount)
data_view.set(value)
def _prefetch(self):
readAttributes = self._batchedReadAttributes
newValues = _og._prefetch_input_attributes_data(readAttributes)
if len(readAttributes) == len(newValues):
self._batchedReadValues = newValues
class ValuesForOutputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to output attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self.points_size = None
self._batchedWriteValues = { }
@property
def points(self):
data_view = og.AttributeValueHelper(self._attributes.points)
return data_view.get(reserved_element_count=self.points_size, on_gpu=True)
@points.setter
def points(self, value):
data_view = og.AttributeValueHelper(self._attributes.points)
data_view.set(value, on_gpu=True)
self.points_size = data_view.get_array_size()
def _commit(self):
_og._commit_output_attributes_data(self._batchedWriteValues)
self._batchedWriteValues = { }
class ValuesForState(og.DynamicAttributeAccess):
"""Helper class that creates natural hierarchical access to state attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnRandomPointsGpuDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnRandomPointsGpuDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnRandomPointsGpuDatabase.ValuesForState(node, self.attributes.state, dynamic_attributes)
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestExecutionTaskDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestExecutionTask
Test whether node was executed within execution framework task
"""
import carb
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnTestExecutionTaskDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.test.TestExecutionTask
Class Members:
node: Node being evaluated
Attribute Value Properties:
Outputs:
outputs.result
"""
# Imprint the generator and target ABI versions in the file for JIT generation
GENERATOR_VERSION = (1, 41, 3)
TARGET_VERSION = (2, 139, 12)
# This is an internal object that provides per-class storage of a per-node data dictionary
PER_NODE_DATA = {}
# This is an internal object that describes unchanging attributes in a generic way
# The values in this list are in no particular order, as a per-attribute tuple
# Name, Type, ExtendedTypeIndex, UiName, Description, Metadata,
# Is_Required, DefaultValue, Is_Deprecated, DeprecationMsg
# You should not need to access any of this data directly, use the defined database interfaces
INTERFACE = og.Database._get_interface([
('outputs:result', 'bool', 0, 'Result', 'Set to true when this node was executed by execution framework. False otherwise', {}, True, None, False, ''),
])
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to input attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedReadAttributes = []
self._batchedReadValues = []
def _prefetch(self):
readAttributes = self._batchedReadAttributes
newValues = _og._prefetch_input_attributes_data(readAttributes)
if len(readAttributes) == len(newValues):
self._batchedReadValues = newValues
class ValuesForOutputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to output attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedWriteValues = { }
@property
def result(self):
data_view = og.AttributeValueHelper(self._attributes.result)
return data_view.get()
@result.setter
def result(self, value):
data_view = og.AttributeValueHelper(self._attributes.result)
data_view.set(value)
def _commit(self):
_og._commit_output_attributes_data(self._batchedWriteValues)
self._batchedWriteValues = { }
class ValuesForState(og.DynamicAttributeAccess):
"""Helper class that creates natural hierarchical access to state attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnTestExecutionTaskDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnTestExecutionTaskDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnTestExecutionTaskDatabase.ValuesForState(node, self.attributes.state, dynamic_attributes)
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestTypeResolutionDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TypeResolution
Test node, explicitly constructed to make the attribute type resolution mechanism testable. It has output attributes with
union and any types whose type will be resolved at runtime when they are connected to inputs with a fixed type. The extra
string output provides the resolution information to the test script for verification
"""
from typing import Any
import carb
import numpy
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnTestTypeResolutionDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.test.TypeResolution
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.anyValueIn
Outputs:
outputs.anyValue
outputs.arrayValue
outputs.mixedValue
outputs.resolvedType
outputs.tupleArrayValue
outputs.tupleValue
outputs.value
"""
# Imprint the generator and target ABI versions in the file for JIT generation
GENERATOR_VERSION = (1, 41, 3)
TARGET_VERSION = (2, 139, 12)
# This is an internal object that provides per-class storage of a per-node data dictionary
PER_NODE_DATA = {}
# This is an internal object that describes unchanging attributes in a generic way
# The values in this list are in no particular order, as a per-attribute tuple
# Name, Type, ExtendedTypeIndex, UiName, Description, Metadata,
# Is_Required, DefaultValue, Is_Deprecated, DeprecationMsg
# You should not need to access any of this data directly, use the defined database interfaces
INTERFACE = og.Database._get_interface([
('inputs:anyValueIn', 'any', 2, None, 'Input that can resolve to any type. Internally the node couples \nthe types of inputs:anyValueIn -> outputs:anyValue. Meaning if one is resolved it will\nautomatically resolve the other', {}, True, None, False, ''),
('outputs:anyValue', 'any', 2, None, 'Output that can resolve to any type at all', {}, True, None, False, ''),
('outputs:arrayValue', 'double[],float[],int64[],int[],uint64[],uint[]', 1, None, 'Output that only resolves to one of the numeric array types.', {}, True, None, False, ''),
('outputs:mixedValue', 'float,float[3],float[3][],float[]', 1, None, 'Output that can resolve to data of different shapes.', {}, True, None, False, ''),
('outputs:resolvedType', 'token[]', 0, None, "Array of strings representing the output attribute's type resolutions.\nThe array items consist of comma-separated pairs of strings representing\nthe output attribute name and the type to which it is currently resolved.\ne.g. if the attribute 'foo' is an integer there would be one entry in the array\nwith the string 'foo,int'", {}, True, None, False, ''),
('outputs:tupleArrayValue', 'double[3][],float[3][],int[3][]', 1, None, 'Output that only resolves to one of the numeric tuple array types.', {}, True, None, False, ''),
('outputs:tupleValue', 'double[3],float[3],int[3]', 1, None, 'Output that only resolves to one of the numeric tuple types.', {}, True, None, False, ''),
('outputs:value', 'double,float,int,int64,uint,uint64', 1, None, 'Output that only resolves to one of the numeric types.', {}, True, None, False, ''),
])
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to input attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedReadAttributes = []
self._batchedReadValues = []
@property
def anyValueIn(self) -> og.RuntimeAttribute:
"""Get the runtime wrapper class for the attribute inputs.anyValueIn"""
return og.RuntimeAttribute(self._attributes.anyValueIn.get_attribute_data(), self._context, True)
@anyValueIn.setter
def anyValueIn(self, value_to_set: Any):
"""Assign another attribute's value to outputs.anyValueIn"""
if isinstance(value_to_set, og.RuntimeAttribute):
self.anyValueIn.value = value_to_set.value
else:
self.anyValueIn.value = value_to_set
def _prefetch(self):
readAttributes = self._batchedReadAttributes
newValues = _og._prefetch_input_attributes_data(readAttributes)
if len(readAttributes) == len(newValues):
self._batchedReadValues = newValues
class ValuesForOutputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to output attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self.resolvedType_size = None
self._batchedWriteValues = { }
@property
def anyValue(self) -> og.RuntimeAttribute:
"""Get the runtime wrapper class for the attribute outputs.anyValue"""
return og.RuntimeAttribute(self._attributes.anyValue.get_attribute_data(), self._context, False)
@anyValue.setter
def anyValue(self, value_to_set: Any):
"""Assign another attribute's value to outputs.anyValue"""
if isinstance(value_to_set, og.RuntimeAttribute):
self.anyValue.value = value_to_set.value
else:
self.anyValue.value = value_to_set
@property
def arrayValue(self) -> og.RuntimeAttribute:
"""Get the runtime wrapper class for the attribute outputs.arrayValue"""
return og.RuntimeAttribute(self._attributes.arrayValue.get_attribute_data(), self._context, False)
@arrayValue.setter
def arrayValue(self, value_to_set: Any):
"""Assign another attribute's value to outputs.arrayValue"""
if isinstance(value_to_set, og.RuntimeAttribute):
self.arrayValue.value = value_to_set.value
else:
self.arrayValue.value = value_to_set
@property
def mixedValue(self) -> og.RuntimeAttribute:
"""Get the runtime wrapper class for the attribute outputs.mixedValue"""
return og.RuntimeAttribute(self._attributes.mixedValue.get_attribute_data(), self._context, False)
@mixedValue.setter
def mixedValue(self, value_to_set: Any):
"""Assign another attribute's value to outputs.mixedValue"""
if isinstance(value_to_set, og.RuntimeAttribute):
self.mixedValue.value = value_to_set.value
else:
self.mixedValue.value = value_to_set
@property
def resolvedType(self):
data_view = og.AttributeValueHelper(self._attributes.resolvedType)
return data_view.get(reserved_element_count=self.resolvedType_size)
@resolvedType.setter
def resolvedType(self, value):
data_view = og.AttributeValueHelper(self._attributes.resolvedType)
data_view.set(value)
self.resolvedType_size = data_view.get_array_size()
@property
def tupleArrayValue(self) -> og.RuntimeAttribute:
"""Get the runtime wrapper class for the attribute outputs.tupleArrayValue"""
return og.RuntimeAttribute(self._attributes.tupleArrayValue.get_attribute_data(), self._context, False)
@tupleArrayValue.setter
def tupleArrayValue(self, value_to_set: Any):
"""Assign another attribute's value to outputs.tupleArrayValue"""
if isinstance(value_to_set, og.RuntimeAttribute):
self.tupleArrayValue.value = value_to_set.value
else:
self.tupleArrayValue.value = value_to_set
@property
def tupleValue(self) -> og.RuntimeAttribute:
"""Get the runtime wrapper class for the attribute outputs.tupleValue"""
return og.RuntimeAttribute(self._attributes.tupleValue.get_attribute_data(), self._context, False)
@tupleValue.setter
def tupleValue(self, value_to_set: Any):
"""Assign another attribute's value to outputs.tupleValue"""
if isinstance(value_to_set, og.RuntimeAttribute):
self.tupleValue.value = value_to_set.value
else:
self.tupleValue.value = value_to_set
@property
def value(self) -> og.RuntimeAttribute:
"""Get the runtime wrapper class for the attribute outputs.value"""
return og.RuntimeAttribute(self._attributes.value.get_attribute_data(), self._context, False)
@value.setter
def value(self, value_to_set: Any):
"""Assign another attribute's value to outputs.value"""
if isinstance(value_to_set, og.RuntimeAttribute):
self.value.value = value_to_set.value
else:
self.value.value = value_to_set
def _commit(self):
_og._commit_output_attributes_data(self._batchedWriteValues)
self._batchedWriteValues = { }
class ValuesForState(og.DynamicAttributeAccess):
"""Helper class that creates natural hierarchical access to state attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnTestTypeResolutionDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnTestTypeResolutionDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnTestTypeResolutionDatabase.ValuesForState(node, self.attributes.state, dynamic_attributes)
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestGracefulShutdownDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestGracefulShutdown
Test node that exercises the internal state in such a way that if the extension shuts down before the state can be released
on the nodes it will produce an error. Test scripts can use this to verify that the extension does not shut down prematurely,
giving its nodes a chance to release any resources they may have acquired for their internal state.
"""
import carb
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnTestGracefulShutdownDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.test.TestGracefulShutdown
Class Members:
node: Node being evaluated
"""
# Imprint the generator and target ABI versions in the file for JIT generation
GENERATOR_VERSION = (1, 41, 3)
TARGET_VERSION = (2, 139, 12)
# This is an internal object that provides per-class storage of a per-node data dictionary
PER_NODE_DATA = {}
# This is an internal object that describes unchanging attributes in a generic way
# The values in this list are in no particular order, as a per-attribute tuple
# Name, Type, ExtendedTypeIndex, UiName, Description, Metadata,
# Is_Required, DefaultValue, Is_Deprecated, DeprecationMsg
# You should not need to access any of this data directly, use the defined database interfaces
INTERFACE = og.Database._get_interface([
])
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to input attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedReadAttributes = []
self._batchedReadValues = []
def _prefetch(self):
readAttributes = self._batchedReadAttributes
newValues = _og._prefetch_input_attributes_data(readAttributes)
if len(readAttributes) == len(newValues):
self._batchedReadValues = newValues
class ValuesForOutputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to output attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedWriteValues = { }
def _commit(self):
_og._commit_output_attributes_data(self._batchedWriteValues)
self._batchedWriteValues = { }
class ValuesForState(og.DynamicAttributeAccess):
"""Helper class that creates natural hierarchical access to state attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnTestGracefulShutdownDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnTestGracefulShutdownDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnTestGracefulShutdownDatabase.ValuesForState(node, self.attributes.state, dynamic_attributes)
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestCppKeywordsDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestCppKeywords
Test that attributes named for C++ keywords produce valid code
"""
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnTestCppKeywordsDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.test.TestCppKeywords
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.atomic_cancel
inputs.atomic_commit
inputs.atomic_noexcept
inputs.consteval
inputs.constinit
inputs.reflexpr
inputs.requires
Outputs:
outputs.verify
"""
# Imprint the generator and target ABI versions in the file for JIT generation
GENERATOR_VERSION = (1, 41, 3)
TARGET_VERSION = (2, 139, 12)
# This is an internal object that provides per-class storage of a per-node data dictionary
PER_NODE_DATA = {}
# This is an internal object that describes unchanging attributes in a generic way
# The values in this list are in no particular order, as a per-attribute tuple
# Name, Type, ExtendedTypeIndex, UiName, Description, Metadata,
# Is_Required, DefaultValue, Is_Deprecated, DeprecationMsg
# You should not need to access any of this data directly, use the defined database interfaces
INTERFACE = og.Database._get_interface([
('inputs:atomic_cancel', 'float', 0, None, 'KW Test for atomic_cancel', {}, True, 0.0, False, ''),
('inputs:atomic_commit', 'float', 0, None, 'KW Test for atomic_commit', {}, True, 0.0, False, ''),
('inputs:atomic_noexcept', 'float', 0, None, 'KW Test for atomic_noexcept', {}, True, 0.0, False, ''),
('inputs:consteval', 'float', 0, None, 'KW Test for consteval', {}, True, 0.0, False, ''),
('inputs:constinit', 'float', 0, None, 'KW Test for constinit', {}, True, 0.0, False, ''),
('inputs:reflexpr', 'float', 0, None, 'KW Test for reflexpr', {}, True, 0.0, False, ''),
('inputs:requires', 'float', 0, None, 'KW Test for requires', {}, True, 0.0, False, ''),
('outputs:verify', 'bool', 0, None, 'Flag to indicate that a node was created and executed', {}, True, None, False, ''),
])
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to input attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedReadAttributes = []
self._batchedReadValues = []
@property
def atomic_cancel(self):
data_view = og.AttributeValueHelper(self._attributes.atomic_cancel)
return data_view.get()
@atomic_cancel.setter
def atomic_cancel(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.atomic_cancel)
data_view = og.AttributeValueHelper(self._attributes.atomic_cancel)
data_view.set(value)
@property
def atomic_commit(self):
data_view = og.AttributeValueHelper(self._attributes.atomic_commit)
return data_view.get()
@atomic_commit.setter
def atomic_commit(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.atomic_commit)
data_view = og.AttributeValueHelper(self._attributes.atomic_commit)
data_view.set(value)
@property
def atomic_noexcept(self):
data_view = og.AttributeValueHelper(self._attributes.atomic_noexcept)
return data_view.get()
@atomic_noexcept.setter
def atomic_noexcept(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.atomic_noexcept)
data_view = og.AttributeValueHelper(self._attributes.atomic_noexcept)
data_view.set(value)
@property
def consteval(self):
data_view = og.AttributeValueHelper(self._attributes.consteval)
return data_view.get()
@consteval.setter
def consteval(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.consteval)
data_view = og.AttributeValueHelper(self._attributes.consteval)
data_view.set(value)
@property
def constinit(self):
data_view = og.AttributeValueHelper(self._attributes.constinit)
return data_view.get()
@constinit.setter
def constinit(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.constinit)
data_view = og.AttributeValueHelper(self._attributes.constinit)
data_view.set(value)
@property
def reflexpr(self):
data_view = og.AttributeValueHelper(self._attributes.reflexpr)
return data_view.get()
@reflexpr.setter
def reflexpr(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.reflexpr)
data_view = og.AttributeValueHelper(self._attributes.reflexpr)
data_view.set(value)
@property
def requires(self):
data_view = og.AttributeValueHelper(self._attributes.requires)
return data_view.get()
@requires.setter
def requires(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.requires)
data_view = og.AttributeValueHelper(self._attributes.requires)
data_view.set(value)
def _prefetch(self):
readAttributes = self._batchedReadAttributes
newValues = _og._prefetch_input_attributes_data(readAttributes)
if len(readAttributes) == len(newValues):
self._batchedReadValues = newValues
class ValuesForOutputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to output attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedWriteValues = { }
@property
def verify(self):
data_view = og.AttributeValueHelper(self._attributes.verify)
return data_view.get()
@verify.setter
def verify(self, value):
data_view = og.AttributeValueHelper(self._attributes.verify)
data_view.set(value)
def _commit(self):
_og._commit_output_attributes_data(self._batchedWriteValues)
self._batchedWriteValues = { }
class ValuesForState(og.DynamicAttributeAccess):
"""Helper class that creates natural hierarchical access to state attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnTestCppKeywordsDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnTestCppKeywordsDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnTestCppKeywordsDatabase.ValuesForState(node, self.attributes.state, dynamic_attributes)
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestAddAnyTypeAnyMemoryDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestAddAnyTypeAnyMemory
Test node that sum 2 runtime attributes that live either on the cpu or the gpu
"""
from typing import Any
import carb
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnTestAddAnyTypeAnyMemoryDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.test.TestAddAnyTypeAnyMemory
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.scalar
inputs.vec
Outputs:
outputs.outCpu
outputs.outGpu
"""
# Imprint the generator and target ABI versions in the file for JIT generation
GENERATOR_VERSION = (1, 41, 3)
TARGET_VERSION = (2, 139, 12)
# This is an internal object that provides per-class storage of a per-node data dictionary
PER_NODE_DATA = {}
# This is an internal object that describes unchanging attributes in a generic way
# The values in this list are in no particular order, as a per-attribute tuple
# Name, Type, ExtendedTypeIndex, UiName, Description, Metadata,
# Is_Required, DefaultValue, Is_Deprecated, DeprecationMsg
# You should not need to access any of this data directly, use the defined database interfaces
INTERFACE = og.Database._get_interface([
('inputs:scalar', 'double,float', 1, None, 'A scalar to add to each vector component', {ogn.MetadataKeys.MEMORY_TYPE: 'any'}, True, None, False, ''),
('inputs:vec', 'double[3],float[3]', 1, None, 'vector[3] Input ', {ogn.MetadataKeys.MEMORY_TYPE: 'any'}, True, None, False, ''),
('outputs:outCpu', 'double[3],float[3]', 1, None, 'The result of the scalar added to each component of the vector on the CPU', {ogn.MetadataKeys.MEMORY_TYPE: 'cpu'}, True, None, False, ''),
('outputs:outGpu', 'double[3],float[3]', 1, None, 'The result of the scalar added to each component of the vector on the GPU', {ogn.MetadataKeys.MEMORY_TYPE: 'cuda'}, True, None, False, ''),
])
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to input attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedReadAttributes = []
self._batchedReadValues = []
@property
def scalar(self) -> og.RuntimeAttribute:
"""Get the runtime wrapper class for the attribute inputs.scalar"""
return og.RuntimeAttribute(self._attributes.scalar.get_attribute_data(), self._context, True)
@scalar.setter
def scalar(self, value_to_set: Any):
"""Assign another attribute's value to outputs.scalar"""
if isinstance(value_to_set, og.RuntimeAttribute):
self.scalar.value = value_to_set.value
else:
self.scalar.value = value_to_set
@property
def vec(self) -> og.RuntimeAttribute:
"""Get the runtime wrapper class for the attribute inputs.vec"""
return og.RuntimeAttribute(self._attributes.vec.get_attribute_data(), self._context, True)
@vec.setter
def vec(self, value_to_set: Any):
"""Assign another attribute's value to outputs.vec"""
if isinstance(value_to_set, og.RuntimeAttribute):
self.vec.value = value_to_set.value
else:
self.vec.value = value_to_set
def _prefetch(self):
readAttributes = self._batchedReadAttributes
newValues = _og._prefetch_input_attributes_data(readAttributes)
if len(readAttributes) == len(newValues):
self._batchedReadValues = newValues
class ValuesForOutputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to output attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedWriteValues = { }
@property
def outCpu(self) -> og.RuntimeAttribute:
"""Get the runtime wrapper class for the attribute outputs.outCpu"""
return og.RuntimeAttribute(self._attributes.outCpu.get_attribute_data(), self._context, False)
@outCpu.setter
def outCpu(self, value_to_set: Any):
"""Assign another attribute's value to outputs.outCpu"""
if isinstance(value_to_set, og.RuntimeAttribute):
self.outCpu.value = value_to_set.value
else:
self.outCpu.value = value_to_set
@property
def outGpu(self) -> og.RuntimeAttribute:
"""Get the runtime wrapper class for the attribute outputs.outGpu"""
return og.RuntimeAttribute(self._attributes.outGpu.get_attribute_data(), self._context, False)
@outGpu.setter
def outGpu(self, value_to_set: Any):
"""Assign another attribute's value to outputs.outGpu"""
if isinstance(value_to_set, og.RuntimeAttribute):
self.outGpu.value = value_to_set.value
else:
self.outGpu.value = value_to_set
def _commit(self):
_og._commit_output_attributes_data(self._batchedWriteValues)
self._batchedWriteValues = { }
class ValuesForState(og.DynamicAttributeAccess):
"""Helper class that creates natural hierarchical access to state attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnTestAddAnyTypeAnyMemoryDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnTestAddAnyTypeAnyMemoryDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnTestAddAnyTypeAnyMemoryDatabase.ValuesForState(node, self.attributes.state, dynamic_attributes)
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestDeformerDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestDeformer
Test deformer node that applies a sine wave to a mesh. Set up for Realm processing in the compute(), and will not compute
if connected to upstream node of same type with multiplier set to zero - for testing of dynamic scheduling
"""
import carb
import numpy
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnTestDeformerDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.test.TestDeformer
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.multiplier
inputs.points
inputs.wavelength
Outputs:
outputs.points
"""
# Imprint the generator and target ABI versions in the file for JIT generation
GENERATOR_VERSION = (1, 41, 3)
TARGET_VERSION = (2, 139, 12)
# This is an internal object that provides per-class storage of a per-node data dictionary
PER_NODE_DATA = {}
# This is an internal object that describes unchanging attributes in a generic way
# The values in this list are in no particular order, as a per-attribute tuple
# Name, Type, ExtendedTypeIndex, UiName, Description, Metadata,
# Is_Required, DefaultValue, Is_Deprecated, DeprecationMsg
# You should not need to access any of this data directly, use the defined database interfaces
INTERFACE = og.Database._get_interface([
('inputs:multiplier', 'float', 0, None, 'Amplitude of sinusoidal deformer function', {ogn.MetadataKeys.DEFAULT: '0.7'}, True, 0.7, False, ''),
('inputs:points', 'point3f[]', 0, None, 'Set of points to be deformed', {}, True, [], False, ''),
('inputs:wavelength', 'float', 0, None, 'Wavelength of sinusodal deformer function', {ogn.MetadataKeys.DEFAULT: '50.0'}, True, 50.0, False, ''),
('outputs:points', 'point3f[]', 0, None, 'Set of deformed points', {}, True, None, False, ''),
])
@classmethod
def _populate_role_data(cls):
"""Populate a role structure with the non-default roles on this node type"""
role_data = super()._populate_role_data()
role_data.inputs.points = og.AttributeRole.POSITION
role_data.outputs.points = og.AttributeRole.POSITION
return role_data
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to input attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedReadAttributes = []
self._batchedReadValues = []
@property
def multiplier(self):
data_view = og.AttributeValueHelper(self._attributes.multiplier)
return data_view.get()
@multiplier.setter
def multiplier(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.multiplier)
data_view = og.AttributeValueHelper(self._attributes.multiplier)
data_view.set(value)
@property
def points(self):
data_view = og.AttributeValueHelper(self._attributes.points)
return data_view.get()
@points.setter
def points(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.points)
data_view = og.AttributeValueHelper(self._attributes.points)
data_view.set(value)
self.points_size = data_view.get_array_size()
@property
def wavelength(self):
data_view = og.AttributeValueHelper(self._attributes.wavelength)
return data_view.get()
@wavelength.setter
def wavelength(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.wavelength)
data_view = og.AttributeValueHelper(self._attributes.wavelength)
data_view.set(value)
def _prefetch(self):
readAttributes = self._batchedReadAttributes
newValues = _og._prefetch_input_attributes_data(readAttributes)
if len(readAttributes) == len(newValues):
self._batchedReadValues = newValues
class ValuesForOutputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to output attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self.points_size = None
self._batchedWriteValues = { }
@property
def points(self):
data_view = og.AttributeValueHelper(self._attributes.points)
return data_view.get(reserved_element_count=self.points_size)
@points.setter
def points(self, value):
data_view = og.AttributeValueHelper(self._attributes.points)
data_view.set(value)
self.points_size = data_view.get_array_size()
def _commit(self):
_og._commit_output_attributes_data(self._batchedWriteValues)
self._batchedWriteValues = { }
class ValuesForState(og.DynamicAttributeAccess):
"""Helper class that creates natural hierarchical access to state attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnTestDeformerDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnTestDeformerDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnTestDeformerDatabase.ValuesForState(node, self.attributes.state, dynamic_attributes)
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnPerturbPointsPyDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.PerturbPointsPy
Randomly modify positions on a set of points
"""
import carb
import numpy
import sys
import traceback
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnPerturbPointsPyDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.test.PerturbPointsPy
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.maximum
inputs.minimum
inputs.percentModified
inputs.points
Outputs:
outputs.points
"""
# Imprint the generator and target ABI versions in the file for JIT generation
GENERATOR_VERSION = (1, 41, 3)
TARGET_VERSION = (2, 139, 12)
# This is an internal object that provides per-class storage of a per-node data dictionary
PER_NODE_DATA = {}
# This is an internal object that describes unchanging attributes in a generic way
# The values in this list are in no particular order, as a per-attribute tuple
# Name, Type, ExtendedTypeIndex, UiName, Description, Metadata,
# Is_Required, DefaultValue, Is_Deprecated, DeprecationMsg
# You should not need to access any of this data directly, use the defined database interfaces
INTERFACE = og.Database._get_interface([
('inputs:maximum', 'point3f', 0, 'Perturb Maximum', 'Maximum values of the perturbation', {ogn.MetadataKeys.DEFAULT: '[1.0, 1.0, 1.0]'}, True, [1.0, 1.0, 1.0], False, ''),
('inputs:minimum', 'point3f', 0, 'Perturb Minimum', 'Minimum values of the perturbation', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:percentModified', 'float', 0, 'Percentage Modified', 'Percentage of points to modify, decided by striding across point set', {ogn.MetadataKeys.DEFAULT: '100.0'}, True, 100.0, False, ''),
('inputs:points', 'point3f[]', 0, 'Original Points', 'Points to be perturbed', {}, True, [], False, ''),
('outputs:points', 'point3f[]', 0, 'Perturbed Points', 'Points that were perturbed', {}, True, None, False, ''),
])
@classmethod
def _populate_role_data(cls):
"""Populate a role structure with the non-default roles on this node type"""
role_data = super()._populate_role_data()
role_data.inputs.maximum = og.AttributeRole.POSITION
role_data.inputs.minimum = og.AttributeRole.POSITION
role_data.inputs.points = og.AttributeRole.POSITION
role_data.outputs.points = og.AttributeRole.POSITION
return role_data
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = {"maximum", "minimum", "percentModified", "_setting_locked", "_batchedReadAttributes", "_batchedReadValues"}
"""Helper class that creates natural hierarchical access to input attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedReadAttributes = [self._attributes.maximum, self._attributes.minimum, self._attributes.percentModified]
self._batchedReadValues = [[1.0, 1.0, 1.0], [0.0, 0.0, 0.0], 100.0]
@property
def points(self):
data_view = og.AttributeValueHelper(self._attributes.points)
return data_view.get()
@points.setter
def points(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.points)
data_view = og.AttributeValueHelper(self._attributes.points)
data_view.set(value)
self.points_size = data_view.get_array_size()
@property
def maximum(self):
return self._batchedReadValues[0]
@maximum.setter
def maximum(self, value):
self._batchedReadValues[0] = value
@property
def minimum(self):
return self._batchedReadValues[1]
@minimum.setter
def minimum(self, value):
self._batchedReadValues[1] = value
@property
def percentModified(self):
return self._batchedReadValues[2]
@percentModified.setter
def percentModified(self, value):
self._batchedReadValues[2] = value
def __getattr__(self, item: str):
if item in self.LOCAL_PROPERTY_NAMES:
return object.__getattribute__(self, item)
else:
return super().__getattr__(item)
def __setattr__(self, item: str, new_value):
if item in self.LOCAL_PROPERTY_NAMES:
object.__setattr__(self, item, new_value)
else:
super().__setattr__(item, new_value)
def _prefetch(self):
readAttributes = self._batchedReadAttributes
newValues = _og._prefetch_input_attributes_data(readAttributes)
if len(readAttributes) == len(newValues):
self._batchedReadValues = newValues
class ValuesForOutputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to output attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self.points_size = None
self._batchedWriteValues = { }
@property
def points(self):
data_view = og.AttributeValueHelper(self._attributes.points)
return data_view.get(reserved_element_count=self.points_size)
@points.setter
def points(self, value):
data_view = og.AttributeValueHelper(self._attributes.points)
data_view.set(value)
self.points_size = data_view.get_array_size()
def _commit(self):
_og._commit_output_attributes_data(self._batchedWriteValues)
self._batchedWriteValues = { }
class ValuesForState(og.DynamicAttributeAccess):
"""Helper class that creates natural hierarchical access to state attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnPerturbPointsPyDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnPerturbPointsPyDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnPerturbPointsPyDatabase.ValuesForState(node, self.attributes.state, dynamic_attributes)
class abi:
"""Class defining the ABI interface for the node type"""
@staticmethod
def get_node_type():
get_node_type_function = getattr(OgnPerturbPointsPyDatabase.NODE_TYPE_CLASS, 'get_node_type', None)
if callable(get_node_type_function):
return get_node_type_function()
return 'omni.graph.test.PerturbPointsPy'
@staticmethod
def compute(context, node):
def database_valid():
return True
try:
per_node_data = OgnPerturbPointsPyDatabase.PER_NODE_DATA[node.node_id()]
db = per_node_data.get('_db')
if db is None:
db = OgnPerturbPointsPyDatabase(node)
per_node_data['_db'] = db
if not database_valid():
per_node_data['_db'] = None
return False
except:
db = OgnPerturbPointsPyDatabase(node)
try:
compute_function = getattr(OgnPerturbPointsPyDatabase.NODE_TYPE_CLASS, 'compute', None)
if callable(compute_function) and compute_function.__code__.co_argcount > 1:
return compute_function(context, node)
db.inputs._prefetch()
db.inputs._setting_locked = True
with og.in_compute():
return OgnPerturbPointsPyDatabase.NODE_TYPE_CLASS.compute(db)
except Exception as error:
stack_trace = "".join(traceback.format_tb(sys.exc_info()[2].tb_next))
db.log_error(f'Assertion raised in compute - {error}\n{stack_trace}', add_context=False)
finally:
db.inputs._setting_locked = False
db.outputs._commit()
return False
@staticmethod
def initialize(context, node):
OgnPerturbPointsPyDatabase._initialize_per_node_data(node)
initialize_function = getattr(OgnPerturbPointsPyDatabase.NODE_TYPE_CLASS, 'initialize', None)
if callable(initialize_function):
initialize_function(context, node)
per_node_data = OgnPerturbPointsPyDatabase.PER_NODE_DATA[node.node_id()]
def on_connection_or_disconnection(*args):
per_node_data['_db'] = None
node.register_on_connected_callback(on_connection_or_disconnection)
node.register_on_disconnected_callback(on_connection_or_disconnection)
@staticmethod
def release(node):
release_function = getattr(OgnPerturbPointsPyDatabase.NODE_TYPE_CLASS, 'release', None)
if callable(release_function):
release_function(node)
OgnPerturbPointsPyDatabase._release_per_node_data(node)
@staticmethod
def release_instance(node, target):
OgnPerturbPointsPyDatabase._release_per_node_instance_data(node, target)
@staticmethod
def update_node_version(context, node, old_version, new_version):
update_node_version_function = getattr(OgnPerturbPointsPyDatabase.NODE_TYPE_CLASS, 'update_node_version', None)
if callable(update_node_version_function):
return update_node_version_function(context, node, old_version, new_version)
return False
@staticmethod
def initialize_type(node_type):
initialize_type_function = getattr(OgnPerturbPointsPyDatabase.NODE_TYPE_CLASS, 'initialize_type', None)
needs_initializing = True
if callable(initialize_type_function):
needs_initializing = initialize_type_function(node_type)
if needs_initializing:
node_type.set_metadata(ogn.MetadataKeys.EXTENSION, "omni.graph.test")
node_type.set_metadata(ogn.MetadataKeys.UI_NAME, "Python Test Node: Randomly Perturb Points")
node_type.set_metadata(ogn.MetadataKeys.CATEGORIES, "internal:test")
node_type.set_metadata(ogn.MetadataKeys.DESCRIPTION, "Randomly modify positions on a set of points")
node_type.set_metadata(ogn.MetadataKeys.EXCLUSIONS, "tests,usd,docs")
node_type.set_metadata(ogn.MetadataKeys.LANGUAGE, "Python")
icon_path = carb.tokens.get_tokens_interface().resolve("${omni.graph.test}")
icon_path = icon_path + '/' + "ogn/icons/omni.graph.test.PerturbPointsPy.svg"
node_type.set_metadata(ogn.MetadataKeys.ICON_PATH, icon_path)
OgnPerturbPointsPyDatabase.INTERFACE.add_to_node_type(node_type)
@staticmethod
def on_connection_type_resolve(node):
on_connection_type_resolve_function = getattr(OgnPerturbPointsPyDatabase.NODE_TYPE_CLASS, 'on_connection_type_resolve', None)
if callable(on_connection_type_resolve_function):
on_connection_type_resolve_function(node)
NODE_TYPE_CLASS = None
@staticmethod
def register(node_type_class):
OgnPerturbPointsPyDatabase.NODE_TYPE_CLASS = node_type_class
og.register_node_type(OgnPerturbPointsPyDatabase.abi, 1)
@staticmethod
def deregister():
og.deregister_node_type("omni.graph.test.PerturbPointsPy")
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnBundleConsumerDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.BundleConsumer
Node that consumes bundle from producer for change tracking
"""
import carb
import carb
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnBundleConsumerDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.test.BundleConsumer
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.bundle
Outputs:
outputs.bundle
outputs.hasOutputBundleChanged
"""
# Imprint the generator and target ABI versions in the file for JIT generation
GENERATOR_VERSION = (1, 41, 3)
TARGET_VERSION = (2, 139, 12)
# This is an internal object that provides per-class storage of a per-node data dictionary
PER_NODE_DATA = {}
# This is an internal object that describes unchanging attributes in a generic way
# The values in this list are in no particular order, as a per-attribute tuple
# Name, Type, ExtendedTypeIndex, UiName, Description, Metadata,
# Is_Required, DefaultValue, Is_Deprecated, DeprecationMsg
# You should not need to access any of this data directly, use the defined database interfaces
INTERFACE = og.Database._get_interface([
('inputs:bundle', 'bundle', 0, None, 'Input Bundle', {}, True, None, False, ''),
('outputs:bundle', 'bundle', 0, None, 'Output Bundle', {}, True, None, False, ''),
('outputs:hasOutputBundleChanged', 'bool', 0, None, 'Flag to detect if output bundle was updated.', {ogn.MetadataKeys.DEFAULT: 'false'}, True, False, False, ''),
])
@classmethod
def _populate_role_data(cls):
"""Populate a role structure with the non-default roles on this node type"""
role_data = super()._populate_role_data()
role_data.inputs.bundle = og.AttributeRole.BUNDLE
role_data.outputs.bundle = og.AttributeRole.BUNDLE
return role_data
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to input attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self.__bundles = og.BundleContainer(context, node, attributes, [], read_only=True, gpu_ptr_kinds={})
self._batchedReadAttributes = []
self._batchedReadValues = []
@property
def bundle(self) -> og.BundleContents:
"""Get the bundle wrapper class for the attribute inputs.bundle"""
return self.__bundles.bundle
def _prefetch(self):
readAttributes = self._batchedReadAttributes
newValues = _og._prefetch_input_attributes_data(readAttributes)
if len(readAttributes) == len(newValues):
self._batchedReadValues = newValues
class ValuesForOutputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to output attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self.__bundles = og.BundleContainer(context, node, attributes, [], read_only=False, gpu_ptr_kinds={})
self._batchedWriteValues = { }
@property
def bundle(self) -> og.BundleContents:
"""Get the bundle wrapper class for the attribute outputs.bundle"""
return self.__bundles.bundle
@bundle.setter
def bundle(self, bundle: og.BundleContents):
"""Overwrite the bundle attribute outputs.bundle with a new bundle"""
if not isinstance(bundle, og.BundleContents):
carb.log_error("Only bundle attributes can be assigned to another bundle attribute")
self.__bundles.bundle.bundle = bundle
@property
def hasOutputBundleChanged(self):
data_view = og.AttributeValueHelper(self._attributes.hasOutputBundleChanged)
return data_view.get()
@hasOutputBundleChanged.setter
def hasOutputBundleChanged(self, value):
data_view = og.AttributeValueHelper(self._attributes.hasOutputBundleChanged)
data_view.set(value)
def _commit(self):
_og._commit_output_attributes_data(self._batchedWriteValues)
self._batchedWriteValues = { }
class ValuesForState(og.DynamicAttributeAccess):
"""Helper class that creates natural hierarchical access to state attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnBundleConsumerDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnBundleConsumerDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnBundleConsumerDatabase.ValuesForState(node, self.attributes.state, dynamic_attributes)
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnPerturbBundlePointsDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.PerturbBundlePoints
Randomly modify positions on all points attributes within a bundle
"""
import carb
import numpy
import carb
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnPerturbBundlePointsDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.test.PerturbBundlePoints
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.bundle
inputs.maximum
inputs.minimum
inputs.percentModified
Outputs:
outputs.bundle
"""
# Imprint the generator and target ABI versions in the file for JIT generation
GENERATOR_VERSION = (1, 41, 3)
TARGET_VERSION = (2, 139, 12)
# This is an internal object that provides per-class storage of a per-node data dictionary
PER_NODE_DATA = {}
# This is an internal object that describes unchanging attributes in a generic way
# The values in this list are in no particular order, as a per-attribute tuple
# Name, Type, ExtendedTypeIndex, UiName, Description, Metadata,
# Is_Required, DefaultValue, Is_Deprecated, DeprecationMsg
# You should not need to access any of this data directly, use the defined database interfaces
INTERFACE = og.Database._get_interface([
('inputs:bundle', 'bundle', 0, 'Original Bundle', 'Bundle containing arrays of points to be perturbed', {}, True, None, False, ''),
('inputs:maximum', 'point3f', 0, 'Perturb Maximum', 'Maximum values of the perturbation', {ogn.MetadataKeys.DEFAULT: '[1.0, 1.0, 1.0]'}, True, [1.0, 1.0, 1.0], False, ''),
('inputs:minimum', 'point3f', 0, 'Perturb Minimum', 'Minimum values of the perturbation', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:percentModified', 'float', 0, 'Percentage Modified', 'Percentage of points to modify, decided by striding across point set', {ogn.MetadataKeys.DEFAULT: '100.0'}, True, 100.0, False, ''),
('outputs:bundle', 'bundle', 0, 'Perturbed Bundle', 'Bundle containing arrays of points that were perturbed', {}, True, None, False, ''),
])
@classmethod
def _populate_role_data(cls):
"""Populate a role structure with the non-default roles on this node type"""
role_data = super()._populate_role_data()
role_data.inputs.bundle = og.AttributeRole.BUNDLE
role_data.inputs.maximum = og.AttributeRole.POSITION
role_data.inputs.minimum = og.AttributeRole.POSITION
role_data.outputs.bundle = og.AttributeRole.BUNDLE
return role_data
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to input attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self.__bundles = og.BundleContainer(context, node, attributes, [], read_only=True, gpu_ptr_kinds={})
self._batchedReadAttributes = []
self._batchedReadValues = []
@property
def bundle(self) -> og.BundleContents:
"""Get the bundle wrapper class for the attribute inputs.bundle"""
return self.__bundles.bundle
@property
def maximum(self):
data_view = og.AttributeValueHelper(self._attributes.maximum)
return data_view.get()
@maximum.setter
def maximum(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.maximum)
data_view = og.AttributeValueHelper(self._attributes.maximum)
data_view.set(value)
@property
def minimum(self):
data_view = og.AttributeValueHelper(self._attributes.minimum)
return data_view.get()
@minimum.setter
def minimum(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.minimum)
data_view = og.AttributeValueHelper(self._attributes.minimum)
data_view.set(value)
@property
def percentModified(self):
data_view = og.AttributeValueHelper(self._attributes.percentModified)
return data_view.get()
@percentModified.setter
def percentModified(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.percentModified)
data_view = og.AttributeValueHelper(self._attributes.percentModified)
data_view.set(value)
def _prefetch(self):
readAttributes = self._batchedReadAttributes
newValues = _og._prefetch_input_attributes_data(readAttributes)
if len(readAttributes) == len(newValues):
self._batchedReadValues = newValues
class ValuesForOutputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to output attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self.__bundles = og.BundleContainer(context, node, attributes, [], read_only=False, gpu_ptr_kinds={})
self._batchedWriteValues = { }
@property
def bundle(self) -> og.BundleContents:
"""Get the bundle wrapper class for the attribute outputs.bundle"""
return self.__bundles.bundle
@bundle.setter
def bundle(self, bundle: og.BundleContents):
"""Overwrite the bundle attribute outputs.bundle with a new bundle"""
if not isinstance(bundle, og.BundleContents):
carb.log_error("Only bundle attributes can be assigned to another bundle attribute")
self.__bundles.bundle.bundle = bundle
def _commit(self):
_og._commit_output_attributes_data(self._batchedWriteValues)
self._batchedWriteValues = { }
class ValuesForState(og.DynamicAttributeAccess):
"""Helper class that creates natural hierarchical access to state attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnPerturbBundlePointsDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnPerturbBundlePointsDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnPerturbBundlePointsDatabase.ValuesForState(node, self.attributes.state, dynamic_attributes)
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestSchedulingHintsListDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestSchedulingHintsList
Test node for scheduling hints specified by a list. Note that the scheduling hints do not correspond to what the node actually
does, they are just for testing.
"""
import carb
import sys
import traceback
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnTestSchedulingHintsListDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.test.TestSchedulingHintsList
Class Members:
node: Node being evaluated
"""
# Imprint the generator and target ABI versions in the file for JIT generation
GENERATOR_VERSION = (1, 41, 3)
TARGET_VERSION = (2, 139, 12)
# This is an internal object that provides per-class storage of a per-node data dictionary
PER_NODE_DATA = {}
# This is an internal object that describes unchanging attributes in a generic way
# The values in this list are in no particular order, as a per-attribute tuple
# Name, Type, ExtendedTypeIndex, UiName, Description, Metadata,
# Is_Required, DefaultValue, Is_Deprecated, DeprecationMsg
# You should not need to access any of this data directly, use the defined database interfaces
INTERFACE = og.Database._get_interface([
])
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to input attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedReadAttributes = []
self._batchedReadValues = []
def _prefetch(self):
readAttributes = self._batchedReadAttributes
newValues = _og._prefetch_input_attributes_data(readAttributes)
if len(readAttributes) == len(newValues):
self._batchedReadValues = newValues
class ValuesForOutputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to output attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedWriteValues = { }
def _commit(self):
_og._commit_output_attributes_data(self._batchedWriteValues)
self._batchedWriteValues = { }
class ValuesForState(og.DynamicAttributeAccess):
"""Helper class that creates natural hierarchical access to state attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnTestSchedulingHintsListDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnTestSchedulingHintsListDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnTestSchedulingHintsListDatabase.ValuesForState(node, self.attributes.state, dynamic_attributes)
class abi:
"""Class defining the ABI interface for the node type"""
@staticmethod
def get_node_type():
get_node_type_function = getattr(OgnTestSchedulingHintsListDatabase.NODE_TYPE_CLASS, 'get_node_type', None)
if callable(get_node_type_function):
return get_node_type_function()
return 'omni.graph.test.TestSchedulingHintsList'
@staticmethod
def compute(context, node):
def database_valid():
return True
try:
per_node_data = OgnTestSchedulingHintsListDatabase.PER_NODE_DATA[node.node_id()]
db = per_node_data.get('_db')
if db is None:
db = OgnTestSchedulingHintsListDatabase(node)
per_node_data['_db'] = db
if not database_valid():
per_node_data['_db'] = None
return False
except:
db = OgnTestSchedulingHintsListDatabase(node)
try:
compute_function = getattr(OgnTestSchedulingHintsListDatabase.NODE_TYPE_CLASS, 'compute', None)
if callable(compute_function) and compute_function.__code__.co_argcount > 1:
return compute_function(context, node)
db.inputs._prefetch()
db.inputs._setting_locked = True
with og.in_compute():
return OgnTestSchedulingHintsListDatabase.NODE_TYPE_CLASS.compute(db)
except Exception as error:
stack_trace = "".join(traceback.format_tb(sys.exc_info()[2].tb_next))
db.log_error(f'Assertion raised in compute - {error}\n{stack_trace}', add_context=False)
finally:
db.inputs._setting_locked = False
db.outputs._commit()
return False
@staticmethod
def initialize(context, node):
OgnTestSchedulingHintsListDatabase._initialize_per_node_data(node)
initialize_function = getattr(OgnTestSchedulingHintsListDatabase.NODE_TYPE_CLASS, 'initialize', None)
if callable(initialize_function):
initialize_function(context, node)
per_node_data = OgnTestSchedulingHintsListDatabase.PER_NODE_DATA[node.node_id()]
def on_connection_or_disconnection(*args):
per_node_data['_db'] = None
node.register_on_connected_callback(on_connection_or_disconnection)
node.register_on_disconnected_callback(on_connection_or_disconnection)
@staticmethod
def release(node):
release_function = getattr(OgnTestSchedulingHintsListDatabase.NODE_TYPE_CLASS, 'release', None)
if callable(release_function):
release_function(node)
OgnTestSchedulingHintsListDatabase._release_per_node_data(node)
@staticmethod
def release_instance(node, target):
OgnTestSchedulingHintsListDatabase._release_per_node_instance_data(node, target)
@staticmethod
def update_node_version(context, node, old_version, new_version):
update_node_version_function = getattr(OgnTestSchedulingHintsListDatabase.NODE_TYPE_CLASS, 'update_node_version', None)
if callable(update_node_version_function):
return update_node_version_function(context, node, old_version, new_version)
return False
@staticmethod
def initialize_type(node_type):
initialize_type_function = getattr(OgnTestSchedulingHintsListDatabase.NODE_TYPE_CLASS, 'initialize_type', None)
needs_initializing = True
if callable(initialize_type_function):
needs_initializing = initialize_type_function(node_type)
if needs_initializing:
node_type.set_metadata(ogn.MetadataKeys.EXTENSION, "omni.graph.test")
node_type.set_metadata(ogn.MetadataKeys.UI_NAME, "Test Node: Scheduling Hints by List")
node_type.set_metadata(ogn.MetadataKeys.CATEGORIES, "internal:test")
node_type.set_metadata(ogn.MetadataKeys.DESCRIPTION, "Test node for scheduling hints specified by a list. Note that the scheduling hints do not correspond to what the node actually does, they are just for testing.")
node_type.set_metadata(ogn.MetadataKeys.EXCLUSIONS, "tests,usd,docs")
node_type.set_metadata(ogn.MetadataKeys.LANGUAGE, "Python")
icon_path = carb.tokens.get_tokens_interface().resolve("${omni.graph.test}")
icon_path = icon_path + '/' + "ogn/icons/omni.graph.test.TestSchedulingHintsList.svg"
node_type.set_metadata(ogn.MetadataKeys.ICON_PATH, icon_path)
__hints = node_type.get_scheduling_hints()
if __hints is not None:
__hints.thread_safety = og.eThreadSafety.E_SAFE
@staticmethod
def on_connection_type_resolve(node):
on_connection_type_resolve_function = getattr(OgnTestSchedulingHintsListDatabase.NODE_TYPE_CLASS, 'on_connection_type_resolve', None)
if callable(on_connection_type_resolve_function):
on_connection_type_resolve_function(node)
NODE_TYPE_CLASS = None
@staticmethod
def register(node_type_class):
OgnTestSchedulingHintsListDatabase.NODE_TYPE_CLASS = node_type_class
og.register_node_type(OgnTestSchedulingHintsListDatabase.abi, 1)
@staticmethod
def deregister():
og.deregister_node_type("omni.graph.test.TestSchedulingHintsList")
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestIsolateDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestIsolate
Test isolate scheduling on nodes. Currently this scheduling status is only used for nodes that have the "usd-write" scheduling
hint, i.e. write to the USD stage; for this specific test node the "usd-write" hint is a bit of a misnomer because it doesn't
actually write anything to stage.
"""
import carb
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnTestIsolateDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.test.TestIsolate
Class Members:
node: Node being evaluated
Attribute Value Properties:
Outputs:
outputs.result
"""
# Imprint the generator and target ABI versions in the file for JIT generation
GENERATOR_VERSION = (1, 41, 3)
TARGET_VERSION = (2, 139, 12)
# This is an internal object that provides per-class storage of a per-node data dictionary
PER_NODE_DATA = {}
# This is an internal object that describes unchanging attributes in a generic way
# The values in this list are in no particular order, as a per-attribute tuple
# Name, Type, ExtendedTypeIndex, UiName, Description, Metadata,
# Is_Required, DefaultValue, Is_Deprecated, DeprecationMsg
# You should not need to access any of this data directly, use the defined database interfaces
INTERFACE = og.Database._get_interface([
('outputs:result', 'bool', 0, 'Result', 'Set to true when this node was successfully executed by\nthe execution framework in isolation. False otherwise.', {}, True, None, False, ''),
])
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to input attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedReadAttributes = []
self._batchedReadValues = []
def _prefetch(self):
readAttributes = self._batchedReadAttributes
newValues = _og._prefetch_input_attributes_data(readAttributes)
if len(readAttributes) == len(newValues):
self._batchedReadValues = newValues
class ValuesForOutputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = { }
"""Helper class that creates natural hierarchical access to output attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
self._batchedWriteValues = { }
@property
def result(self):
data_view = og.AttributeValueHelper(self._attributes.result)
return data_view.get()
@result.setter
def result(self, value):
data_view = og.AttributeValueHelper(self._attributes.result)
data_view.set(value)
def _commit(self):
_og._commit_output_attributes_data(self._batchedWriteValues)
self._batchedWriteValues = { }
class ValuesForState(og.DynamicAttributeAccess):
"""Helper class that creates natural hierarchical access to state attributes"""
def __init__(self, node: og.Node, attributes, dynamic_attributes: og.DynamicAttributeInterface):
"""Initialize simplified access for the attribute data"""
context = node.get_graph().get_default_graph_context()
super().__init__(context, node, attributes, dynamic_attributes)
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnTestIsolateDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnTestIsolateDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnTestIsolateDatabase.ValuesForState(node, self.attributes.state, dynamic_attributes)
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestOptionalExtended.py | """Test node exercising the 'optional' flag on extended attributes"""
import omni.graph.core as og
class OgnTestOptionalExtended:
@staticmethod
def compute(db) -> bool:
"""Moves the 'other' input to the 'other' output if both of the optional attributes are not resolved,
sets the 'other' output to the default value if only one of them is resolved, and copies the 'optional' input
to the 'optional' output if both are resolved. (Since this is a test node we can count on the resolution types
being compatible.)
"""
if db.attributes.inputs.optional.get_resolved_type().base_type == og.BaseDataType.UNKNOWN:
if db.attributes.outputs.optional.get_resolved_type().base_type == og.BaseDataType.UNKNOWN:
db.outputs.other = db.inputs.other
else:
db.outputs.other = 10
elif db.attributes.outputs.optional.get_resolved_type().base_type != og.BaseDataType.UNKNOWN:
db.outputs.optional = db.inputs.optional
else:
db.outputs.other = 10
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnBundleToTarget.cpp | // Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#include <OgnBundleToTargetDatabase.h>
namespace omni::graph::test {
class OgnBundleToTarget
{
public:
static bool compute(OgnBundleToTargetDatabase& db)
{
return true;
}
};
REGISTER_OGN_NODE()
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestIsolate.cpp | // Copyright (c) 2023 NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#include <OgnTestIsolateDatabase.h>
#include "../include/omni/graph/test/ConcurrencyState.h"
// This is the implementation of the OGN node defined in OgnTestIsolate.ogn
// This node is used as part of a unit test in ../python/tests/test_execution.py
namespace omni {
namespace graph {
namespace test {
class OgnTestIsolate
{
public:
static bool compute(OgnTestIsolateDatabase& db)
{
db.outputs.result() = false;
// Use a race condition finder to confirm that there is no collision between serial and/or isolated
// tasks. If we crash in here, that means ParallelScheduler is not respecting scheduling constraints.
omni::graph::exec::unstable::RaceConditionFinder::Scope detectIssues(getConcurrencyState().raceConditionFinder);
// In addition to ensuring that no other threads try to access the resources held by
// this node/the thread this node gets evaluated in, Isolate scheduling implies that only
// a SINGLE thread processing the current Isolate node can be computing (until said node
// is done being evaluated). To validate that this is the case, try to grab an exclusive
// lock over the global shared mutex. If this node is unable to do that (because concurrently-
// running nodes have ownership over it at the moment), we'll return false. Also, if another
// node/thread tries to access said shared mutex while this node is evaluating, the test will
// end up failing as well.
// Return early if TestIsolate can't exclusively own the shared mutex. outputs:result was already
// set to false at the start, so no need to do anything else.
if (!getConcurrencyState().sharedMutex.try_lock())
{
return true;
}
// Sleep for a while (simulate expensive compute/allows for potential race conditions to occur).
std::this_thread::sleep_for(std::chrono::milliseconds(100));
// Unlock the shared mutex, set output:result to true.
db.outputs.result() = true;
getConcurrencyState().sharedMutex.unlock();
return true;
}
};
REGISTER_OGN_NODE()
} // test
} // namespace graph
} // namespace omni
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestDynamicAttributeRawData.ogn | {
"TestDynamicAttributeRawData": {
"version": 1,
"description": "Node that tests the APIs for accessing and mutating the dynamic attributes",
"uiName": "Test Node: Exercise Dynamic Attributes",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
"exclude": ["tests", "usd", "docs"],
"inputs": {
},
"outputs": {
}
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnRandomPointsGpu.ogn | {
"RandomPointsGpu": {
"version": 1,
"description": [
"Generate an array of the specified number of points at random locations within the bounding cube.",
"This is the same node as OgnRandomPoints.ogn, except the memory is stored on the GPU."
],
"memoryType": "cuda",
"uiName": "Test Node: Generate Random Points GPU",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
"scheduling": ["threadsafe"],
"exclude": ["tests", "usd", "docs"],
"inputs": {
"pointCount": {
"type": "uint64",
"description": "Number of points to generate",
"uiName": "Point Count",
"memoryType": "cpu"
},
"minimum": {
"type": "pointf[3]",
"description": "Lowest X, Y, Z values for the bounding volume",
"uiName": "Bounding Cube Minimum",
"default": [
0.0,
0.0,
0.0
]
},
"maximum": {
"type": "pointf[3]",
"description": "Highest X, Y, Z values for the bounding volume",
"uiName": "Bounding Cube Maximum",
"default": [
1.0,
1.0,
1.0
]
}
},
"outputs": {
"points": {
"type": "pointf[3][]",
"description": "Randomly generated points",
"uiName": "Random Points"
}
}
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestSerial.cpp | // Copyright (c) 2023 NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#include "../include/omni/graph/test/ConcurrencyState.h"
#include <OgnTestSerialDatabase.h>
// This is the implementation of the OGN node defined in OgnTestSerial.ogn
namespace omni
{
namespace graph
{
namespace test
{
class OgnTestSerial
{
public:
static bool compute(OgnTestSerialDatabase& db)
{
db.outputs.result() = false;
// Use a race condition finder to confirm that there is no collision between serial and/or isolated
// tasks. If we crash in here, that means ParallelScheduler is not respecting scheduling constraints.
omni::graph::exec::unstable::RaceConditionFinder::Scope detectIssues(getConcurrencyState().raceConditionFinder);
// Sleep for a while (simulate expensive compute and give time for potential race conditions
// to arise).
std::this_thread::sleep_for(std::chrono::milliseconds(100));
db.outputs.result() = true;
return true;
}
};
REGISTER_OGN_NODE()
} // test
} // namespace graph
} // namespace omni
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestConcurrency.ogn | {
"TestConcurrency": {
"version": 1,
"description": "Test concurrency level during execution",
"uiName": "Test Node: Concurrency Level",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
"exclude": ["tests", "usd", "docs"],
"scheduling": ["threadsafe"],
"inputs": {
"expected": {
"type": "uint64",
"description": "Number of nodes expected to be executing concurrently",
"uiName": "Expected Concurrency"
},
"timeOut": {
"type": "uint64",
"description": "Time out in miliseconds used when waiting on expected concurrency level. Used to avoid deadlocks.",
"uiName": "Time Out",
"default": 100
}
},
"outputs": {
"result": {
"type": "bool",
"description": "Set to true when expected concurrency level was achieved. False on time out.",
"uiName": "Result"
}
}
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestAddAnyTypeAnyMemory.ogn | {
"TestAddAnyTypeAnyMemory": {
"version": 1,
"description": ["Test node that sum 2 runtime attributes that live either on the cpu or the gpu"],
"uiName": "Test Node: add 2 runtime attribute on the cpu or the gpu (C++)",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
"scheduling": ["threadsafe"],
"exclude": ["usd", "docs"],
"inputs": {
"vec": {
"type": ["double[3]", "float[3]"],
"memoryType": "any",
"description": "vector[3] Input "
},
"scalar": {
"type": ["double", "float"],
"memoryType": "any",
"description": "A scalar to add to each vector component"
}
},
"outputs": {
"outGpu": {
"memoryType": "cuda",
"type": ["double[3]", "float[3]"],
"description": "The result of the scalar added to each component of the vector on the GPU"
},
"outCpu": {
"memoryType": "cpu",
"type": [ "double[3]", "float[3]" ],
"description": "The result of the scalar added to each component of the vector on the CPU"
}
},
"tests": [
{ "inputs:vec": {"type" : "float[3]", "value": [2.0, 2.0, 2.0]}, "inputs:scalar": {"type" : "float", "value": 3.0},
"outputs:outCpu": {"type" : "float[3]", "value": [5.0, 5.0, 5.0]}, "outputs:outGpu": {"type" : "float[3]", "value": [5.0, 5.0, 5.0]} },
{ "inputs:vec": {"type" : "float[3]", "value": [5.0, 5.0, 5.0]}, "inputs:scalar": {"type" : "float", "value": 10.0},
"outputs:outCpu": {"type" : "float[3]", "value": [15.0, 15.0, 15.0]}, "outputs:outGpu": {"type" : "float[3]", "value": [15.0, 15.0, 15.0]} }
]
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnExecInputEnabledTest.ogn | {
"ExecInputEnabledTest": {
"version": 1,
"description": [ "Tests exec input is enabled" ],
"uiName": "ExecInputEnabledTest",
"language": "python",
"icon": {
"path": "TestNodeIcon.svg"
},
"exclude": ["usd", "docs"],
"categories": "internal:test",
"inputs": {
"execInA": {
"type": "execution",
"description": "The input execution A",
"uiName": "In A"
},
"execInB": {
"type": "execution",
"description": "The input execution B",
"uiName": "In B"
}
},
"outputs": {
"execOutA": {
"type": "execution",
"description": "The output execution A, triggered only if input A attrib was enabled",
"uiName": "Out A"
},
"execOutB": {
"type": "execution",
"description": "The output execution B, triggered only if input B attrib was enabled",
"uiName": "Out B"
}
}
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestConcurrency.cpp | // Copyright (c) 2022 NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#include <OgnTestConcurrencyDatabase.h>
#include <omni/graph/exec/unstable/IExecutionContext.h>
#include <omni/graph/exec/unstable/IExecutionCurrentThread.h>
#include <omni/graph/exec/unstable/Stamp.h>
#include "../include/omni/graph/test/ConcurrencyState.h"
#include <atomic>
#include <chrono>
#include <cstdlib>
#include <mutex>
// This is the implementation of the OGN node defined in OgnTestConcurrency.ogn
namespace omni {
namespace graph {
namespace test {
namespace
{
std::mutex g_resetMutex;
exec::unstable::SyncStamp g_currentSyncStamp;
std::atomic<uint64_t> g_currentConcurrency{0};
}
class OgnTestConcurrency
{
public:
static bool compute(OgnTestConcurrencyDatabase& db)
{
auto& result = db.outputs.result();
result = false;
// Try to access the shared mutex via a shared lock. If the node is unable to do
// that (i.e. because TestIsolate currently holds exclusive ownership), we'll
// return early with result set to false.
if (!getConcurrencyState().sharedMutex.try_lock_shared())
{
return true;
}
if (auto task = exec::unstable::getCurrentTask())
{
auto currentStamp = task->getContext()->getExecutionStamp();
if(!g_currentSyncStamp.inSync(currentStamp))
{
std::unique_lock<std::mutex> lock(g_resetMutex);
if(g_currentSyncStamp.makeSync(currentStamp))
{
g_currentConcurrency = 0;
}
}
g_currentConcurrency++;
uint64_t expectedConcurrency = db.inputs.expected();
std::chrono::milliseconds timeOut(db.inputs.timeOut());
auto start = std::chrono::high_resolution_clock::now();
std::chrono::milliseconds currentDuration;
do {
currentDuration = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::high_resolution_clock::now()-start);
if(g_currentConcurrency.load() == expectedConcurrency)
{
result = true;
break;
}
std::this_thread::yield();
} while(currentDuration < timeOut);
}
// Release the shared mutex.
getConcurrencyState().sharedMutex.unlock_shared();
return true;
}
};
REGISTER_OGN_NODE()
} // test
} // namespace graph
} // namespace omni
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestDynamicAttributeRawData.cpp | // Copyright (c) 2023 NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#include <OgnTestDynamicAttributeRawDataDatabase.h>
namespace omni {
namespace graph {
namespace test {
namespace
{
template<typename TAttribute, typename TValue>
void writeRawData(TAttribute& runtimeAttribute, TValue value)
{
uint8_t* dstData{ nullptr };
size_t size{ 0 };
runtimeAttribute.rawData(dstData, size);
memcpy(dstData, &value, size);
}
}
// This node validates the APIs for accessing and mutating the dynamic node attributes (inputs, outputs and state)
class OgnTestDynamicAttributeRawData
{
public:
static bool compute(OgnTestDynamicAttributeRawDataDatabase& db)
{
auto dynamicInputs = db.getDynamicInputs();
auto dynamicOutputs = db.getDynamicOutputs();
auto dynamicStates = db.getDynamicStates();
if (dynamicInputs.empty() || dynamicOutputs.empty() || dynamicStates.empty())
{
return false;
}
int sum = 0;
for (auto const& input : dynamicInputs)
{
ConstRawPtr dataPtr{ nullptr };
size_t size{ 0 };
input().rawData(dataPtr, size);
sum += *reinterpret_cast<int const*>(dataPtr);
}
// ensure that dynamic output and state attributes can be written to using the raw data pointer
writeRawData(dynamicOutputs[0](), sum);
writeRawData(dynamicStates[0](), sum);
return true;
}
};
REGISTER_OGN_NODE()
} // test
} // namespace graph
} // namespace omni
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestAllDataTypes.ogn | {
"TestAllDataTypes": {
"version": 1,
"description": [
"This node is meant to exercise data access for all available data types, including all",
"legal combinations of tuples, arrays, and bundle members. This node definition is a duplicate of",
"OgnTestAllDataTypesPy.ogn, except the implementation language is C++."
],
"uiName": "Test Node: All Data Types",
"icon": {
"path": "TestNodeIcon.svg"
},
"exclude": ["usd", "docs"],
"categories": "internal:test",
"inputs": {
"doNotCompute": { "description": "Prevent the compute from running", "type": "bool", "default": true },
"a_bool": { "description": "Input Attribute", "type": "bool", "default": false },
"a_bool_array": { "description": "Input Attribute", "type": "bool[]", "default": [false, true] },
"a_bundle": { "description": "Input Attribute", "type": "bundle", "optional": true },
"a_colord_3": { "description": "Input Attribute", "type": "colord[3]", "default": [1.0, 2.0, 3.0] },
"a_colord_4": { "description": "Input Attribute", "type": "colord[4]", "default": [1.0, 2.0, 3.0, 4.0] },
"a_colorf_3": { "description": "Input Attribute", "type": "colorf[3]", "default": [1.0, 2.0, 3.0] },
"a_colorf_4": { "description": "Input Attribute", "type": "colorf[4]", "default": [1.0, 2.0, 3.0, 4.0] },
"a_colorh_3": { "description": "Input Attribute", "type": "colorh[3]", "default": [1.0, 2.0, 3.0] },
"a_colorh_4": { "description": "Input Attribute", "type": "colorh[4]", "default": [1.0, 2.0, 3.0, 4.0] },
"a_colord_3_array": { "description": "Input Attribute", "type": "colord[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_colord_4_array": { "description": "Input Attribute", "type": "colord[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] },
"a_colorf_3_array": { "description": "Input Attribute", "type": "colorf[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_colorf_4_array": { "description": "Input Attribute", "type": "colorf[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] },
"a_colorh_3_array": { "description": "Input Attribute", "type": "colorh[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_colorh_4_array": { "description": "Input Attribute", "type": "colorh[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] },
"a_double": { "description": "Input Attribute", "type": "double", "default": 1.0 },
"a_double_2": { "description": "Input Attribute", "type": "double[2]", "default": [1.0, 2.0] },
"a_double_3": { "description": "Input Attribute", "type": "double[3]", "default": [1.0, 2.0, 3.0] },
"a_double_4": { "description": "Input Attribute", "type": "double[4]", "default": [1.0, 2.0, 3.0, 4.0] },
"a_double_array": { "description": "Input Attribute", "type": "double[]", "default": [1.0, 2.0] },
"a_double_2_array": { "description": "Input Attribute", "type": "double[2][]", "default": [[1.0, 2.0], [11.0, 12.0]] },
"a_double_3_array": { "description": "Input Attribute", "type": "double[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_double_4_array": { "description": "Input Attribute", "type": "double[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] },
"a_execution": { "description": "Input Attribute", "type": "execution", "default": 1 },
"a_float": { "description": "Input Attribute", "type": "float", "default": 1.0 },
"a_float_2": { "description": "Input Attribute", "type": "float[2]", "default": [1.0, 2.0] },
"a_float_3": { "description": "Input Attribute", "type": "float[3]", "default": [1.0, 2.0, 3.0] },
"a_float_4": { "description": "Input Attribute", "type": "float[4]", "default": [1.0, 2.0, 3.0, 4.0] },
"a_float_array": { "description": "Input Attribute", "type": "float[]", "default": [1.0, 2.0] },
"a_float_2_array": { "description": "Input Attribute", "type": "float[2][]", "default": [[1.0, 2.0], [11.0, 12.0]] },
"a_float_3_array": { "description": "Input Attribute", "type": "float[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_float_4_array": { "description": "Input Attribute", "type": "float[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] },
"a_frame_4": { "description": "Input Attribute", "type": "frame[4]", "default": [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]] },
"a_frame_4_array": { "description": "Input Attribute", "type": "frame[4][]", "default": [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]] },
"a_half": { "description": "Input Attribute", "type": "half", "default": 1.0 },
"a_half_2": { "description": "Input Attribute", "type": "half[2]", "default": [1.0, 2.0] },
"a_half_3": { "description": "Input Attribute", "type": "half[3]", "default": [1.0, 2.0, 3.0] },
"a_half_4": { "description": "Input Attribute", "type": "half[4]", "default": [1.0, 2.0, 3.0, 4.0] },
"a_half_array": { "description": "Input Attribute", "type": "half[]", "default": [1.0, 2.0] },
"a_half_2_array": { "description": "Input Attribute", "type": "half[2][]", "default": [[1.0, 2.0], [11.0, 12.0]] },
"a_half_3_array": { "description": "Input Attribute", "type": "half[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_half_4_array": { "description": "Input Attribute", "type": "half[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] },
"a_int": { "description": "Input Attribute", "type": "int", "default": 1 },
"a_int_2": { "description": "Input Attribute", "type": "int[2]", "default": [1, 2] },
"a_int_3": { "description": "Input Attribute", "type": "int[3]", "default": [1, 2, 3] },
"a_int_4": { "description": "Input Attribute", "type": "int[4]", "default": [1, 2, 3, 4] },
"a_int_array": { "description": "Input Attribute", "type": "int[]", "default": [1, 2] },
"a_int_2_array": { "description": "Input Attribute", "type": "int[2][]", "default": [[1, 2], [3, 4]] },
"a_int_3_array": { "description": "Input Attribute", "type": "int[3][]", "default": [[1, 2, 3], [4, 5, 6]] },
"a_int_4_array": { "description": "Input Attribute", "type": "int[4][]", "default": [[1, 2, 3, 4], [5, 6, 7, 8]] },
"a_int64": { "description": "Input Attribute", "type": "int64", "default": 12345 },
"a_int64_array": { "description": "Input Attribute", "type": "int64[]", "default": [12345, 23456] },
"a_matrixd_2": { "description": "Input Attribute", "type": "matrixd[2]", "default": [[1.0, 2.0], [3.0, 4.0]] },
"a_matrixd_3": { "description": "Input Attribute", "type": "matrixd[3]", "default": [[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]] },
"a_matrixd_4": { "description": "Input Attribute", "type": "matrixd[4]", "default": [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]] },
"a_matrixd_2_array": { "description": "Input Attribute", "type": "matrixd[2][]", "default": [[[1.0, 2.0], [3.0, 4.0]], [[11.0, 12.0], [13.0, 14.0]]] },
"a_matrixd_3_array": { "description": "Input Attribute", "type": "matrixd[3][]", "default":[[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]], [[11.0, 12.0, 13.0], [14.0, 15.0, 16.0], [17.0, 18.0, 19.0]]] },
"a_matrixd_4_array": { "description": "Input Attribute", "type": "matrixd[4][]", "default": [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]] },
"a_normald_3": { "description": "Input Attribute", "type": "normald[3]", "default": [1.0, 2.0, 3.0] },
"a_normalf_3": { "description": "Input Attribute", "type": "normalf[3]", "default": [1.0, 2.0, 3.0] },
"a_normalh_3": { "description": "Input Attribute", "type": "normalh[3]", "default": [1.0, 2.0, 3.0] },
"a_normald_3_array": { "description": "Input Attribute", "type": "normald[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_normalf_3_array": { "description": "Input Attribute", "type": "normalf[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_normalh_3_array": { "description": "Input Attribute", "type": "normalh[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_objectId": { "description": "Input Attribute", "type": "objectId", "default": 1 },
"a_objectId_array": { "description": "Input Attribute", "type": "objectId[]", "default": [1, 2] },
"a_path": { "description": "Input Attribute", "type": "path", "default": "/Input" },
"a_pointd_3": { "description": "Input Attribute", "type": "pointd[3]", "default": [1.0, 2.0, 3.0] },
"a_pointf_3": { "description": "Input Attribute", "type": "pointf[3]", "default": [1.0, 2.0, 3.0] },
"a_pointh_3": { "description": "Input Attribute", "type": "pointh[3]", "default": [1.0, 2.0, 3.0] },
"a_pointd_3_array": { "description": "Input Attribute", "type": "pointd[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_pointf_3_array": { "description": "Input Attribute", "type": "pointf[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_pointh_3_array": { "description": "Input Attribute", "type": "pointh[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_quatd_4": { "description": "Input Attribute", "type": "quatd[4]", "default": [1.0, 2.0, 3.0, 4.0] },
"a_quatf_4": { "description": "Input Attribute", "type": "quatf[4]", "default": [1.0, 2.0, 3.0, 4.0] },
"a_quath_4": { "description": "Input Attribute", "type": "quath[4]", "default": [1.0, 2.0, 3.0, 4.0] },
"a_quatd_4_array": { "description": "Input Attribute", "type": "quatd[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] },
"a_quatf_4_array": { "description": "Input Attribute", "type": "quatf[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] },
"a_quath_4_array": { "description": "Input Attribute", "type": "quath[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] },
"a_string": { "description": "Input Attribute", "type": "string", "default": "Rey\n\"Palpatine\" Skywalker" },
"a_target": { "description": "Input Attribute", "type": "target", "metadata": {"allowMultiInputs": "1"}},
"a_texcoordd_2": { "description": "Input Attribute", "type": "texcoordd[2]", "default": [1.0, 2.0] },
"a_texcoordd_3": { "description": "Input Attribute", "type": "texcoordd[3]", "default": [1.0, 2.0, 3.0] },
"a_texcoordf_2": { "description": "Input Attribute", "type": "texcoordf[2]", "default": [1.0, 2.0] },
"a_texcoordf_3": { "description": "Input Attribute", "type": "texcoordf[3]", "default": [1.0, 2.0, 3.0] },
"a_texcoordh_2": { "description": "Input Attribute", "type": "texcoordh[2]", "default": [1.0, 2.0] },
"a_texcoordh_3": { "description": "Input Attribute", "type": "texcoordh[3]", "default": [1.0, 2.0, 3.0] },
"a_texcoordd_2_array": { "description": "Input Attribute", "type": "texcoordd[2][]", "default": [[1.0, 2.0], [11.0, 12.0]] },
"a_texcoordd_3_array": { "description": "Input Attribute", "type": "texcoordd[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_texcoordf_2_array": { "description": "Input Attribute", "type": "texcoordf[2][]", "default": [[1.0, 2.0], [11.0, 12.0]] },
"a_texcoordf_3_array": { "description": "Input Attribute", "type": "texcoordf[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_texcoordh_2_array": { "description": "Input Attribute", "type": "texcoordh[2][]", "default": [[1.0, 2.0], [11.0, 12.0]] },
"a_texcoordh_3_array": { "description": "Input Attribute", "type": "texcoordh[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_timecode": { "description": "Input Attribute", "type": "timecode", "default": 1.0 },
"a_timecode_array": { "description": "Input Attribute", "type": "timecode[]", "default": [1.0, 2.0] },
"a_token": { "description": "Input Attribute", "type": "token", "default": "Sith\nLord" },
"a_token_array": { "description": "Input Attribute", "type": "token[]", "default": ["Kylo\n\"The Putz\"", "Ren"] },
"a_uchar": { "description": "Input Attribute", "type": "uchar", "default": 1 },
"a_uchar_array": { "description": "Input Attribute", "type": "uchar[]", "default": [1, 2] },
"a_uint": { "description": "Input Attribute", "type": "uint", "default": 1 },
"a_uint_array": { "description": "Input Attribute", "type": "uint[]", "default": [1, 2] },
"a_uint64": { "description": "Input Attribute", "type": "uint64", "default": 1 },
"a_uint64_array": { "description": "Input Attribute", "type": "uint64[]", "default": [1, 2] },
"a_vectord_3": { "description": "Input Attribute", "type": "vectord[3]", "default": [1.0, 2.0, 3.0] },
"a_vectorf_3": { "description": "Input Attribute", "type": "vectorf[3]", "default": [1.0, 2.0, 3.0] },
"a_vectorh_3": { "description": "Input Attribute", "type": "vectorh[3]", "default": [1.0, 2.0, 3.0] },
"a_vectord_3_array": { "description": "Input Attribute", "type": "vectord[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_vectorf_3_array": { "description": "Input Attribute", "type": "vectorf[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_vectorh_3_array": { "description": "Input Attribute", "type": "vectorh[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }
},
"outputs": {
"a_bool": { "description": "Computed Attribute", "type": "bool", "default": true },
"a_bool_array": { "description": "Computed Attribute", "type": "bool[]", "default": [true, false] },
"a_bundle": { "description": "Computed Attribute", "type": "bundle" },
"a_colord_3": { "description": "Computed Attribute", "type": "colord[3]", "default": [1.5, 2.5, 3.5] },
"a_colord_4": { "description": "Computed Attribute", "type": "colord[4]", "default": [1.5, 2.5, 3.5, 4.5] },
"a_colorf_3": { "description": "Computed Attribute", "type": "colorf[3]", "default": [1.5, 2.5, 3.5] },
"a_colorf_4": { "description": "Computed Attribute", "type": "colorf[4]", "default": [1.5, 2.5, 3.5, 4.5] },
"a_colorh_3": { "description": "Computed Attribute", "type": "colorh[3]", "default": [1.5, 2.5, 3.5] },
"a_colorh_4": { "description": "Computed Attribute", "type": "colorh[4]", "default": [1.5, 2.5, 3.5, 4.5] },
"a_colord_3_array": { "description": "Computed Attribute", "type": "colord[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_colord_4_array": { "description": "Computed Attribute", "type": "colord[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] },
"a_colorf_3_array": { "description": "Computed Attribute", "type": "colorf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_colorf_4_array": { "description": "Computed Attribute", "type": "colorf[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] },
"a_colorh_3_array": { "description": "Computed Attribute", "type": "colorh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_colorh_4_array": { "description": "Computed Attribute", "type": "colorh[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] },
"a_double": { "description": "Computed Attribute", "type": "double", "default": 1.5 },
"a_double_2": { "description": "Computed Attribute", "type": "double[2]", "default": [1.5, 2.5] },
"a_double_3": { "description": "Computed Attribute", "type": "double[3]", "default": [1.5, 2.5, 3.5] },
"a_double_4": { "description": "Computed Attribute", "type": "double[4]", "default": [1.5, 2.5, 3.5, 4.5] },
"a_double_array": { "description": "Computed Attribute", "type": "double[]", "default": [1.5, 2.5] },
"a_double_2_array": { "description": "Computed Attribute", "type": "double[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] },
"a_double_3_array": { "description": "Computed Attribute", "type": "double[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_double_4_array": { "description": "Computed Attribute", "type": "double[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] },
"a_execution": { "description": "Computed Attribute", "type": "execution", "default": 2 },
"a_float": { "description": "Computed Attribute", "type": "float", "default": 1.5 },
"a_float_2": { "description": "Computed Attribute", "type": "float[2]", "default": [1.5, 2.5] },
"a_float_3": { "description": "Computed Attribute", "type": "float[3]", "default": [1.5, 2.5, 3.5] },
"a_float_4": { "description": "Computed Attribute", "type": "float[4]", "default": [1.5, 2.5, 3.5, 4.5] },
"a_float_array": { "description": "Computed Attribute", "type": "float[]", "default": [1.5, 2.5] },
"a_float_2_array": { "description": "Computed Attribute", "type": "float[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] },
"a_float_3_array": { "description": "Computed Attribute", "type": "float[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_float_4_array": { "description": "Computed Attribute", "type": "float[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] },
"a_frame_4": { "description": "Computed Attribute", "type": "frame[4]", "default": [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]] },
"a_frame_4_array": { "description": "Computed Attribute", "type": "frame[4][]", "default": [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]] },
"a_half": { "description": "Computed Attribute", "type": "half", "default": 1.5 },
"a_half_2": { "description": "Computed Attribute", "type": "half[2]", "default": [1.5, 2.5] },
"a_half_3": { "description": "Computed Attribute", "type": "half[3]", "default": [1.5, 2.5, 3.5] },
"a_half_4": { "description": "Computed Attribute", "type": "half[4]", "default": [1.5, 2.5, 3.5, 4.5] },
"a_half_array": { "description": "Computed Attribute", "type": "half[]", "default": [1.5, 2.5] },
"a_half_2_array": { "description": "Computed Attribute", "type": "half[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] },
"a_half_3_array": { "description": "Computed Attribute", "type": "half[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_half_4_array": { "description": "Computed Attribute", "type": "half[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] },
"a_int": { "description": "Computed Attribute", "type": "int", "default": 1 },
"a_int_2": { "description": "Computed Attribute", "type": "int[2]", "default": [1, 2] },
"a_int_3": { "description": "Computed Attribute", "type": "int[3]", "default": [1, 2, 3] },
"a_int_4": { "description": "Computed Attribute", "type": "int[4]", "default": [1, 2, 3, 4] },
"a_int_array": { "description": "Computed Attribute", "type": "int[]", "default": [1, 2] },
"a_int_2_array": { "description": "Computed Attribute", "type": "int[2][]", "default": [[1, 2], [3, 4]] },
"a_int_3_array": { "description": "Computed Attribute", "type": "int[3][]", "default": [[1, 2, 3], [4, 5, 6]] },
"a_int_4_array": { "description": "Computed Attribute", "type": "int[4][]", "default": [[1, 2, 3, 4], [5, 6, 7, 8]] },
"a_int64": { "description": "Computed Attribute", "type": "int64", "default": 12345 },
"a_int64_array": { "description": "Computed Attribute", "type": "int64[]", "default": [12345, 23456] },
"a_matrixd_2": { "description": "Computed Attribute", "type": "matrixd[2]", "default": [[1.5, 2.5], [3.5, 4.5]] },
"a_matrixd_3": { "description": "Computed Attribute", "type": "matrixd[3]", "default": [[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]] },
"a_matrixd_4": { "description": "Computed Attribute", "type": "matrixd[4]", "default": [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]] },
"a_matrixd_2_array": { "description": "Computed Attribute", "type": "matrixd[2][]", "default": [[[1.5, 2.5], [3.5, 4.5]], [[11.5, 12.5], [13.5, 14.5]]] },
"a_matrixd_3_array": { "description": "Computed Attribute", "type": "matrixd[3][]", "default":[[[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]], [[11.5, 12.5, 13.5], [14.5, 15.5, 16.5], [17.5, 18.5, 19.5]]] },
"a_matrixd_4_array": { "description": "Computed Attribute", "type": "matrixd[4][]", "default": [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]] },
"a_normald_3": { "description": "Computed Attribute", "type": "normald[3]", "default": [1.5, 2.5, 3.5] },
"a_normalf_3": { "description": "Computed Attribute", "type": "normalf[3]", "default": [1.5, 2.5, 3.5] },
"a_normalh_3": { "description": "Computed Attribute", "type": "normalh[3]", "default": [1.5, 2.5, 3.5] },
"a_normald_3_array": { "description": "Computed Attribute", "type": "normald[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_normalf_3_array": { "description": "Computed Attribute", "type": "normalf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_normalh_3_array": { "description": "Computed Attribute", "type": "normalh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_objectId": { "description": "Computed Attribute", "type": "objectId", "default": 2 },
"a_objectId_array": { "description": "Computed Attribute", "type": "objectId[]", "default": [2, 3] },
"a_path": { "description": "Computed Attribute", "type": "path", "default": "/Output" },
"a_pointd_3": { "description": "Computed Attribute", "type": "pointd[3]", "default": [1.5, 2.5, 3.5] },
"a_pointf_3": { "description": "Computed Attribute", "type": "pointf[3]", "default": [1.5, 2.5, 3.5] },
"a_pointh_3": { "description": "Computed Attribute", "type": "pointh[3]", "default": [1.5, 2.5, 3.5] },
"a_pointd_3_array": { "description": "Computed Attribute", "type": "pointd[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_pointf_3_array": { "description": "Computed Attribute", "type": "pointf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_pointh_3_array": { "description": "Computed Attribute", "type": "pointh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_quatd_4": { "description": "Computed Attribute", "type": "quatd[4]", "default": [1.5, 2.5, 3.5, 4.5] },
"a_quatf_4": { "description": "Computed Attribute", "type": "quatf[4]", "default": [1.5, 2.5, 3.5, 4.5] },
"a_quath_4": { "description": "Computed Attribute", "type": "quath[4]", "default": [1.5, 2.5, 3.5, 4.5] },
"a_quatd_4_array": { "description": "Computed Attribute", "type": "quatd[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] },
"a_quatf_4_array": { "description": "Computed Attribute", "type": "quatf[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] },
"a_quath_4_array": { "description": "Computed Attribute", "type": "quath[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] },
"a_string": { "description": "Computed Attribute", "type": "string", "default": "Emperor\n\"Half\" Snoke" },
"a_target": { "description": "Computed Attribute", "type": "target"},
"a_texcoordd_2": { "description": "Computed Attribute", "type": "texcoordd[2]", "default": [1.5, 2.5] },
"a_texcoordd_3": { "description": "Computed Attribute", "type": "texcoordd[3]", "default": [1.5, 2.5, 3.5] },
"a_texcoordf_2": { "description": "Computed Attribute", "type": "texcoordf[2]", "default": [1.5, 2.5] },
"a_texcoordf_3": { "description": "Computed Attribute", "type": "texcoordf[3]", "default": [1.5, 2.5, 3.5] },
"a_texcoordh_2": { "description": "Computed Attribute", "type": "texcoordh[2]", "default": [1.5, 2.5] },
"a_texcoordh_3": { "description": "Computed Attribute", "type": "texcoordh[3]", "default": [1.5, 2.5, 3.5] },
"a_texcoordd_2_array": { "description": "Computed Attribute", "type": "texcoordd[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] },
"a_texcoordd_3_array": { "description": "Computed Attribute", "type": "texcoordd[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_texcoordf_2_array": { "description": "Computed Attribute", "type": "texcoordf[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] },
"a_texcoordf_3_array": { "description": "Computed Attribute", "type": "texcoordf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_texcoordh_2_array": { "description": "Computed Attribute", "type": "texcoordh[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] },
"a_texcoordh_3_array": { "description": "Computed Attribute", "type": "texcoordh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_timecode": { "description": "Computed Attribute", "type": "timecode", "default": 2.5 },
"a_timecode_array": { "description": "Computed Attribute", "type": "timecode[]", "default": [2.5, 3.5] },
"a_token": { "description": "Computed Attribute", "type": "token", "default": "Jedi\nMaster" },
"a_token_array": { "description": "Computed Attribute", "type": "token[]", "default": ["Luke\n\"Whiner\"", "Skywalker"] },
"a_uchar": { "description": "Computed Attribute", "type": "uchar", "default": 2 },
"a_uchar_array": { "description": "Computed Attribute", "type": "uchar[]", "default": [2, 3] },
"a_uint": { "description": "Computed Attribute", "type": "uint", "default": 2 },
"a_uint_array": { "description": "Computed Attribute", "type": "uint[]", "default": [2, 3] },
"a_uint64": { "description": "Computed Attribute", "type": "uint64", "default": 2 },
"a_uint64_array": { "description": "Computed Attribute", "type": "uint64[]", "default": [2, 3] },
"a_vectord_3": { "description": "Computed Attribute", "type": "vectord[3]", "default": [1.5, 2.5, 3.5] },
"a_vectorf_3": { "description": "Computed Attribute", "type": "vectorf[3]", "default": [1.5, 2.5, 3.5] },
"a_vectorh_3": { "description": "Computed Attribute", "type": "vectorh[3]", "default": [1.5, 2.5, 3.5] },
"a_vectord_3_array": { "description": "Computed Attribute", "type": "vectord[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_vectorf_3_array": { "description": "Computed Attribute", "type": "vectorf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_vectorh_3_array": { "description": "Computed Attribute", "type": "vectorh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }
},
"state": {
"a_firstEvaluation": { "description": "State Attribute", "type": "bool", "default": true },
"a_bool": { "description": "State Attribute", "type": "bool", "default": true },
"a_bool_array": { "description": "State Attribute", "type": "bool[]", "default": [true, false] },
"a_bundle": { "description": "State Attribute", "type": "bundle" },
"a_colord_3": { "description": "State Attribute", "type": "colord[3]", "default": [1.5, 2.5, 3.5] },
"a_colord_4": { "description": "State Attribute", "type": "colord[4]", "default": [1.5, 2.5, 3.5, 4.5] },
"a_colorf_3": { "description": "State Attribute", "type": "colorf[3]", "default": [1.5, 2.5, 3.5] },
"a_colorf_4": { "description": "State Attribute", "type": "colorf[4]", "default": [1.5, 2.5, 3.5, 4.5] },
"a_colorh_3": { "description": "State Attribute", "type": "colorh[3]", "default": [1.5, 2.5, 3.5] },
"a_colorh_4": { "description": "State Attribute", "type": "colorh[4]", "default": [1.5, 2.5, 3.5, 4.5] },
"a_colord_3_array": { "description": "State Attribute", "type": "colord[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_colord_4_array": { "description": "State Attribute", "type": "colord[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] },
"a_colorf_3_array": { "description": "State Attribute", "type": "colorf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_colorf_4_array": { "description": "State Attribute", "type": "colorf[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] },
"a_colorh_3_array": { "description": "State Attribute", "type": "colorh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_colorh_4_array": { "description": "State Attribute", "type": "colorh[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] },
"a_double": { "description": "State Attribute", "type": "double", "default": 1.5 },
"a_double_2": { "description": "State Attribute", "type": "double[2]", "default": [1.5, 2.5] },
"a_double_3": { "description": "State Attribute", "type": "double[3]", "default": [1.5, 2.5, 3.5] },
"a_double_4": { "description": "State Attribute", "type": "double[4]", "default": [1.5, 2.5, 3.5, 4.5] },
"a_double_array": { "description": "State Attribute", "type": "double[]", "default": [1.5, 2.5] },
"a_double_2_array": { "description": "State Attribute", "type": "double[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] },
"a_double_3_array": { "description": "State Attribute", "type": "double[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_double_4_array": { "description": "State Attribute", "type": "double[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] },
"a_execution": { "description": "State Attribute", "type": "execution", "default": 2 },
"a_float": { "description": "State Attribute", "type": "float", "default": 1.5 },
"a_float_2": { "description": "State Attribute", "type": "float[2]", "default": [1.5, 2.5] },
"a_float_3": { "description": "State Attribute", "type": "float[3]", "default": [1.5, 2.5, 3.5] },
"a_float_4": { "description": "State Attribute", "type": "float[4]", "default": [1.5, 2.5, 3.5, 4.5] },
"a_float_array": { "description": "State Attribute", "type": "float[]", "default": [1.5, 2.5] },
"a_float_2_array": { "description": "State Attribute", "type": "float[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] },
"a_float_3_array": { "description": "State Attribute", "type": "float[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_float_4_array": { "description": "State Attribute", "type": "float[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] },
"a_frame_4": { "description": "State Attribute", "type": "frame[4]", "default": [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]] },
"a_frame_4_array": { "description": "State Attribute", "type": "frame[4][]", "default": [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]] },
"a_half": { "description": "State Attribute", "type": "half", "default": 1.5 },
"a_half_2": { "description": "State Attribute", "type": "half[2]", "default": [1.5, 2.5] },
"a_half_3": { "description": "State Attribute", "type": "half[3]", "default": [1.5, 2.5, 3.5] },
"a_half_4": { "description": "State Attribute", "type": "half[4]", "default": [1.5, 2.5, 3.5, 4.5] },
"a_half_array": { "description": "State Attribute", "type": "half[]", "default": [1.5, 2.5] },
"a_half_2_array": { "description": "State Attribute", "type": "half[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] },
"a_half_3_array": { "description": "State Attribute", "type": "half[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_half_4_array": { "description": "State Attribute", "type": "half[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] },
"a_int": { "description": "State Attribute", "type": "int", "default": 1 },
"a_int_2": { "description": "State Attribute", "type": "int[2]", "default": [1, 2] },
"a_int_3": { "description": "State Attribute", "type": "int[3]", "default": [1, 2, 3] },
"a_int_4": { "description": "State Attribute", "type": "int[4]", "default": [1, 2, 3, 4] },
"a_int_array": { "description": "State Attribute", "type": "int[]", "default": [1, 2] },
"a_int_2_array": { "description": "State Attribute", "type": "int[2][]", "default": [[1, 2], [3, 4]] },
"a_int_3_array": { "description": "State Attribute", "type": "int[3][]", "default": [[1, 2, 3], [4, 5, 6]] },
"a_int_4_array": { "description": "State Attribute", "type": "int[4][]", "default": [[1, 2, 3, 4], [5, 6, 7, 8]] },
"a_int64": { "description": "State Attribute", "type": "int64", "default": 12345 },
"a_int64_array": { "description": "State Attribute", "type": "int64[]", "default": [12345, 23456] },
"a_matrixd_2": { "description": "State Attribute", "type": "matrixd[2]", "default": [[1.5, 2.5], [3.5, 4.5]] },
"a_matrixd_3": { "description": "State Attribute", "type": "matrixd[3]", "default": [[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]] },
"a_matrixd_4": { "description": "State Attribute", "type": "matrixd[4]", "default": [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]] },
"a_matrixd_2_array": { "description": "State Attribute", "type": "matrixd[2][]", "default": [[[1.5, 2.5], [3.5, 4.5]], [[11.5, 12.5], [13.5, 14.5]]] },
"a_matrixd_3_array": { "description": "State Attribute", "type": "matrixd[3][]", "default":[[[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]], [[11.5, 12.5, 13.5], [14.5, 15.5, 16.5], [17.5, 18.5, 19.5]]] },
"a_matrixd_4_array": { "description": "State Attribute", "type": "matrixd[4][]", "default": [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]] },
"a_normald_3": { "description": "State Attribute", "type": "normald[3]", "default": [1.5, 2.5, 3.5] },
"a_normalf_3": { "description": "State Attribute", "type": "normalf[3]", "default": [1.5, 2.5, 3.5] },
"a_normalh_3": { "description": "State Attribute", "type": "normalh[3]", "default": [1.5, 2.5, 3.5] },
"a_normald_3_array": { "description": "State Attribute", "type": "normald[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_normalf_3_array": { "description": "State Attribute", "type": "normalf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_normalh_3_array": { "description": "State Attribute", "type": "normalh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_objectId": { "description": "State Attribute", "type": "objectId", "default": 2 },
"a_objectId_array": { "description": "State Attribute", "type": "objectId[]", "default": [2, 3] },
"a_path": { "description": "State Attribute", "type": "path", "default": "/State" },
"a_pointd_3": { "description": "State Attribute", "type": "pointd[3]", "default": [1.5, 2.5, 3.5] },
"a_pointf_3": { "description": "State Attribute", "type": "pointf[3]", "default": [1.5, 2.5, 3.5] },
"a_pointh_3": { "description": "State Attribute", "type": "pointh[3]", "default": [1.5, 2.5, 3.5] },
"a_pointd_3_array": { "description": "State Attribute", "type": "pointd[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_pointf_3_array": { "description": "State Attribute", "type": "pointf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_pointh_3_array": { "description": "State Attribute", "type": "pointh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_quatd_4": { "description": "State Attribute", "type": "quatd[4]", "default": [1.5, 2.5, 3.5, 4.5] },
"a_quatf_4": { "description": "State Attribute", "type": "quatf[4]", "default": [1.5, 2.5, 3.5, 4.5] },
"a_quath_4": { "description": "State Attribute", "type": "quath[4]", "default": [1.5, 2.5, 3.5, 4.5] },
"a_quatd_4_array": { "description": "State Attribute", "type": "quatd[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] },
"a_quatf_4_array": { "description": "State Attribute", "type": "quatf[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] },
"a_quath_4_array": { "description": "State Attribute", "type": "quath[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] },
"a_string": { "description": "State Attribute", "type": "string", "default": "Emperor\n\"Half\" Snoke" },
"a_target": { "description": "State Attribute", "type": "target"},
"a_stringEmpty": { "description": "State Attribute", "type": "string" },
"a_texcoordd_2": { "description": "State Attribute", "type": "texcoordd[2]", "default": [1.5, 2.5] },
"a_texcoordd_3": { "description": "State Attribute", "type": "texcoordd[3]", "default": [1.5, 2.5, 3.5] },
"a_texcoordf_2": { "description": "State Attribute", "type": "texcoordf[2]", "default": [1.5, 2.5] },
"a_texcoordf_3": { "description": "State Attribute", "type": "texcoordf[3]", "default": [1.5, 2.5, 3.5] },
"a_texcoordh_2": { "description": "State Attribute", "type": "texcoordh[2]", "default": [1.5, 2.5] },
"a_texcoordh_3": { "description": "State Attribute", "type": "texcoordh[3]", "default": [1.5, 2.5, 3.5] },
"a_texcoordd_2_array": { "description": "State Attribute", "type": "texcoordd[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] },
"a_texcoordd_3_array": { "description": "State Attribute", "type": "texcoordd[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_texcoordf_2_array": { "description": "State Attribute", "type": "texcoordf[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] },
"a_texcoordf_3_array": { "description": "State Attribute", "type": "texcoordf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_texcoordh_2_array": { "description": "State Attribute", "type": "texcoordh[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] },
"a_texcoordh_3_array": { "description": "State Attribute", "type": "texcoordh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_timecode": { "description": "State Attribute", "type": "timecode", "default": 2.5 },
"a_timecode_array": { "description": "State Attribute", "type": "timecode[]", "default": [2.5, 3.5] },
"a_token": { "description": "State Attribute", "type": "token", "default": "Jedi\nMaster" },
"a_token_array": { "description": "State Attribute", "type": "token[]", "default": ["Luke\n\"Whiner\"", "Skywalker"] },
"a_uchar": { "description": "State Attribute", "type": "uchar", "default": 2 },
"a_uchar_array": { "description": "State Attribute", "type": "uchar[]", "default": [2, 3] },
"a_uint": { "description": "State Attribute", "type": "uint", "default": 2 },
"a_uint_array": { "description": "State Attribute", "type": "uint[]", "default": [2, 3] },
"a_uint64": { "description": "State Attribute", "type": "uint64", "default": 2 },
"a_uint64_array": { "description": "State Attribute", "type": "uint64[]", "default": [2, 3] },
"a_vectord_3": { "description": "State Attribute", "type": "vectord[3]", "default": [1.5, 2.5, 3.5] },
"a_vectorf_3": { "description": "State Attribute", "type": "vectorf[3]", "default": [1.5, 2.5, 3.5] },
"a_vectorh_3": { "description": "State Attribute", "type": "vectorh[3]", "default": [1.5, 2.5, 3.5] },
"a_vectord_3_array": { "description": "State Attribute", "type": "vectord[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_vectorf_3_array": { "description": "State Attribute", "type": "vectorf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_vectorh_3_array": { "description": "State Attribute", "type": "vectorh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }
},
"tests": [
{
"description": "Check to see if the state and outputs get their expected defaults when compute is bypassed",
"inputs": { "inputs:doNotCompute": true },
"outputs": {
"a_bool": true,
"a_bool_array": [true, false],
"a_colord_3": [1.5, 2.5, 3.5],
"a_colord_4": [1.5, 2.5, 3.5, 4.5],
"a_colorf_3": [1.5, 2.5, 3.5],
"a_colorf_4": [1.5, 2.5, 3.5, 4.5],
"a_colorh_3": [1.5, 2.5, 3.5],
"a_colorh_4": [1.5, 2.5, 3.5, 4.5],
"a_colord_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_colord_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]],
"a_colorf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_colorf_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]],
"a_colorh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_colorh_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]],
"a_double": 1.5,
"a_double_2": [1.5, 2.5],
"a_double_3": [1.5, 2.5, 3.5],
"a_double_4": [1.5, 2.5, 3.5, 4.5],
"a_double_array": [1.5, 2.5],
"a_double_2_array": [[1.5, 2.5], [11.5, 12.5]],
"a_double_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_double_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]],
"a_execution": 2,
"a_float": 1.5,
"a_float_2": [1.5, 2.5],
"a_float_3": [1.5, 2.5, 3.5],
"a_float_4": [1.5, 2.5, 3.5, 4.5],
"a_float_array": [1.5, 2.5],
"a_float_2_array": [[1.5, 2.5], [11.5, 12.5]],
"a_float_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_float_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]],
"a_frame_4": [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]],
"a_frame_4_array": [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]],
"a_half": 1.5,
"a_half_2": [1.5, 2.5],
"a_half_3": [1.5, 2.5, 3.5],
"a_half_4": [1.5, 2.5, 3.5, 4.5],
"a_half_array": [1.5, 2.5],
"a_half_2_array": [[1.5, 2.5], [11.5, 12.5]],
"a_half_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_half_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]],
"a_int": 1,
"a_int_2": [1, 2],
"a_int_3": [1, 2, 3],
"a_int_4": [1, 2, 3, 4],
"a_int_array": [1, 2],
"a_int_2_array": [[1, 2], [3, 4]],
"a_int_3_array": [[1, 2, 3], [4, 5, 6]],
"a_int_4_array": [[1, 2, 3, 4], [5, 6, 7, 8]],
"a_int64": 12345,
"a_int64_array": [12345, 23456],
"a_matrixd_2": [[1.5, 2.5], [3.5, 4.5]],
"a_matrixd_3": [[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]],
"a_matrixd_4": [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]],
"a_matrixd_2_array": [[[1.5, 2.5], [3.5, 4.5]], [[11.5, 12.5], [13.5, 14.5]]],
"a_matrixd_3_array": [[[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]], [[11.5, 12.5, 13.5], [14.5, 15.5, 16.5], [17.5, 18.5, 19.5]]],
"a_matrixd_4_array": [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]],
"a_normald_3": [1.5, 2.5, 3.5],
"a_normalf_3": [1.5, 2.5, 3.5],
"a_normalh_3": [1.5, 2.5, 3.5],
"a_normald_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_normalf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_normalh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_objectId": 2,
"a_objectId_array": [2, 3],
"a_path": "/Output",
"a_pointd_3": [1.5, 2.5, 3.5],
"a_pointf_3": [1.5, 2.5, 3.5],
"a_pointh_3": [1.5, 2.5, 3.5],
"a_pointd_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_pointf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_pointh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_quatd_4": [1.5, 2.5, 3.5, 4.5],
"a_quatf_4": [1.5, 2.5, 3.5, 4.5],
"a_quath_4": [1.5, 2.5, 3.5, 4.5],
"a_quatd_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]],
"a_quatf_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]],
"a_quath_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]],
"a_string": "Emperor\n\"Half\" Snoke",
"a_texcoordd_2": [1.5, 2.5],
"a_texcoordd_3": [1.5, 2.5, 3.5],
"a_texcoordf_2": [1.5, 2.5],
"a_texcoordf_3": [1.5, 2.5, 3.5],
"a_texcoordh_2": [1.5, 2.5],
"a_texcoordh_3": [1.5, 2.5, 3.5],
"a_texcoordd_2_array": [[1.5, 2.5], [11.5, 12.5]],
"a_texcoordd_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_texcoordf_2_array": [[1.5, 2.5], [11.5, 12.5]],
"a_texcoordf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_texcoordh_2_array": [[1.5, 2.5], [11.5, 12.5]],
"a_texcoordh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_timecode": 2.5,
"a_timecode_array": [2.5, 3.5],
"a_token": "Jedi\nMaster",
"a_token_array": ["Luke\n\"Whiner\"", "Skywalker"],
"a_uchar": 2,
"a_uchar_array": [2, 3],
"a_uint": 2,
"a_uint_array": [2, 3],
"a_uint64": 2,
"a_uint64_array": [2, 3],
"a_vectord_3": [1.5, 2.5, 3.5],
"a_vectorf_3": [1.5, 2.5, 3.5],
"a_vectorh_3": [1.5, 2.5, 3.5],
"a_vectord_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_vectorf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_vectorh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]
},
"state_get": {
"a_bool": true,
"a_bool_array": [true, false],
"a_colord_3": [1.5, 2.5, 3.5],
"a_colord_4": [1.5, 2.5, 3.5, 4.5],
"a_colorf_3": [1.5, 2.5, 3.5],
"a_colorf_4": [1.5, 2.5, 3.5, 4.5],
"a_colorh_3": [1.5, 2.5, 3.5],
"a_colorh_4": [1.5, 2.5, 3.5, 4.5],
"a_colord_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_colord_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]],
"a_colorf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_colorf_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]],
"a_colorh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_colorh_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]],
"a_double": 1.5,
"a_double_2": [1.5, 2.5],
"a_double_3": [1.5, 2.5, 3.5],
"a_double_4": [1.5, 2.5, 3.5, 4.5],
"a_double_array": [1.5, 2.5],
"a_double_2_array": [[1.5, 2.5], [11.5, 12.5]],
"a_double_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_double_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]],
"a_execution": 2,
"a_float": 1.5,
"a_float_2": [1.5, 2.5],
"a_float_3": [1.5, 2.5, 3.5],
"a_float_4": [1.5, 2.5, 3.5, 4.5],
"a_float_array": [1.5, 2.5],
"a_float_2_array": [[1.5, 2.5], [11.5, 12.5]],
"a_float_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_float_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]],
"a_frame_4": [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]],
"a_frame_4_array": [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]],
"a_half": 1.5,
"a_half_2": [1.5, 2.5],
"a_half_3": [1.5, 2.5, 3.5],
"a_half_4": [1.5, 2.5, 3.5, 4.5],
"a_half_array": [1.5, 2.5],
"a_half_2_array": [[1.5, 2.5], [11.5, 12.5]],
"a_half_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_half_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]],
"a_int": 1,
"a_int_2": [1, 2],
"a_int_3": [1, 2, 3],
"a_int_4": [1, 2, 3, 4],
"a_int_array": [1, 2],
"a_int_2_array": [[1, 2], [3, 4]],
"a_int_3_array": [[1, 2, 3], [4, 5, 6]],
"a_int_4_array": [[1, 2, 3, 4], [5, 6, 7, 8]],
"a_int64": 12345,
"a_int64_array": [12345, 23456],
"a_matrixd_2": [[1.5, 2.5], [3.5, 4.5]],
"a_matrixd_3": [[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]],
"a_matrixd_4": [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]],
"a_matrixd_2_array": [[[1.5, 2.5], [3.5, 4.5]], [[11.5, 12.5], [13.5, 14.5]]],
"a_matrixd_3_array": [[[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]], [[11.5, 12.5, 13.5], [14.5, 15.5, 16.5], [17.5, 18.5, 19.5]]],
"a_matrixd_4_array": [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]],
"a_normald_3": [1.5, 2.5, 3.5],
"a_normalf_3": [1.5, 2.5, 3.5],
"a_normalh_3": [1.5, 2.5, 3.5],
"a_normald_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_normalf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_normalh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_objectId": 2,
"a_objectId_array": [2, 3],
"a_path": "/State",
"a_pointd_3": [1.5, 2.5, 3.5],
"a_pointf_3": [1.5, 2.5, 3.5],
"a_pointh_3": [1.5, 2.5, 3.5],
"a_pointd_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_pointf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_pointh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_quatd_4": [1.5, 2.5, 3.5, 4.5],
"a_quatf_4": [1.5, 2.5, 3.5, 4.5],
"a_quath_4": [1.5, 2.5, 3.5, 4.5],
"a_quatd_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]],
"a_quatf_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]],
"a_quath_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]],
"a_string": "Emperor\n\"Half\" Snoke",
"a_stringEmpty": "",
"a_texcoordd_2": [1.5, 2.5],
"a_texcoordd_3": [1.5, 2.5, 3.5],
"a_texcoordf_2": [1.5, 2.5],
"a_texcoordf_3": [1.5, 2.5, 3.5],
"a_texcoordh_2": [1.5, 2.5],
"a_texcoordh_3": [1.5, 2.5, 3.5],
"a_texcoordd_2_array": [[1.5, 2.5], [11.5, 12.5]],
"a_texcoordd_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_texcoordf_2_array": [[1.5, 2.5], [11.5, 12.5]],
"a_texcoordf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_texcoordh_2_array": [[1.5, 2.5], [11.5, 12.5]],
"a_texcoordh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_timecode": 2.5,
"a_timecode_array": [2.5, 3.5],
"a_token": "Jedi\nMaster",
"a_token_array": ["Luke\n\"Whiner\"", "Skywalker"],
"a_uchar": 2,
"a_uchar_array": [2, 3],
"a_uint": 2,
"a_uint_array": [2, 3],
"a_uint64": 2,
"a_uint64_array": [2, 3],
"a_vectord_3": [1.5, 2.5, 3.5],
"a_vectorf_3": [1.5, 2.5, 3.5],
"a_vectorh_3": [1.5, 2.5, 3.5],
"a_vectord_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_vectorf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_vectorh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]
}
},
{
"description": "Regular evaluation where the default inputs are copied to the outputs",
"inputs": { "inputs:doNotCompute": false },
"outputs": {
"a_bool": false,
"a_bool_array": [false, true],
"a_colord_3": [1.0, 2.0, 3.0],
"a_colord_4": [1.0, 2.0, 3.0, 4.0],
"a_colorf_3": [1.0, 2.0, 3.0],
"a_colorf_4": [1.0, 2.0, 3.0, 4.0],
"a_colorh_3": [1.0, 2.0, 3.0],
"a_colorh_4": [1.0, 2.0, 3.0, 4.0],
"a_colord_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_colord_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]],
"a_colorf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_colorf_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]],
"a_colorh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_colorh_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]],
"a_double": 1.0,
"a_double_2": [1.0, 2.0],
"a_double_3": [1.0, 2.0, 3.0],
"a_double_4": [1.0, 2.0, 3.0, 4.0],
"a_double_array": [1.0, 2.0],
"a_double_2_array": [[1.0, 2.0], [11.0, 12.0]],
"a_double_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_double_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]],
"a_execution": 1,
"a_float": 1.0,
"a_float_2": [1.0, 2.0],
"a_float_3": [1.0, 2.0, 3.0],
"a_float_4": [1.0, 2.0, 3.0, 4.0],
"a_float_array": [1.0, 2.0],
"a_float_2_array": [[1.0, 2.0], [11.0, 12.0]],
"a_float_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_float_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]],
"a_frame_4": [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]],
"a_frame_4_array": [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]],
"a_half": 1.0,
"a_half_2": [1.0, 2.0],
"a_half_3": [1.0, 2.0, 3.0],
"a_half_4": [1.0, 2.0, 3.0, 4.0],
"a_half_array": [1.0, 2.0],
"a_half_2_array": [[1.0, 2.0], [11.0, 12.0]],
"a_half_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_half_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]],
"a_int": 1,
"a_int_2": [1, 2],
"a_int_3": [1, 2, 3],
"a_int_4": [1, 2, 3, 4],
"a_int_array": [1, 2],
"a_int_2_array": [[1, 2], [3, 4]],
"a_int_3_array": [[1, 2, 3], [4, 5, 6]],
"a_int_4_array": [[1, 2, 3, 4], [5, 6, 7, 8]],
"a_int64": 12345,
"a_int64_array": [12345, 23456],
"a_matrixd_2": [[1.0, 2.0], [3.0, 4.0]],
"a_matrixd_3": [[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]],
"a_matrixd_4": [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]],
"a_matrixd_2_array": [[[1.0, 2.0], [3.0, 4.0]], [[11.0, 12.0], [13.0, 14.0]]],
"a_matrixd_3_array": [[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]], [[11.0, 12.0, 13.0], [14.0, 15.0, 16.0], [17.0, 18.0, 19.0]]],
"a_matrixd_4_array": [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]],
"a_normald_3": [1.0, 2.0, 3.0],
"a_normalf_3": [1.0, 2.0, 3.0],
"a_normalh_3": [1.0, 2.0, 3.0],
"a_normald_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_normalf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_normalh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_objectId": 1,
"a_objectId_array": [1, 2],
"a_path": "/Input",
"a_pointd_3": [1.0, 2.0, 3.0],
"a_pointf_3": [1.0, 2.0, 3.0],
"a_pointh_3": [1.0, 2.0, 3.0],
"a_pointd_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_pointf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_pointh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_quatd_4": [1.0, 2.0, 3.0, 4.0],
"a_quatf_4": [1.0, 2.0, 3.0, 4.0],
"a_quath_4": [1.0, 2.0, 3.0, 4.0],
"a_quatd_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]],
"a_quatf_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]],
"a_quath_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]],
"a_string": "Rey\n\"Palpatine\" Skywalker",
"a_texcoordd_2": [1.0, 2.0],
"a_texcoordd_3": [1.0, 2.0, 3.0],
"a_texcoordf_2": [1.0, 2.0],
"a_texcoordf_3": [1.0, 2.0, 3.0],
"a_texcoordh_2": [1.0, 2.0],
"a_texcoordh_3": [1.0, 2.0, 3.0],
"a_texcoordd_2_array": [[1.0, 2.0], [11.0, 12.0]],
"a_texcoordd_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_texcoordf_2_array": [[1.0, 2.0], [11.0, 12.0]],
"a_texcoordf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_texcoordh_2_array": [[1.0, 2.0], [11.0, 12.0]],
"a_texcoordh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_timecode": 1.0,
"a_timecode_array": [1.0, 2.0],
"a_token": "Sith\nLord",
"a_token_array": ["Kylo\n\"The Putz\"", "Ren"],
"a_uchar": 1,
"a_uchar_array": [1, 2],
"a_uint": 1,
"a_uint_array": [1, 2],
"a_uint64": 1,
"a_uint64_array": [1, 2],
"a_vectord_3": [1.0, 2.0, 3.0],
"a_vectorf_3": [1.0, 2.0, 3.0],
"a_vectorh_3": [1.0, 2.0, 3.0],
"a_vectord_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_vectorf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_vectorh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]
},
"state_get": {
"a_bool_array": [false, true],
"a_colord_3": [1.0, 2.0, 3.0],
"a_colord_4": [1.0, 2.0, 3.0, 4.0],
"a_colorf_3": [1.0, 2.0, 3.0],
"a_colorf_4": [1.0, 2.0, 3.0, 4.0],
"a_colorh_3": [1.0, 2.0, 3.0],
"a_colorh_4": [1.0, 2.0, 3.0, 4.0],
"a_colord_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_colord_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]],
"a_colorf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_colorf_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]],
"a_colorh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_colorh_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]],
"a_double": 1.0,
"a_double_2": [1.0, 2.0],
"a_double_3": [1.0, 2.0, 3.0],
"a_double_4": [1.0, 2.0, 3.0, 4.0],
"a_double_array": [1.0, 2.0],
"a_double_2_array": [[1.0, 2.0], [11.0, 12.0]],
"a_double_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_double_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]],
"a_execution": 1,
"a_float": 1.0,
"a_float_2": [1.0, 2.0],
"a_float_3": [1.0, 2.0, 3.0],
"a_float_4": [1.0, 2.0, 3.0, 4.0],
"a_float_array": [1.0, 2.0],
"a_float_2_array": [[1.0, 2.0], [11.0, 12.0]],
"a_float_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_float_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]],
"a_frame_4": [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]],
"a_frame_4_array": [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]],
"a_half": 1.0,
"a_half_2": [1.0, 2.0],
"a_half_3": [1.0, 2.0, 3.0],
"a_half_4": [1.0, 2.0, 3.0, 4.0],
"a_half_array": [1.0, 2.0],
"a_half_2_array": [[1.0, 2.0], [11.0, 12.0]],
"a_half_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_half_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]],
"a_int": 1,
"a_int_2": [1, 2],
"a_int_3": [1, 2, 3],
"a_int_4": [1, 2, 3, 4],
"a_int_array": [1, 2],
"a_int_2_array": [[1, 2], [3, 4]],
"a_int_3_array": [[1, 2, 3], [4, 5, 6]],
"a_int_4_array": [[1, 2, 3, 4], [5, 6, 7, 8]],
"a_int64": 12345,
"a_int64_array": [12345, 23456],
"a_matrixd_2": [[1.0, 2.0], [3.0, 4.0]],
"a_matrixd_3": [[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]],
"a_matrixd_4": [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]],
"a_matrixd_2_array": [[[1.0, 2.0], [3.0, 4.0]], [[11.0, 12.0], [13.0, 14.0]]],
"a_matrixd_3_array": [[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]], [[11.0, 12.0, 13.0], [14.0, 15.0, 16.0], [17.0, 18.0, 19.0]]],
"a_matrixd_4_array": [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]],
"a_normald_3": [1.0, 2.0, 3.0],
"a_normalf_3": [1.0, 2.0, 3.0],
"a_normalh_3": [1.0, 2.0, 3.0],
"a_normald_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_normalf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_normalh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_objectId": 1,
"a_objectId_array": [1, 2],
"a_path": "/Input",
"a_pointd_3": [1.0, 2.0, 3.0],
"a_pointf_3": [1.0, 2.0, 3.0],
"a_pointh_3": [1.0, 2.0, 3.0],
"a_pointd_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_pointf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_pointh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_quatd_4": [1.0, 2.0, 3.0, 4.0],
"a_quatf_4": [1.0, 2.0, 3.0, 4.0],
"a_quath_4": [1.0, 2.0, 3.0, 4.0],
"a_quatd_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]],
"a_quatf_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]],
"a_quath_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]],
"a_string": "Rey\n\"Palpatine\" Skywalker",
"a_stringEmpty": "Rey\n\"Palpatine\" Skywalker",
"a_texcoordd_2": [1.0, 2.0],
"a_texcoordd_3": [1.0, 2.0, 3.0],
"a_texcoordf_2": [1.0, 2.0],
"a_texcoordf_3": [1.0, 2.0, 3.0],
"a_texcoordh_2": [1.0, 2.0],
"a_texcoordh_3": [1.0, 2.0, 3.0],
"a_texcoordd_2_array": [[1.0, 2.0], [11.0, 12.0]],
"a_texcoordd_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_texcoordf_2_array": [[1.0, 2.0], [11.0, 12.0]],
"a_texcoordf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_texcoordh_2_array": [[1.0, 2.0], [11.0, 12.0]],
"a_texcoordh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_timecode": 1.0,
"a_timecode_array": [1.0, 2.0],
"a_token": "Sith\nLord",
"a_token_array": ["Kylo\n\"The Putz\"", "Ren"],
"a_uchar": 1,
"a_uchar_array": [1, 2],
"a_uint": 1,
"a_uint_array": [1, 2],
"a_uint64": 1,
"a_uint64_array": [1, 2],
"a_vectord_3": [1.0, 2.0, 3.0],
"a_vectorf_3": [1.0, 2.0, 3.0],
"a_vectorh_3": [1.0, 2.0, 3.0],
"a_vectord_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_vectorf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_vectorh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]
}
},
{
"description": "Regular evaluation where non-default inputs are set and copied to the outputs",
"inputs": {
"inputs:doNotCompute": false,
"a_bool": true,
"a_bool_array": [true, true],
"a_colord_3": [1.25, 2.25, 3.25],
"a_colord_4": [1.25, 2.25, 3.25, 4.25],
"a_colorf_3": [1.25, 2.25, 3.25],
"a_colorf_4": [1.25, 2.25, 3.25, 4.25],
"a_colorh_3": [1.25, 2.25, 3.25],
"a_colorh_4": [1.25, 2.25, 3.25, 4.25],
"a_colord_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_colord_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_colorf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_colorf_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_colorh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_colorh_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_double": 1.25,
"a_double_2": [1.25, 2.25],
"a_double_3": [1.25, 2.25, 3.25],
"a_double_4": [1.25, 2.25, 3.25, 4.25],
"a_double_array": [1.25, 2.25],
"a_double_2_array": [[1.25, 2.25], [11.25, 12.25]],
"a_double_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_double_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_execution": 3,
"a_float": 1.25,
"a_float_2": [1.25, 2.25],
"a_float_3": [1.25, 2.25, 3.25],
"a_float_4": [1.25, 2.25, 3.25, 4.25],
"a_float_array": [1.25, 2.25],
"a_float_2_array": [[1.25, 2.25], [11.25, 12.25]],
"a_float_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_float_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_frame_4": [[1.25, 2.25, 3.25, 4.25], [5.25, 6.25, 7.25, 8.25], [9.25, 10.25, 11.25, 12.25], [13.25, 14.25, 15.25, 16.25]],
"a_frame_4_array": [[[1.25, 2.25, 3.25, 4.25], [5.25, 6.25, 7.25, 8.25], [9.25, 10.25, 11.25, 12.25], [13.25, 14.25, 15.25, 16.25]], [[11.25, 12.25, 13.25, 14.25], [15.25, 16.25, 17.25, 18.25], [19.25, 20.25, 21.25, 22.25], [23.25, 24.25, 25.25, 26.25]]],
"a_half": 1.25,
"a_half_2": [1.25, 2.25],
"a_half_3": [1.25, 2.25, 3.25],
"a_half_4": [1.25, 2.25, 3.25, 4.25],
"a_half_array": [1.25, 2.25],
"a_half_2_array": [[1.25, 2.25], [11.25, 12.25]],
"a_half_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_half_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_int": 11,
"a_int_2": [11, 12],
"a_int_3": [11, 12, 13],
"a_int_4": [11, 12, 13, 14],
"a_int_array": [11, 12],
"a_int_2_array": [[11, 12], [13, 14]],
"a_int_3_array": [[11, 12, 13], [14, 15, 16]],
"a_int_4_array": [[11, 12, 13, 14], [15, 16, 17, 18]],
"a_int64": 34567,
"a_int64_array": [45678, 56789],
"a_matrixd_2": [[1.25, 2.25], [3.25, 4.25]],
"a_matrixd_3": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25], [21.25, 22.25, 23.25]],
"a_matrixd_4": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25], [21.25, 22.25, 23.25, 24.25], [31.25, 32.25, 33.25, 34.25]],
"a_matrixd_2_array": [[[1.25, 2.25], [3.25, 4.25]], [[11.25, 12.25], [13.25, 14.25]]],
"a_matrixd_3_array": [[[1.25, 2.25, 3.25], [4.25, 5.25, 6.25], [7.25, 8.25, 9.25]], [[11.25, 12.25, 13.25], [14.25, 15.25, 16.25], [17.25, 18.25, 19.25]]],
"a_matrixd_4_array": [[[1.25, 2.25, 3.25, 4.25], [5.25, 6.25, 7.25, 8.25], [9.25, 10.25, 11.25, 12.25], [13.25, 14.25, 15.25, 16.25]], [[11.25, 12.25, 13.25, 14.25], [15.25, 16.25, 17.25, 18.25], [19.25, 20.25, 21.25, 22.25], [23.25, 24.25, 25.25, 26.25]]],
"a_normald_3": [1.25, 2.25, 3.25],
"a_normalf_3": [1.25, 2.25, 3.25],
"a_normalh_3": [1.25, 2.25, 3.25],
"a_normald_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_normalf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_normalh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_objectId": 3,
"a_objectId_array": [3, 4],
"a_path": "/Test",
"a_pointd_3": [1.25, 2.25, 3.25],
"a_pointf_3": [1.25, 2.25, 3.25],
"a_pointh_3": [1.25, 2.25, 3.25],
"a_pointd_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_pointf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_pointh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_quatd_4": [1.25, 2.25, 3.25, 4.25],
"a_quatf_4": [1.25, 2.25, 3.25, 4.25],
"a_quath_4": [1.25, 2.25, 3.25, 4.25],
"a_quatd_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_quatf_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_quath_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_string": "Palpatine\n\"TubeMan\" Lives",
"a_texcoordd_2": [1.25, 2.25],
"a_texcoordd_3": [1.25, 2.25, 3.25],
"a_texcoordf_2": [1.25, 2.25],
"a_texcoordf_3": [1.25, 2.25, 3.25],
"a_texcoordh_2": [1.25, 2.25],
"a_texcoordh_3": [1.25, 2.25, 3.25],
"a_texcoordd_2_array": [[1.25, 2.25], [11.25, 12.25]],
"a_texcoordd_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_texcoordf_2_array": [[1.25, 2.25], [11.25, 12.25]],
"a_texcoordf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_texcoordh_2_array": [[1.25, 2.25], [11.25, 12.25]],
"a_texcoordh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_timecode": 1.25,
"a_timecode_array": [1.25, 2.25],
"a_token": "Rebel\nScum",
"a_token_array": ["Han\n\"Indiana\"", "Solo"],
"a_uchar": 3,
"a_uchar_array": [3, 4],
"a_uint": 3,
"a_uint_array": [3, 4],
"a_uint64": 3,
"a_uint64_array": [3, 4],
"a_vectord_3": [1.25, 2.25, 3.25],
"a_vectorf_3": [1.25, 2.25, 3.25],
"a_vectorh_3": [1.25, 2.25, 3.25],
"a_vectord_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_vectorf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_vectorh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]]
},
"outputs": {
"a_bool": true,
"a_bool_array": [true, true],
"a_colord_3": [1.25, 2.25, 3.25],
"a_colord_4": [1.25, 2.25, 3.25, 4.25],
"a_colorf_3": [1.25, 2.25, 3.25],
"a_colorf_4": [1.25, 2.25, 3.25, 4.25],
"a_colorh_3": [1.25, 2.25, 3.25],
"a_colorh_4": [1.25, 2.25, 3.25, 4.25],
"a_colord_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_colord_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_colorf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_colorf_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_colorh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_colorh_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_double": 1.25,
"a_double_2": [1.25, 2.25],
"a_double_3": [1.25, 2.25, 3.25],
"a_double_4": [1.25, 2.25, 3.25, 4.25],
"a_double_array": [1.25, 2.25],
"a_double_2_array": [[1.25, 2.25], [11.25, 12.25]],
"a_double_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_double_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_execution": 3,
"a_float": 1.25,
"a_float_2": [1.25, 2.25],
"a_float_3": [1.25, 2.25, 3.25],
"a_float_4": [1.25, 2.25, 3.25, 4.25],
"a_float_array": [1.25, 2.25],
"a_float_2_array": [[1.25, 2.25], [11.25, 12.25]],
"a_float_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_float_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_frame_4": [[1.25, 2.25, 3.25, 4.25], [5.25, 6.25, 7.25, 8.25], [9.25, 10.25, 11.25, 12.25], [13.25, 14.25, 15.25, 16.25]],
"a_frame_4_array": [[[1.25, 2.25, 3.25, 4.25], [5.25, 6.25, 7.25, 8.25], [9.25, 10.25, 11.25, 12.25], [13.25, 14.25, 15.25, 16.25]], [[11.25, 12.25, 13.25, 14.25], [15.25, 16.25, 17.25, 18.25], [19.25, 20.25, 21.25, 22.25], [23.25, 24.25, 25.25, 26.25]]],
"a_half": 1.25,
"a_half_2": [1.25, 2.25],
"a_half_3": [1.25, 2.25, 3.25],
"a_half_4": [1.25, 2.25, 3.25, 4.25],
"a_half_array": [1.25, 2.25],
"a_half_2_array": [[1.25, 2.25], [11.25, 12.25]],
"a_half_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_half_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_int": 11,
"a_int_2": [11, 12],
"a_int_3": [11, 12, 13],
"a_int_4": [11, 12, 13, 14],
"a_int_array": [11, 12],
"a_int_2_array": [[11, 12], [13, 14]],
"a_int_3_array": [[11, 12, 13], [14, 15, 16]],
"a_int_4_array": [[11, 12, 13, 14], [15, 16, 17, 18]],
"a_int64": 34567,
"a_int64_array": [45678, 56789],
"a_matrixd_2": [[1.25, 2.25], [3.25, 4.25]],
"a_matrixd_3": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25], [21.25, 22.25, 23.25]],
"a_matrixd_4": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25], [21.25, 22.25, 23.25, 24.25], [31.25, 32.25, 33.25, 34.25]],
"a_matrixd_2_array": [[[1.25, 2.25], [3.25, 4.25]], [[11.25, 12.25], [13.25, 14.25]]],
"a_matrixd_3_array": [[[1.25, 2.25, 3.25], [4.25, 5.25, 6.25], [7.25, 8.25, 9.25]], [[11.25, 12.25, 13.25], [14.25, 15.25, 16.25], [17.25, 18.25, 19.25]]],
"a_matrixd_4_array": [[[1.25, 2.25, 3.25, 4.25], [5.25, 6.25, 7.25, 8.25], [9.25, 10.25, 11.25, 12.25], [13.25, 14.25, 15.25, 16.25]], [[11.25, 12.25, 13.25, 14.25], [15.25, 16.25, 17.25, 18.25], [19.25, 20.25, 21.25, 22.25], [23.25, 24.25, 25.25, 26.25]]],
"a_normald_3": [1.25, 2.25, 3.25],
"a_normalf_3": [1.25, 2.25, 3.25],
"a_normalh_3": [1.25, 2.25, 3.25],
"a_normald_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_normalf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_normalh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_objectId": 3,
"a_objectId_array": [3, 4],
"a_path": "/Test",
"a_pointd_3": [1.25, 2.25, 3.25],
"a_pointf_3": [1.25, 2.25, 3.25],
"a_pointh_3": [1.25, 2.25, 3.25],
"a_pointd_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_pointf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_pointh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_quatd_4": [1.25, 2.25, 3.25, 4.25],
"a_quatf_4": [1.25, 2.25, 3.25, 4.25],
"a_quath_4": [1.25, 2.25, 3.25, 4.25],
"a_quatd_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_quatf_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_quath_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_string": "Palpatine\n\"TubeMan\" Lives",
"a_texcoordd_2": [1.25, 2.25],
"a_texcoordd_3": [1.25, 2.25, 3.25],
"a_texcoordf_2": [1.25, 2.25],
"a_texcoordf_3": [1.25, 2.25, 3.25],
"a_texcoordh_2": [1.25, 2.25],
"a_texcoordh_3": [1.25, 2.25, 3.25],
"a_texcoordd_2_array": [[1.25, 2.25], [11.25, 12.25]],
"a_texcoordd_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_texcoordf_2_array": [[1.25, 2.25], [11.25, 12.25]],
"a_texcoordf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_texcoordh_2_array": [[1.25, 2.25], [11.25, 12.25]],
"a_texcoordh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_timecode": 1.25,
"a_timecode_array": [1.25, 2.25],
"a_token": "Rebel\nScum",
"a_token_array": ["Han\n\"Indiana\"", "Solo"],
"a_uchar": 3,
"a_uchar_array": [3, 4],
"a_uint": 3,
"a_uint_array": [3, 4],
"a_uint64": 3,
"a_uint64_array": [3, 4],
"a_vectord_3": [1.25, 2.25, 3.25],
"a_vectorf_3": [1.25, 2.25, 3.25],
"a_vectorh_3": [1.25, 2.25, 3.25],
"a_vectord_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_vectorf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_vectorh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]]
}
}
]
}
} |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestDynamicAttributeMemory.py | """Test node exercising retrieval of dynamic attribute array values from various memory locations.
Add an input attribute named "array" of type "int[]", another named "simple" of type "double", and output attributes
with matching names and types to pass data through using the dynamic attribute get() and set() methods.
"""
import numpy as np
import omni.graph.core as og
from omni.graph.core._impl.dtypes import Int
class OgnTestDynamicAttributeMemory:
@staticmethod
def compute(db) -> bool:
gpu_ptr_kind = og.PtrToPtrKind.NA
on_gpu = db.inputs.onGpu
if on_gpu:
gpu_ptr_kind = og.PtrToPtrKind.GPU if db.inputs.gpuPtrsOnGpu else og.PtrToPtrKind.CPU
db.set_dynamic_attribute_memory_location(on_gpu=on_gpu, gpu_ptr_kind=gpu_ptr_kind)
try:
array_value = db.inputs.array
simple_value = db.inputs.simple
except AttributeError:
# Only verify when the input dynamic attribute was present
db.outputs.inputMemoryVerified = False
db.outputs.outputMemoryVerified = False
return True
# CPU inputs are returned as np.ndarrays, GPU inputs are og.DataWrapper
if not on_gpu:
db.outputs.inputMemoryVerified = isinstance(array_value, np.ndarray) and isinstance(simple_value, float)
else:
_, *new_shape = array_value.shape
new_shape = tuple(new_shape)
db.outputs.inputMemoryVerified = (
array_value.gpu_ptr_kind == gpu_ptr_kind
and array_value.device.cuda
and array_value.is_array()
and array_value.dtype == Int()
and isinstance(simple_value, float)
)
try:
db.outputs.array = array_value
db.outputs.simple = simple_value
except AttributeError:
# Only verify when the output dynamic attribute was present
db.outputs.outputMemoryVerified = False
return True
# CPU inputs are returned as np.ndarrays, GPU inputs are og.DataWrapper
new_output_arr = db.outputs.array
new_output = db.outputs.simple
if not on_gpu:
db.outputs.outputMemoryVerified = isinstance(new_output_arr, np.ndarray) and isinstance(new_output, float)
else:
_, *new_shape = new_output_arr.shape
new_shape = tuple(new_shape)
db.outputs.outputMemoryVerified = (
new_output_arr.gpu_ptr_kind == gpu_ptr_kind
and new_output_arr.device.cuda
and new_output_arr.is_array()
and new_output_arr.dtype == Int()
and isinstance(new_output, float)
)
return True
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestSubtract.ogn | {
"TestSubtract": {
"version": 1,
"description": ["Example node subtracting a value from a vector, written in Python"],
"language": "python",
"uiName": "Test Node: Subtract (Python)",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
"exclude": ["tests", "usd", "docs"],
"inputs": {
"value_to_subtract": {
"type": "double",
"description": ["The value to subtract"],
"default": 1.0
},
"in_array": {
"type": "double[3][]",
"description": ["The input values to subtract from"],
"default": []
}
},
"outputs": {
"out_array": {
"type": "double[3][]",
"description": ["The output value"]
}
}
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnExecInputEnabledTest.py | """
This node's compute checks that its input attrib is properly enabled.
"""
import omni.graph.core as og
class OgnExecInputEnabledTest:
@staticmethod
def compute(db) -> bool:
if (
db.inputs.execInA == og.ExecutionAttributeState.ENABLED
and db.inputs.execInB == og.ExecutionAttributeState.ENABLED
):
db.log_warning("Unexpected execution with both execution inputs enabled")
return False
if db.inputs.execInA == og.ExecutionAttributeState.ENABLED:
db.outputs.execOutA = og.ExecutionAttributeState.ENABLED
return True
if db.inputs.execInB == og.ExecutionAttributeState.ENABLED:
db.outputs.execOutB = og.ExecutionAttributeState.ENABLED
return True
db.log_warning("Unexpected execution with no execution input enabled")
db.outputs.execOut = og.ExecutionAttributeState.DISABLED
return False
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnPerturbPoints.ogn | {
"PerturbPoints": {
"version": 1,
"description": "Randomly modify positions on a set of points",
"uiName": "Test Node: Randomly Perturb Points",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
"scheduling": ["threadsafe"],
"exclude": ["tests", "usd", "docs"],
"inputs": {
"points": {
"type": "pointf[3][]",
"description": "Points to be perturbed",
"uiName": "Original Points"
},
"minimum": {
"type": "pointf[3]",
"description": "Minimum values of the perturbation",
"uiName": "Perturb Minimum",
"default": [
0.0,
0.0,
0.0
]
},
"maximum": {
"type": "pointf[3]",
"description": "Maximum values of the perturbation",
"uiName": "Perturb Maximum",
"default": [
1.0,
1.0,
1.0
]
},
"percentModified": {
"type": "float",
"description": "Percentage of points to modify, decided by striding across point set",
"uiName": "Percentage Modified",
"default": 100.0
}
},
"outputs": {
"points": {
"type": "pointf[3][]",
"description": "Points that were perturbed",
"uiName": "Perturbed Points"
}
}
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestCategoryDefinitions.py | """Node that tests custom category assignment through extraction of the current category"""
import omni.graph.tools.ogn as ogn
class OgnTestCategoryDefinitions:
"""Extract the assigned category definition of a node type"""
@staticmethod
def compute(db) -> bool:
"""Compute only extracts the category name and puts it into the output"""
db.outputs.category = db.abi_node.get_node_type().get_metadata(ogn.MetadataKeys.CATEGORIES)
return True
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnBundleConsumerPy.ogn | {
"BundleConsumerPy": {
"version": 1,
"description": "Node that consumes bundle from producer for change tracking",
"language": "Python",
"categories": "internal:test",
"exclude": [ "usd", "docs" ],
"uiName": "Test Node: Bundle Properties",
"icon": {
"path": "TestNodeIcon.svg"
},
"inputs": {
"bundle": {
"type": "bundle",
"description": [ "Input Bundle" ]
}
},
"outputs": {
"bundle": {
"type": "bundle",
"description": [ "Output Bundle" ]
},
"hasOutputBundleChanged": {
"description": "Flag to detect if output bundle was updated.",
"type": "bool",
"default": false
}
}
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestWriteVariablePy.py | """
Test node for writing variables
"""
import omni.graph.core as og
class OgnTestWriteVariablePy:
"""Python version of OgnWriteVariable"""
@staticmethod
def compute(db) -> bool:
"""Write the given variable"""
try:
db.set_variable(db.inputs.variableName, db.inputs.value.value)
except og.OmniGraphError:
return False
# Output the value
value = db.inputs.value.value
if value is not None:
db.outputs.value = value
return True
@staticmethod
def initialize(graph_context, node):
function_callback = OgnTestWriteVariablePy.on_value_changed_callback
node.get_attribute("inputs:variableName").register_value_changed_callback(function_callback)
@staticmethod
def on_value_changed_callback(attr):
node = attr.get_node()
name = attr.get_attribute_data().get(False)
var = node.get_graph().find_variable(name)
value_attr = node.get_attribute("inputs:value")
old_type = value_attr.get_resolved_type()
# resolve the input variable
if not var:
value_attr.set_resolved_type(og.Type(og.BaseDataType.UNKNOWN))
elif var.type != old_type:
value_attr.set_resolved_type(og.Type(og.BaseDataType.UNKNOWN))
value_attr.set_resolved_type(var.type)
# resolve the output variable
value_attr = node.get_attribute("outputs:value")
old_type = value_attr.get_resolved_type()
if not var:
value_attr.set_resolved_type(og.Type(og.BaseDataType.UNKNOWN))
elif var.type != old_type:
value_attr.set_resolved_type(og.Type(og.BaseDataType.UNKNOWN))
value_attr.set_resolved_type(var.type)
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnPerturbBundlePoints.ogn | {
"PerturbBundlePoints": {
"version": 1,
"description": "Randomly modify positions on all points attributes within a bundle",
"uiName": "Test Node: Randomly Perturb Bundled Points",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
"exclude": ["tests", "usd", "docs"],
"inputs": {
"bundle": {
"type": "bundle",
"description": "Bundle containing arrays of points to be perturbed",
"uiName": "Original Bundle"
},
"minimum": {
"type": "pointf[3]",
"description": "Minimum values of the perturbation",
"uiName": "Perturb Minimum",
"default": [
0.0,
0.0,
0.0
]
},
"maximum": {
"type": "pointf[3]",
"description": "Maximum values of the perturbation",
"uiName": "Perturb Maximum",
"default": [
1.0,
1.0,
1.0
]
},
"percentModified": {
"type": "float",
"description": "Percentage of points to modify, decided by striding across point set",
"uiName": "Percentage Modified",
"default": 100.0
}
},
"outputs": {
"bundle": {
"type": "bundle",
"description": "Bundle containing arrays of points that were perturbed",
"uiName": "Perturbed Bundle"
}
}
}
} |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestSchedulingHintsList.py | """Empty test node used for checking scheduling hints"""
class OgnTestSchedulingHintsList:
@staticmethod
def compute(db) -> bool:
return True
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestExecutionTask.ogn | {
"TestExecutionTask": {
"version": 1,
"description": "Test whether node was executed within execution framework task",
"uiName": "Test Node: Execution Task",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
"exclude": ["tests", "usd", "docs"],
"scheduling": ["threadsafe"],
"outputs": {
"result": {
"type": "bool",
"description": "Set to true when this node was executed by execution framework. False otherwise",
"uiName": "Result"
}
}
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnComputeErrorPy.ogn | {
"ComputeErrorPy": {
"description": [
"Generates a customizable error during its compute(), for testing",
"purposes. Python version."
],
"metadata" : {
"uiName": "Generate compute error (Python)"
},
"language": "Python",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
"exclude": ["usd", "docs"],
"inputs": {
"severity": {
"description": "Severity of the error. 'none' disables the error.",
"type": "token",
"metadata": {
"allowedTokens": [ "none", "warning", "error" ]
},
"default": "none"
},
"message": {
"description": "Text of the error message.",
"type": "string"
},
"failCompute": {
"description": "If true, the compute() call will return failure to the evaluator.",
"type": "bool",
"default": false
},
"dummyIn": {
"description": "Dummy value to be copied to the output.",
"type": "int",
"default": 0
},
"deprecatedInOgn": {
"description": "Attribute which has been deprecated here in the .ogn file.",
"type": "float",
"deprecated": "Use 'dummyIn' instead."
},
"deprecatedInInit": {
"description": "Attribute which has been deprecated in the node's initialization code.",
"type": "float"
}
},
"outputs": {
"dummyOut": {
"description": "Value copied from 'dummyIn'",
"type": "int",
"default": 0
}
},
"tests": [
{ "inputs:dummyIn": 3, "outputs:dummyOut": 3}
]
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestScatter.ogn | {
"TestScatter" : {
"description": ["Test node to test out the effects of vectorization. Scatters the results of gathered compute back to FC"],
"version": 1,
"uiName": "Test Node: Scatter",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
"scheduling": ["threadsafe"],
"exclude": ["tests", "usd", "docs"],
"inputs": {
"gathered_paths": {
"description": ["The paths of the gathered objects"],
"type": "token[]",
"default": []
},
"rotations": {
"description": ["The rotations of the gathered points"],
"type": "double[3][]",
"default": []
}
},
"outputs": {
"gathered_paths": {
"description": [ "The paths of the gathered objects" ],
"type": "token[]",
"default": []
},
"rotations": {
"description": [ "The rotations of the gathered points" ],
"type": "double[3][]",
"default": []
},
"single_rotation": {
"description": [ "Placeholder single rotation until we get the scatter working properly" ],
"type": "double[3]",
"default": [0,0,0]
}
}
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestAllDataTypesCarb.ogn | {
"TestAllDataTypesCarb": {
"version": 1,
"description": [
"This node is meant to exercise the data access for all available data types used by the Carbonite type",
"configuration file. It includes all other data types as well, as confirmation that non-overridden",
"types retain their default types."
],
"uiName": "Test Node: Carbonite Data Type Override",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
"scheduling": ["threadsafe"],
"exclude": ["usd", "docs"],
"typeDefinitions": "TypeConfigurationCarbonite.json",
"inputs": {
"doNotCompute": { "description": "Prevent the compute from running", "type": "bool", "default": true },
"a_bool": { "description": "Computed Attribute", "type": "bool", "default": false },
"a_bool_array": { "description": "Input Attribute", "type": "bool[]", "default": [false, true] },
"a_colord_3": { "description": "Input Attribute", "type": "colord[3]", "default": [1.0, 2.0, 3.0] },
"a_colord_4": { "description": "Input Attribute", "type": "colord[4]", "default": [1.0, 2.0, 3.0, 4.0] },
"a_colorf_3": { "description": "Input Attribute", "type": "colorf[3]", "default": [1.0, 2.0, 3.0] },
"a_colorf_4": { "description": "Input Attribute", "type": "colorf[4]", "default": [1.0, 2.0, 3.0, 4.0] },
"a_colorh_3": { "description": "Input Attribute", "type": "colorh[3]", "default": [1.0, 2.0, 3.0] },
"a_colorh_4": { "description": "Input Attribute", "type": "colorh[4]", "default": [1.0, 2.0, 3.0, 4.0] },
"a_colord_3_array": { "description": "Input Attribute", "type": "colord[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_colord_4_array": { "description": "Input Attribute", "type": "colord[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] },
"a_colorf_3_array": { "description": "Input Attribute", "type": "colorf[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_colorf_4_array": { "description": "Input Attribute", "type": "colorf[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] },
"a_colorh_3_array": { "description": "Input Attribute", "type": "colorh[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_colorh_4_array": { "description": "Input Attribute", "type": "colorh[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] },
"a_double": { "description": "Input Attribute", "type": "double", "default": 1.0 },
"a_double_2": { "description": "Input Attribute", "type": "double[2]", "default": [1.0, 2.0] },
"a_double_3": { "description": "Input Attribute", "type": "double[3]", "default": [1.0, 2.0, 3.0] },
"a_double_4": { "description": "Input Attribute", "type": "double[4]", "default": [1.0, 2.0, 3.0, 4.0] },
"a_double_array": { "description": "Input Attribute", "type": "double[]", "default": [1.0, 2.0] },
"a_double_2_array": { "description": "Input Attribute", "type": "double[2][]", "default": [[1.0, 2.0], [11.0, 12.0]] },
"a_double_3_array": { "description": "Input Attribute", "type": "double[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_double_4_array": { "description": "Input Attribute", "type": "double[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] },
"a_execution": { "description": "Input Attribute", "type": "execution", "default": 1 },
"a_float": { "description": "Input Attribute", "type": "float", "default": 1.0 },
"a_float_2": { "description": "Input Attribute", "type": "float[2]", "default": [1.0, 2.0] },
"a_float_3": { "description": "Input Attribute", "type": "float[3]", "default": [1.0, 2.0, 3.0] },
"a_float_4": { "description": "Input Attribute", "type": "float[4]", "default": [1.0, 2.0, 3.0, 4.0] },
"a_float_array": { "description": "Input Attribute", "type": "float[]", "default": [1.0, 2.0] },
"a_float_2_array": { "description": "Input Attribute", "type": "float[2][]", "default": [[1.0, 2.0], [11.0, 12.0]] },
"a_float_3_array": { "description": "Input Attribute", "type": "float[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_float_4_array": { "description": "Input Attribute", "type": "float[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] },
"a_frame_4": { "description": "Input Attribute", "type": "frame[4]", "default": [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]] },
"a_frame_4_array": { "description": "Input Attribute", "type": "frame[4][]", "default": [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]] },
"a_half": { "description": "Input Attribute", "type": "half", "default": 1.0 },
"a_half_2": { "description": "Input Attribute", "type": "half[2]", "default": [1.0, 2.0] },
"a_half_3": { "description": "Input Attribute", "type": "half[3]", "default": [1.0, 2.0, 3.0] },
"a_half_4": { "description": "Input Attribute", "type": "half[4]", "default": [1.0, 2.0, 3.0, 4.0] },
"a_half_array": { "description": "Input Attribute", "type": "half[]", "default": [1.0, 2.0] },
"a_half_2_array": { "description": "Input Attribute", "type": "half[2][]", "default": [[1.0, 2.0], [11.0, 12.0]] },
"a_half_3_array": { "description": "Input Attribute", "type": "half[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_half_4_array": { "description": "Input Attribute", "type": "half[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] },
"a_int": { "description": "Input Attribute", "type": "int", "default": 1 },
"a_int_2": { "description": "Input Attribute", "type": "int[2]", "default": [1, 2] },
"a_int_3": { "description": "Input Attribute", "type": "int[3]", "default": [1, 2, 3] },
"a_int_4": { "description": "Input Attribute", "type": "int[4]", "default": [1, 2, 3, 4] },
"a_int_array": { "description": "Input Attribute", "type": "int[]", "default": [1, 2] },
"a_int_2_array": { "description": "Input Attribute", "type": "int[2][]", "default": [[1, 2], [3, 4]] },
"a_int_3_array": { "description": "Input Attribute", "type": "int[3][]", "default": [[1, 2, 3], [4, 5, 6]] },
"a_int_4_array": { "description": "Input Attribute", "type": "int[4][]", "default": [[1, 2, 3, 4], [5, 6, 7, 8]] },
"a_int64": { "description": "Input Attribute", "type": "int64", "default": 12345 },
"a_int64_array": { "description": "Input Attribute", "type": "int64[]", "default": [12345, 23456] },
"a_matrixd_2": { "description": "Input Attribute", "type": "matrixd[2]", "default": [[1.0, 2.0], [3.0, 4.0]] },
"a_matrixd_3": { "description": "Input Attribute", "type": "matrixd[3]", "default": [[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]] },
"a_matrixd_4": { "description": "Input Attribute", "type": "matrixd[4]", "default": [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]] },
"a_matrixd_2_array": { "description": "Input Attribute", "type": "matrixd[2][]", "default": [[[1.0, 2.0], [3.0, 4.0]], [[11.0, 12.0], [13.0, 14.0]]] },
"a_matrixd_3_array": { "description": "Input Attribute", "type": "matrixd[3][]", "default":[[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]], [[11.0, 12.0, 13.0], [14.0, 15.0, 16.0], [17.0, 18.0, 19.0]]] },
"a_matrixd_4_array": { "description": "Input Attribute", "type": "matrixd[4][]", "default": [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]] },
"a_normald_3": { "description": "Input Attribute", "type": "normald[3]", "default": [1.0, 2.0, 3.0] },
"a_normalf_3": { "description": "Input Attribute", "type": "normalf[3]", "default": [1.0, 2.0, 3.0] },
"a_normalh_3": { "description": "Input Attribute", "type": "normalh[3]", "default": [1.0, 2.0, 3.0] },
"a_normald_3_array": { "description": "Input Attribute", "type": "normald[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_normalf_3_array": { "description": "Input Attribute", "type": "normalf[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_normalh_3_array": { "description": "Input Attribute", "type": "normalh[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_objectId": { "description": "Input Attribute", "type": "objectId", "default": 1 },
"a_objectId_array": { "description": "Input Attribute", "type": "objectId[]", "default": [1, 2] },
"a_pointd_3": { "description": "Input Attribute", "type": "pointd[3]", "default": [1.0, 2.0, 3.0] },
"a_pointf_3": { "description": "Input Attribute", "type": "pointf[3]", "default": [1.0, 2.0, 3.0] },
"a_pointh_3": { "description": "Input Attribute", "type": "pointh[3]", "default": [1.0, 2.0, 3.0] },
"a_pointd_3_array": { "description": "Input Attribute", "type": "pointd[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_pointf_3_array": { "description": "Input Attribute", "type": "pointf[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_pointh_3_array": { "description": "Input Attribute", "type": "pointh[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_quatd_4": { "description": "Input Attribute", "type": "quatd[4]", "default": [1.0, 2.0, 3.0, 4.0] },
"a_quatf_4": { "description": "Input Attribute", "type": "quatf[4]", "default": [1.0, 2.0, 3.0, 4.0] },
"a_quath_4": { "description": "Input Attribute", "type": "quath[4]", "default": [1.0, 2.0, 3.0, 4.0] },
"a_quatd_4_array": { "description": "Input Attribute", "type": "quatd[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] },
"a_quatf_4_array": { "description": "Input Attribute", "type": "quatf[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] },
"a_quath_4_array": { "description": "Input Attribute", "type": "quath[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] },
"a_string": { "description": "Input Attribute", "type": "string", "default": "Rey" },
"a_texcoordd_2": { "description": "Input Attribute", "type": "texcoordd[2]", "default": [1.0, 2.0] },
"a_texcoordd_3": { "description": "Input Attribute", "type": "texcoordd[3]", "default": [1.0, 2.0, 3.0] },
"a_texcoordf_2": { "description": "Input Attribute", "type": "texcoordf[2]", "default": [1.0, 2.0] },
"a_texcoordf_3": { "description": "Input Attribute", "type": "texcoordf[3]", "default": [1.0, 2.0, 3.0] },
"a_texcoordh_2": { "description": "Input Attribute", "type": "texcoordh[2]", "default": [1.0, 2.0] },
"a_texcoordh_3": { "description": "Input Attribute", "type": "texcoordh[3]", "default": [1.0, 2.0, 3.0] },
"a_texcoordd_2_array": { "description": "Input Attribute", "type": "texcoordd[2][]", "default": [[1.0, 2.0], [11.0, 12.0]] },
"a_texcoordd_3_array": { "description": "Input Attribute", "type": "texcoordd[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_texcoordf_2_array": { "description": "Input Attribute", "type": "texcoordf[2][]", "default": [[1.0, 2.0], [11.0, 12.0]] },
"a_texcoordf_3_array": { "description": "Input Attribute", "type": "texcoordf[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_texcoordh_2_array": { "description": "Input Attribute", "type": "texcoordh[2][]", "default": [[1.0, 2.0], [11.0, 12.0]] },
"a_texcoordh_3_array": { "description": "Input Attribute", "type": "texcoordh[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_timecode": { "description": "Input Attribute", "type": "timecode", "default": 1.0 },
"a_timecode_array": { "description": "Input Attribute", "type": "timecode[]", "default": [1.0, 2.0] },
"a_token": { "description": "Input Attribute", "type": "token", "default": "Sith" },
"a_token_array": { "description": "Input Attribute", "type": "token[]", "default": ["Kylo", "Ren"] },
"a_uchar": { "description": "Input Attribute", "type": "uchar", "default": 1 },
"a_uchar_array": { "description": "Input Attribute", "type": "uchar[]", "default": [1, 2] },
"a_uint": { "description": "Input Attribute", "type": "uint", "default": 1 },
"a_uint_array": { "description": "Input Attribute", "type": "uint[]", "default": [1, 2] },
"a_uint64": { "description": "Input Attribute", "type": "uint64", "default": 1 },
"a_uint64_array": { "description": "Input Attribute", "type": "uint64[]", "default": [1, 2] },
"a_vectord_3": { "description": "Input Attribute", "type": "vectord[3]", "default": [1.0, 2.0, 3.0] },
"a_vectorf_3": { "description": "Input Attribute", "type": "vectorf[3]", "default": [1.0, 2.0, 3.0] },
"a_vectorh_3": { "description": "Input Attribute", "type": "vectorh[3]", "default": [1.0, 2.0, 3.0] },
"a_vectord_3_array": { "description": "Input Attribute", "type": "vectord[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_vectorf_3_array": { "description": "Input Attribute", "type": "vectorf[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] },
"a_vectorh_3_array": { "description": "Input Attribute", "type": "vectorh[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }
},
"outputs": {
"a_bool": { "description": "Computed Attribute", "type": "bool", "default": true },
"a_bool_array": { "description": "Computed Attribute", "type": "bool[]", "default": [true, false] },
"a_colord_3": { "description": "Computed Attribute", "type": "colord[3]", "default": [1.5, 2.5, 3.5] },
"a_colord_4": { "description": "Computed Attribute", "type": "colord[4]", "default": [1.5, 2.5, 3.5, 4.5] },
"a_colorf_3": { "description": "Computed Attribute", "type": "colorf[3]", "default": [1.5, 2.5, 3.5] },
"a_colorf_4": { "description": "Computed Attribute", "type": "colorf[4]", "default": [1.5, 2.5, 3.5, 4.5] },
"a_colorh_3": { "description": "Computed Attribute", "type": "colorh[3]", "default": [1.5, 2.5, 3.5] },
"a_colorh_4": { "description": "Computed Attribute", "type": "colorh[4]", "default": [1.5, 2.5, 3.5, 4.5] },
"a_colord_3_array": { "description": "Computed Attribute", "type": "colord[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_colord_4_array": { "description": "Computed Attribute", "type": "colord[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] },
"a_colorf_3_array": { "description": "Computed Attribute", "type": "colorf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_colorf_4_array": { "description": "Computed Attribute", "type": "colorf[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] },
"a_colorh_3_array": { "description": "Computed Attribute", "type": "colorh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_colorh_4_array": { "description": "Computed Attribute", "type": "colorh[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] },
"a_double": { "description": "Computed Attribute", "type": "double", "default": 1.5 },
"a_double_2": { "description": "Computed Attribute", "type": "double[2]", "default": [1.5, 2.5] },
"a_double_3": { "description": "Computed Attribute", "type": "double[3]", "default": [1.5, 2.5, 3.5] },
"a_double_4": { "description": "Computed Attribute", "type": "double[4]", "default": [1.5, 2.5, 3.5, 4.5] },
"a_double_array": { "description": "Computed Attribute", "type": "double[]", "default": [1.5, 2.5] },
"a_double_2_array": { "description": "Computed Attribute", "type": "double[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] },
"a_double_3_array": { "description": "Computed Attribute", "type": "double[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_double_4_array": { "description": "Computed Attribute", "type": "double[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] },
"a_execution": { "description": "Computed Attribute", "type": "execution", "default": 2 },
"a_float": { "description": "Computed Attribute", "type": "float", "default": 1.5 },
"a_float_2": { "description": "Computed Attribute", "type": "float[2]", "default": [1.5, 2.5] },
"a_float_3": { "description": "Computed Attribute", "type": "float[3]", "default": [1.5, 2.5, 3.5] },
"a_float_4": { "description": "Computed Attribute", "type": "float[4]", "default": [1.5, 2.5, 3.5, 4.5] },
"a_float_array": { "description": "Computed Attribute", "type": "float[]", "default": [1.5, 2.5] },
"a_float_2_array": { "description": "Computed Attribute", "type": "float[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] },
"a_float_3_array": { "description": "Computed Attribute", "type": "float[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_float_4_array": { "description": "Computed Attribute", "type": "float[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] },
"a_frame_4": { "description": "Computed Attribute", "type": "frame[4]", "default": [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]] },
"a_frame_4_array": { "description": "Computed Attribute", "type": "frame[4][]", "default": [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]] },
"a_half": { "description": "Computed Attribute", "type": "half", "default": 1.5 },
"a_half_2": { "description": "Computed Attribute", "type": "half[2]", "default": [1.5, 2.5] },
"a_half_3": { "description": "Computed Attribute", "type": "half[3]", "default": [1.5, 2.5, 3.5] },
"a_half_4": { "description": "Computed Attribute", "type": "half[4]", "default": [1.5, 2.5, 3.5, 4.5] },
"a_half_array": { "description": "Computed Attribute", "type": "half[]", "default": [1.5, 2.5] },
"a_half_2_array": { "description": "Computed Attribute", "type": "half[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] },
"a_half_3_array": { "description": "Computed Attribute", "type": "half[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_half_4_array": { "description": "Computed Attribute", "type": "half[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] },
"a_int": { "description": "Computed Attribute", "type": "int", "default": 1 },
"a_int_2": { "description": "Computed Attribute", "type": "int[2]", "default": [1, 2] },
"a_int_3": { "description": "Computed Attribute", "type": "int[3]", "default": [1, 2, 3] },
"a_int_4": { "description": "Computed Attribute", "type": "int[4]", "default": [1, 2, 3, 4] },
"a_int_array": { "description": "Computed Attribute", "type": "int[]", "default": [1, 2] },
"a_int_2_array": { "description": "Computed Attribute", "type": "int[2][]", "default": [[1, 2], [3, 4]] },
"a_int_3_array": { "description": "Computed Attribute", "type": "int[3][]", "default": [[1, 2, 3], [4, 5, 6]] },
"a_int_4_array": { "description": "Computed Attribute", "type": "int[4][]", "default": [[1, 2, 3, 4], [5, 6, 7, 8]] },
"a_int64": { "description": "Computed Attribute", "type": "int64", "default": 12345 },
"a_int64_array": { "description": "Computed Attribute", "type": "int64[]", "default": [12345, 23456] },
"a_matrixd_2": { "description": "Computed Attribute", "type": "matrixd[2]", "default": [[1.5, 2.5], [3.5, 4.5]] },
"a_matrixd_3": { "description": "Computed Attribute", "type": "matrixd[3]", "default": [[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]] },
"a_matrixd_4": { "description": "Computed Attribute", "type": "matrixd[4]", "default": [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]] },
"a_matrixd_2_array": { "description": "Computed Attribute", "type": "matrixd[2][]", "default": [[[1.5, 2.5], [3.5, 4.5]], [[11.5, 12.5], [13.5, 14.5]]] },
"a_matrixd_3_array": { "description": "Computed Attribute", "type": "matrixd[3][]", "default":[[[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]], [[11.5, 12.5, 13.5], [14.5, 15.5, 16.5], [17.5, 18.5, 19.5]]] },
"a_matrixd_4_array": { "description": "Computed Attribute", "type": "matrixd[4][]", "default": [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]] },
"a_normald_3": { "description": "Computed Attribute", "type": "normald[3]", "default": [1.5, 2.5, 3.5] },
"a_normalf_3": { "description": "Computed Attribute", "type": "normalf[3]", "default": [1.5, 2.5, 3.5] },
"a_normalh_3": { "description": "Computed Attribute", "type": "normalh[3]", "default": [1.5, 2.5, 3.5] },
"a_normald_3_array": { "description": "Computed Attribute", "type": "normald[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_normalf_3_array": { "description": "Computed Attribute", "type": "normalf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_normalh_3_array": { "description": "Computed Attribute", "type": "normalh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_objectId": { "description": "Computed Attribute", "type": "objectId", "default": 2 },
"a_objectId_array": { "description": "Computed Attribute", "type": "objectId[]", "default": [2, 3] },
"a_pointd_3": { "description": "Computed Attribute", "type": "pointd[3]", "default": [1.5, 2.5, 3.5] },
"a_pointf_3": { "description": "Computed Attribute", "type": "pointf[3]", "default": [1.5, 2.5, 3.5] },
"a_pointh_3": { "description": "Computed Attribute", "type": "pointh[3]", "default": [1.5, 2.5, 3.5] },
"a_pointd_3_array": { "description": "Computed Attribute", "type": "pointd[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_pointf_3_array": { "description": "Computed Attribute", "type": "pointf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_pointh_3_array": { "description": "Computed Attribute", "type": "pointh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_quatd_4": { "description": "Computed Attribute", "type": "quatd[4]", "default": [1.5, 2.5, 3.5, 4.5] },
"a_quatf_4": { "description": "Computed Attribute", "type": "quatf[4]", "default": [1.5, 2.5, 3.5, 4.5] },
"a_quath_4": { "description": "Computed Attribute", "type": "quath[4]", "default": [1.5, 2.5, 3.5, 4.5] },
"a_quatd_4_array": { "description": "Computed Attribute", "type": "quatd[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] },
"a_quatf_4_array": { "description": "Computed Attribute", "type": "quatf[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] },
"a_quath_4_array": { "description": "Computed Attribute", "type": "quath[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] },
"a_string": { "description": "Computed Attribute", "type": "string", "default": "Snoke" },
"a_texcoordd_2": { "description": "Computed Attribute", "type": "texcoordd[2]", "default": [1.5, 2.5] },
"a_texcoordd_3": { "description": "Computed Attribute", "type": "texcoordd[3]", "default": [1.5, 2.5, 3.5] },
"a_texcoordf_2": { "description": "Computed Attribute", "type": "texcoordf[2]", "default": [1.5, 2.5] },
"a_texcoordf_3": { "description": "Computed Attribute", "type": "texcoordf[3]", "default": [1.5, 2.5, 3.5] },
"a_texcoordh_2": { "description": "Computed Attribute", "type": "texcoordh[2]", "default": [1.5, 2.5] },
"a_texcoordh_3": { "description": "Computed Attribute", "type": "texcoordh[3]", "default": [1.5, 2.5, 3.5] },
"a_texcoordd_2_array": { "description": "Computed Attribute", "type": "texcoordd[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] },
"a_texcoordd_3_array": { "description": "Computed Attribute", "type": "texcoordd[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_texcoordf_2_array": { "description": "Computed Attribute", "type": "texcoordf[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] },
"a_texcoordf_3_array": { "description": "Computed Attribute", "type": "texcoordf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_texcoordh_2_array": { "description": "Computed Attribute", "type": "texcoordh[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] },
"a_texcoordh_3_array": { "description": "Computed Attribute", "type": "texcoordh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_timecode": { "description": "Computed Attribute", "type": "timecode", "default": 2.5 },
"a_timecode_array": { "description": "Computed Attribute", "type": "timecode[]", "default": [2.5, 3.5] },
"a_token": { "description": "Computed Attribute", "type": "token", "default": "Jedi" },
"a_token_array": { "description": "Computed Attribute", "type": "token[]", "default": ["Luke", "Skywalker"] },
"a_uchar": { "description": "Computed Attribute", "type": "uchar", "default": 2 },
"a_uchar_array": { "description": "Computed Attribute", "type": "uchar[]", "default": [2, 3] },
"a_uint": { "description": "Computed Attribute", "type": "uint", "default": 2 },
"a_uint_array": { "description": "Computed Attribute", "type": "uint[]", "default": [2, 3] },
"a_uint64": { "description": "Computed Attribute", "type": "uint64", "default": 2 },
"a_uint64_array": { "description": "Computed Attribute", "type": "uint64[]", "default": [2, 3] },
"a_vectord_3": { "description": "Computed Attribute", "type": "vectord[3]", "default": [1.5, 2.5, 3.5] },
"a_vectorf_3": { "description": "Computed Attribute", "type": "vectorf[3]", "default": [1.5, 2.5, 3.5] },
"a_vectorh_3": { "description": "Computed Attribute", "type": "vectorh[3]", "default": [1.5, 2.5, 3.5] },
"a_vectord_3_array": { "description": "Computed Attribute", "type": "vectord[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_vectorf_3_array": { "description": "Computed Attribute", "type": "vectorf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] },
"a_vectorh_3_array": { "description": "Computed Attribute", "type": "vectorh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }
},
"tests": [
{
"description": "Check to see if the outputs get their expected defaults when compute is bypassed",
"inputs": { "inputs:doNotCompute": true },
"outputs": {
"a_bool": true,
"a_bool_array": [true, false],
"a_colord_3": [1.5, 2.5, 3.5],
"a_colord_4": [1.5, 2.5, 3.5, 4.5],
"a_colorf_3": [1.5, 2.5, 3.5],
"a_colorf_4": [1.5, 2.5, 3.5, 4.5],
"a_colorh_3": [1.5, 2.5, 3.5],
"a_colorh_4": [1.5, 2.5, 3.5, 4.5],
"a_colord_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_colord_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]],
"a_colorf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_colorf_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]],
"a_colorh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_colorh_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]],
"a_double": 1.5,
"a_double_2": [1.5, 2.5],
"a_double_3": [1.5, 2.5, 3.5],
"a_double_4": [1.5, 2.5, 3.5, 4.5],
"a_double_array": [1.5, 2.5],
"a_double_2_array": [[1.5, 2.5], [11.5, 12.5]],
"a_double_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_double_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]],
"a_execution": 2,
"a_float": 1.5,
"a_float_2": [1.5, 2.5],
"a_float_3": [1.5, 2.5, 3.5],
"a_float_4": [1.5, 2.5, 3.5, 4.5],
"a_float_array": [1.5, 2.5],
"a_float_2_array": [[1.5, 2.5], [11.5, 12.5]],
"a_float_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_float_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]],
"a_frame_4": [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]],
"a_frame_4_array": [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]],
"a_half": 1.5,
"a_half_2": [1.5, 2.5],
"a_half_3": [1.5, 2.5, 3.5],
"a_half_4": [1.5, 2.5, 3.5, 4.5],
"a_half_array": [1.5, 2.5],
"a_half_2_array": [[1.5, 2.5], [11.5, 12.5]],
"a_half_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_half_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]],
"a_int": 1,
"a_int_2": [1, 2],
"a_int_3": [1, 2, 3],
"a_int_4": [1, 2, 3, 4],
"a_int_array": [1, 2],
"a_int_2_array": [[1, 2], [3, 4]],
"a_int_3_array": [[1, 2, 3], [4, 5, 6]],
"a_int_4_array": [[1, 2, 3, 4], [5, 6, 7, 8]],
"a_int64": 12345,
"a_int64_array": [12345, 23456],
"a_matrixd_2": [[1.5, 2.5], [3.5, 4.5]],
"a_matrixd_3": [[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]],
"a_matrixd_4": [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]],
"a_matrixd_2_array": [[[1.5, 2.5], [3.5, 4.5]], [[11.5, 12.5], [13.5, 14.5]]],
"a_matrixd_3_array": [[[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]], [[11.5, 12.5, 13.5], [14.5, 15.5, 16.5], [17.5, 18.5, 19.5]]],
"a_matrixd_4_array": [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]],
"a_normald_3": [1.5, 2.5, 3.5],
"a_normalf_3": [1.5, 2.5, 3.5],
"a_normalh_3": [1.5, 2.5, 3.5],
"a_normald_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_normalf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_normalh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_objectId": 2,
"a_objectId_array": [2, 3],
"a_pointd_3": [1.5, 2.5, 3.5],
"a_pointf_3": [1.5, 2.5, 3.5],
"a_pointh_3": [1.5, 2.5, 3.5],
"a_pointd_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_pointf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_pointh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_quatd_4": [1.5, 2.5, 3.5, 4.5],
"a_quatf_4": [1.5, 2.5, 3.5, 4.5],
"a_quath_4": [1.5, 2.5, 3.5, 4.5],
"a_quatd_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]],
"a_quatf_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]],
"a_quath_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]],
"a_string": "Snoke",
"a_texcoordd_2": [1.5, 2.5],
"a_texcoordd_3": [1.5, 2.5, 3.5],
"a_texcoordf_2": [1.5, 2.5],
"a_texcoordf_3": [1.5, 2.5, 3.5],
"a_texcoordh_2": [1.5, 2.5],
"a_texcoordh_3": [1.5, 2.5, 3.5],
"a_texcoordd_2_array": [[1.5, 2.5], [11.5, 12.5]],
"a_texcoordd_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_texcoordf_2_array": [[1.5, 2.5], [11.5, 12.5]],
"a_texcoordf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_texcoordh_2_array": [[1.5, 2.5], [11.5, 12.5]],
"a_texcoordh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_timecode": 2.5,
"a_timecode_array": [2.5, 3.5],
"a_token": "Jedi",
"a_token_array": ["Luke", "Skywalker"],
"a_uchar": 2,
"a_uchar_array": [2, 3],
"a_uint": 2,
"a_uint_array": [2, 3],
"a_uint64": 2,
"a_uint64_array": [2, 3],
"a_vectord_3": [1.5, 2.5, 3.5],
"a_vectorf_3": [1.5, 2.5, 3.5],
"a_vectorh_3": [1.5, 2.5, 3.5],
"a_vectord_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_vectorf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]],
"a_vectorh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]]
}
},
{
"description": "Regular evaluation where the default inputs are copied to the outputs",
"inputs": { "inputs:doNotCompute": false },
"outputs": {
"a_bool": false,
"a_bool_array": [false, true],
"a_colord_3": [1.0, 2.0, 3.0],
"a_colord_4": [1.0, 2.0, 3.0, 4.0],
"a_colorf_3": [1.0, 2.0, 3.0],
"a_colorf_4": [1.0, 2.0, 3.0, 4.0],
"a_colorh_3": [1.0, 2.0, 3.0],
"a_colorh_4": [1.0, 2.0, 3.0, 4.0],
"a_colord_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_colord_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]],
"a_colorf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_colorf_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]],
"a_colorh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_colorh_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]],
"a_double": 1.0,
"a_double_2": [1.0, 2.0],
"a_double_3": [1.0, 2.0, 3.0],
"a_double_4": [1.0, 2.0, 3.0, 4.0],
"a_double_array": [1.0, 2.0],
"a_double_2_array": [[1.0, 2.0], [11.0, 12.0]],
"a_double_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_double_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]],
"a_execution": 1,
"a_float": 1.0,
"a_float_2": [1.0, 2.0],
"a_float_3": [1.0, 2.0, 3.0],
"a_float_4": [1.0, 2.0, 3.0, 4.0],
"a_float_array": [1.0, 2.0],
"a_float_2_array": [[1.0, 2.0], [11.0, 12.0]],
"a_float_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_float_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]],
"a_frame_4": [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]],
"a_frame_4_array": [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]],
"a_half": 1.0,
"a_half_2": [1.0, 2.0],
"a_half_3": [1.0, 2.0, 3.0],
"a_half_4": [1.0, 2.0, 3.0, 4.0],
"a_half_array": [1.0, 2.0],
"a_half_2_array": [[1.0, 2.0], [11.0, 12.0]],
"a_half_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_half_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]],
"a_int": 1,
"a_int_2": [1, 2],
"a_int_3": [1, 2, 3],
"a_int_4": [1, 2, 3, 4],
"a_int_array": [1, 2],
"a_int_2_array": [[1, 2], [3, 4]],
"a_int_3_array": [[1, 2, 3], [4, 5, 6]],
"a_int_4_array": [[1, 2, 3, 4], [5, 6, 7, 8]],
"a_int64": 12345,
"a_int64_array": [12345, 23456],
"a_matrixd_2": [[1.0, 2.0], [3.0, 4.0]],
"a_matrixd_3": [[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]],
"a_matrixd_4": [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]],
"a_matrixd_2_array": [[[1.0, 2.0], [3.0, 4.0]], [[11.0, 12.0], [13.0, 14.0]]],
"a_matrixd_3_array": [[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]], [[11.0, 12.0, 13.0], [14.0, 15.0, 16.0], [17.0, 18.0, 19.0]]],
"a_matrixd_4_array": [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]],
"a_normald_3": [1.0, 2.0, 3.0],
"a_normalf_3": [1.0, 2.0, 3.0],
"a_normalh_3": [1.0, 2.0, 3.0],
"a_normald_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_normalf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_normalh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_objectId": 1,
"a_objectId_array": [1, 2],
"a_pointd_3": [1.0, 2.0, 3.0],
"a_pointf_3": [1.0, 2.0, 3.0],
"a_pointh_3": [1.0, 2.0, 3.0],
"a_pointd_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_pointf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_pointh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_quatd_4": [1.0, 2.0, 3.0, 4.0],
"a_quatf_4": [1.0, 2.0, 3.0, 4.0],
"a_quath_4": [1.0, 2.0, 3.0, 4.0],
"a_quatd_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]],
"a_quatf_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]],
"a_quath_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]],
"a_string": "Rey",
"a_texcoordd_2": [1.0, 2.0],
"a_texcoordd_3": [1.0, 2.0, 3.0],
"a_texcoordf_2": [1.0, 2.0],
"a_texcoordf_3": [1.0, 2.0, 3.0],
"a_texcoordh_2": [1.0, 2.0],
"a_texcoordh_3": [1.0, 2.0, 3.0],
"a_texcoordd_2_array": [[1.0, 2.0], [11.0, 12.0]],
"a_texcoordd_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_texcoordf_2_array": [[1.0, 2.0], [11.0, 12.0]],
"a_texcoordf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_texcoordh_2_array": [[1.0, 2.0], [11.0, 12.0]],
"a_texcoordh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_timecode": 1.0,
"a_timecode_array": [1.0, 2.0],
"a_token": "Sith",
"a_token_array": ["Kylo", "Ren"],
"a_uchar": 1,
"a_uchar_array": [1, 2],
"a_uint": 1,
"a_uint_array": [1, 2],
"a_uint64": 1,
"a_uint64_array": [1, 2],
"a_vectord_3": [1.0, 2.0, 3.0],
"a_vectorf_3": [1.0, 2.0, 3.0],
"a_vectorh_3": [1.0, 2.0, 3.0],
"a_vectord_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_vectorf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]],
"a_vectorh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]]
}
},
{
"description": "Regular evaluation where non-default inputs are set and copied to the outputs",
"inputs": {
"inputs:doNotCompute": false,
"a_bool": true,
"a_bool_array": [true, true],
"a_colord_3": [1.25, 2.25, 3.25],
"a_colord_4": [1.25, 2.25, 3.25, 4.25],
"a_colorf_3": [1.25, 2.25, 3.25],
"a_colorf_4": [1.25, 2.25, 3.25, 4.25],
"a_colorh_3": [1.25, 2.25, 3.25],
"a_colorh_4": [1.25, 2.25, 3.25, 4.25],
"a_colord_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_colord_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_colorf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_colorf_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_colorh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_colorh_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_double": 1.25,
"a_double_2": [1.25, 2.25],
"a_double_3": [1.25, 2.25, 3.25],
"a_double_4": [1.25, 2.25, 3.25, 4.25],
"a_double_array": [1.25, 2.25],
"a_double_2_array": [[1.25, 2.25], [11.25, 12.25]],
"a_double_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_double_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_execution": 3,
"a_float": 1.25,
"a_float_2": [1.25, 2.25],
"a_float_3": [1.25, 2.25, 3.25],
"a_float_4": [1.25, 2.25, 3.25, 4.25],
"a_float_array": [1.25, 2.25],
"a_float_2_array": [[1.25, 2.25], [11.25, 12.25]],
"a_float_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_float_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_frame_4": [[1.25, 2.25, 3.25, 4.25], [5.25, 6.25, 7.25, 8.25], [9.25, 10.25, 11.25, 12.25], [13.25, 14.25, 15.25, 16.25]],
"a_frame_4_array": [[[1.25, 2.25, 3.25, 4.25], [5.25, 6.25, 7.25, 8.25], [9.25, 10.25, 11.25, 12.25], [13.25, 14.25, 15.25, 16.25]], [[11.25, 12.25, 13.25, 14.25], [15.25, 16.25, 17.25, 18.25], [19.25, 20.25, 21.25, 22.25], [23.25, 24.25, 25.25, 26.25]]],
"a_half": 1.25,
"a_half_2": [1.25, 2.25],
"a_half_3": [1.25, 2.25, 3.25],
"a_half_4": [1.25, 2.25, 3.25, 4.25],
"a_half_array": [1.25, 2.25],
"a_half_2_array": [[1.25, 2.25], [11.25, 12.25]],
"a_half_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_half_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_int": 11,
"a_int_2": [11, 12],
"a_int_3": [11, 12, 13],
"a_int_4": [11, 12, 13, 14],
"a_int_array": [11, 12],
"a_int_2_array": [[11, 12], [13, 14]],
"a_int_3_array": [[11, 12, 13], [14, 15, 16]],
"a_int_4_array": [[11, 12, 13, 14], [15, 16, 17, 18]],
"a_int64": 34567,
"a_int64_array": [45678, 56789],
"a_matrixd_2": [[1.25, 2.25], [3.25, 4.25]],
"a_matrixd_3": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25], [21.25, 22.25, 23.25]],
"a_matrixd_4": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25], [21.25, 22.25, 23.25, 24.25], [31.25, 32.25, 33.25, 34.25]],
"a_matrixd_2_array": [[[1.25, 2.25], [3.25, 4.25]], [[11.25, 12.25], [13.25, 14.25]]],
"a_matrixd_3_array": [[[1.25, 2.25, 3.25], [4.25, 5.25, 6.25], [7.25, 8.25, 9.25]], [[11.25, 12.25, 13.25], [14.25, 15.25, 16.25], [17.25, 18.25, 19.25]]],
"a_matrixd_4_array": [[[1.25, 2.25, 3.25, 4.25], [5.25, 6.25, 7.25, 8.25], [9.25, 10.25, 11.25, 12.25], [13.25, 14.25, 15.25, 16.25]], [[11.25, 12.25, 13.25, 14.25], [15.25, 16.25, 17.25, 18.25], [19.25, 20.25, 21.25, 22.25], [23.25, 24.25, 25.25, 26.25]]],
"a_normald_3": [1.25, 2.25, 3.25],
"a_normalf_3": [1.25, 2.25, 3.25],
"a_normalh_3": [1.25, 2.25, 3.25],
"a_normald_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_normalf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_normalh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_objectId": 3,
"a_objectId_array": [3, 4],
"a_pointd_3": [1.25, 2.25, 3.25],
"a_pointf_3": [1.25, 2.25, 3.25],
"a_pointh_3": [1.25, 2.25, 3.25],
"a_pointd_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_pointf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_pointh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_quatd_4": [1.25, 2.25, 3.25, 4.25],
"a_quatf_4": [1.25, 2.25, 3.25, 4.25],
"a_quath_4": [1.25, 2.25, 3.25, 4.25],
"a_quatd_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_quatf_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_quath_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_string": "Palpatine",
"a_texcoordd_2": [1.25, 2.25],
"a_texcoordd_3": [1.25, 2.25, 3.25],
"a_texcoordf_2": [1.25, 2.25],
"a_texcoordf_3": [1.25, 2.25, 3.25],
"a_texcoordh_2": [1.25, 2.25],
"a_texcoordh_3": [1.25, 2.25, 3.25],
"a_texcoordd_2_array": [[1.25, 2.25], [11.25, 12.25]],
"a_texcoordd_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_texcoordf_2_array": [[1.25, 2.25], [11.25, 12.25]],
"a_texcoordf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_texcoordh_2_array": [[1.25, 2.25], [11.25, 12.25]],
"a_texcoordh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_timecode": 1.25,
"a_timecode_array": [1.25, 2.25],
"a_token": "Rebels",
"a_token_array": ["Han", "Solo"],
"a_uchar": 3,
"a_uchar_array": [3, 4],
"a_uint": 3,
"a_uint_array": [3, 4],
"a_uint64": 3,
"a_uint64_array": [3, 4],
"a_vectord_3": [1.25, 2.25, 3.25],
"a_vectorf_3": [1.25, 2.25, 3.25],
"a_vectorh_3": [1.25, 2.25, 3.25],
"a_vectord_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_vectorf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_vectorh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]]
},
"outputs": {
"a_bool": true,
"a_bool_array": [true, true],
"a_colord_3": [1.25, 2.25, 3.25],
"a_colord_4": [1.25, 2.25, 3.25, 4.25],
"a_colorf_3": [1.25, 2.25, 3.25],
"a_colorf_4": [1.25, 2.25, 3.25, 4.25],
"a_colorh_3": [1.25, 2.25, 3.25],
"a_colorh_4": [1.25, 2.25, 3.25, 4.25],
"a_colord_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_colord_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_colorf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_colorf_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_colorh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_colorh_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_double": 1.25,
"a_double_2": [1.25, 2.25],
"a_double_3": [1.25, 2.25, 3.25],
"a_double_4": [1.25, 2.25, 3.25, 4.25],
"a_double_array": [1.25, 2.25],
"a_double_2_array": [[1.25, 2.25], [11.25, 12.25]],
"a_double_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_double_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_execution": 3,
"a_float": 1.25,
"a_float_2": [1.25, 2.25],
"a_float_3": [1.25, 2.25, 3.25],
"a_float_4": [1.25, 2.25, 3.25, 4.25],
"a_float_array": [1.25, 2.25],
"a_float_2_array": [[1.25, 2.25], [11.25, 12.25]],
"a_float_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_float_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_frame_4": [[1.25, 2.25, 3.25, 4.25], [5.25, 6.25, 7.25, 8.25], [9.25, 10.25, 11.25, 12.25], [13.25, 14.25, 15.25, 16.25]],
"a_frame_4_array": [[[1.25, 2.25, 3.25, 4.25], [5.25, 6.25, 7.25, 8.25], [9.25, 10.25, 11.25, 12.25], [13.25, 14.25, 15.25, 16.25]], [[11.25, 12.25, 13.25, 14.25], [15.25, 16.25, 17.25, 18.25], [19.25, 20.25, 21.25, 22.25], [23.25, 24.25, 25.25, 26.25]]],
"a_half": 1.25,
"a_half_2": [1.25, 2.25],
"a_half_3": [1.25, 2.25, 3.25],
"a_half_4": [1.25, 2.25, 3.25, 4.25],
"a_half_array": [1.25, 2.25],
"a_half_2_array": [[1.25, 2.25], [11.25, 12.25]],
"a_half_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_half_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_int": 11,
"a_int_2": [11, 12],
"a_int_3": [11, 12, 13],
"a_int_4": [11, 12, 13, 14],
"a_int_array": [11, 12],
"a_int_2_array": [[11, 12], [13, 14]],
"a_int_3_array": [[11, 12, 13], [14, 15, 16]],
"a_int_4_array": [[11, 12, 13, 14], [15, 16, 17, 18]],
"a_int64": 34567,
"a_int64_array": [45678, 56789],
"a_matrixd_2": [[1.25, 2.25], [3.25, 4.25]],
"a_matrixd_3": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25], [21.25, 22.25, 23.25]],
"a_matrixd_4": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25], [21.25, 22.25, 23.25, 24.25], [31.25, 32.25, 33.25, 34.25]],
"a_matrixd_2_array": [[[1.25, 2.25], [3.25, 4.25]], [[11.25, 12.25], [13.25, 14.25]]],
"a_matrixd_3_array": [[[1.25, 2.25, 3.25], [4.25, 5.25, 6.25], [7.25, 8.25, 9.25]], [[11.25, 12.25, 13.25], [14.25, 15.25, 16.25], [17.25, 18.25, 19.25]]],
"a_matrixd_4_array": [[[1.25, 2.25, 3.25, 4.25], [5.25, 6.25, 7.25, 8.25], [9.25, 10.25, 11.25, 12.25], [13.25, 14.25, 15.25, 16.25]], [[11.25, 12.25, 13.25, 14.25], [15.25, 16.25, 17.25, 18.25], [19.25, 20.25, 21.25, 22.25], [23.25, 24.25, 25.25, 26.25]]],
"a_normald_3": [1.25, 2.25, 3.25],
"a_normalf_3": [1.25, 2.25, 3.25],
"a_normalh_3": [1.25, 2.25, 3.25],
"a_normald_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_normalf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_normalh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_objectId": 3,
"a_objectId_array": [3, 4],
"a_pointd_3": [1.25, 2.25, 3.25],
"a_pointf_3": [1.25, 2.25, 3.25],
"a_pointh_3": [1.25, 2.25, 3.25],
"a_pointd_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_pointf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_pointh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_quatd_4": [1.25, 2.25, 3.25, 4.25],
"a_quatf_4": [1.25, 2.25, 3.25, 4.25],
"a_quath_4": [1.25, 2.25, 3.25, 4.25],
"a_quatd_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_quatf_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_quath_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]],
"a_string": "Palpatine",
"a_texcoordd_2": [1.25, 2.25],
"a_texcoordd_3": [1.25, 2.25, 3.25],
"a_texcoordf_2": [1.25, 2.25],
"a_texcoordf_3": [1.25, 2.25, 3.25],
"a_texcoordh_2": [1.25, 2.25],
"a_texcoordh_3": [1.25, 2.25, 3.25],
"a_texcoordd_2_array": [[1.25, 2.25], [11.25, 12.25]],
"a_texcoordd_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_texcoordf_2_array": [[1.25, 2.25], [11.25, 12.25]],
"a_texcoordf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_texcoordh_2_array": [[1.25, 2.25], [11.25, 12.25]],
"a_texcoordh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_timecode": 1.25,
"a_timecode_array": [1.25, 2.25],
"a_token": "Rebels",
"a_token_array": ["Han", "Solo"],
"a_uchar": 3,
"a_uchar_array": [3, 4],
"a_uint": 3,
"a_uint_array": [3, 4],
"a_uint64": 3,
"a_uint64_array": [3, 4],
"a_vectord_3": [1.25, 2.25, 3.25],
"a_vectorf_3": [1.25, 2.25, 3.25],
"a_vectorh_3": [1.25, 2.25, 3.25],
"a_vectord_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_vectorf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]],
"a_vectorh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]]
}
}
]
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestScatter.cpp | // Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#include <OgnTestScatterDatabase.h>
#include <cmath>
#include <vector>
using carb::Double3;
namespace omni
{
namespace graph
{
namespace examples
{
class OgnTestScatter
{
public:
static bool compute(OgnTestScatterDatabase& db)
{
/*
const auto& gatheredPaths = db.inputs.gathered_paths();
for (const auto& gatheredPath : gatheredPaths)
{
std::string gatheredPathStr = db.tokenToString(gatheredPath);
printf("gather path = %s\n", gatheredPathStr.c_str());
}*/
const auto& inputRotations = db.inputs.rotations();
int count = 0;
for (const auto& inputRotation : inputRotations)
{
// Pretend scan the inputs. The real scatter node would be writing to the Fabric here with the updated
// transforms.
count++;
}
// Because we don't have the real scatter node yet, we'll just pluck one element of the calculated rotations
// and output there in a temporary single output.
auto& singleRot = db.outputs.single_rotation();
if (inputRotations.size() > 0)
{
singleRot[0] = -90;
singleRot[1] = inputRotations[0][1];
singleRot[2] = 0;
}
return true;
}
};
REGISTER_OGN_NODE()
}
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestAllDataTypesPy.py | """
This node is meant to exercise data access for all available data types, including all",
legal combinations of tuples, arrays, and bundle members. The test section here is intentionally",
omitted so that the regression test script can programmatically generate tests for all known types,",
reducing the change of unintentional omissions. This node definition is a duplicate of",
OgnTestAllDataTypes.ogn, except the implementation language is Python."
"""
class OgnTestAllDataTypesPy:
@staticmethod
def compute(db) -> bool:
"""Compute just copies the input values to the output of the same name and type"""
if db.inputs.doNotCompute:
return True
db.outputs.a_bool = db.inputs.a_bool
db.outputs.a_bool_array = db.inputs.a_bool_array
db.outputs.a_colord_3 = db.inputs.a_colord_3
db.outputs.a_colord_4 = db.inputs.a_colord_4
db.outputs.a_colorf_3 = db.inputs.a_colorf_3
db.outputs.a_colorf_4 = db.inputs.a_colorf_4
db.outputs.a_colorh_3 = db.inputs.a_colorh_3
db.outputs.a_colorh_4 = db.inputs.a_colorh_4
db.outputs.a_colord_3_array = db.inputs.a_colord_3_array
db.outputs.a_colord_4_array = db.inputs.a_colord_4_array
db.outputs.a_colorf_3_array = db.inputs.a_colorf_3_array
db.outputs.a_colorf_4_array = db.inputs.a_colorf_4_array
db.outputs.a_colorh_3_array = db.inputs.a_colorh_3_array
db.outputs.a_colorh_4_array = db.inputs.a_colorh_4_array
db.outputs.a_double = db.inputs.a_double
db.outputs.a_double_2 = db.inputs.a_double_2
db.outputs.a_double_3 = db.inputs.a_double_3
db.outputs.a_double_4 = db.inputs.a_double_4
db.outputs.a_double_array = db.inputs.a_double_array
db.outputs.a_double_2_array = db.inputs.a_double_2_array
db.outputs.a_double_3_array = db.inputs.a_double_3_array
db.outputs.a_double_4_array = db.inputs.a_double_4_array
db.outputs.a_execution = db.inputs.a_execution
db.outputs.a_float = db.inputs.a_float
db.outputs.a_float_2 = db.inputs.a_float_2
db.outputs.a_float_3 = db.inputs.a_float_3
db.outputs.a_float_4 = db.inputs.a_float_4
db.outputs.a_float_array = db.inputs.a_float_array
db.outputs.a_float_2_array = db.inputs.a_float_2_array
db.outputs.a_float_3_array = db.inputs.a_float_3_array
db.outputs.a_float_4_array = db.inputs.a_float_4_array
db.outputs.a_frame_4 = db.inputs.a_frame_4
db.outputs.a_frame_4_array = db.inputs.a_frame_4_array
db.outputs.a_half = db.inputs.a_half
db.outputs.a_half_2 = db.inputs.a_half_2
db.outputs.a_half_3 = db.inputs.a_half_3
db.outputs.a_half_4 = db.inputs.a_half_4
db.outputs.a_half_array = db.inputs.a_half_array
db.outputs.a_half_2_array = db.inputs.a_half_2_array
db.outputs.a_half_3_array = db.inputs.a_half_3_array
db.outputs.a_half_4_array = db.inputs.a_half_4_array
db.outputs.a_int = db.inputs.a_int
db.outputs.a_int_2 = db.inputs.a_int_2
db.outputs.a_int_3 = db.inputs.a_int_3
db.outputs.a_int_4 = db.inputs.a_int_4
db.outputs.a_int_array = db.inputs.a_int_array
db.outputs.a_int_2_array = db.inputs.a_int_2_array
db.outputs.a_int_3_array = db.inputs.a_int_3_array
db.outputs.a_int_4_array = db.inputs.a_int_4_array
db.outputs.a_int64 = db.inputs.a_int64
db.outputs.a_int64_array = db.inputs.a_int64_array
db.outputs.a_matrixd_2 = db.inputs.a_matrixd_2
db.outputs.a_matrixd_3 = db.inputs.a_matrixd_3
db.outputs.a_matrixd_4 = db.inputs.a_matrixd_4
db.outputs.a_matrixd_2_array = db.inputs.a_matrixd_2_array
db.outputs.a_matrixd_3_array = db.inputs.a_matrixd_3_array
db.outputs.a_matrixd_4_array = db.inputs.a_matrixd_4_array
db.outputs.a_normald_3 = db.inputs.a_normald_3
db.outputs.a_normalf_3 = db.inputs.a_normalf_3
db.outputs.a_normalh_3 = db.inputs.a_normalh_3
db.outputs.a_normald_3_array = db.inputs.a_normald_3_array
db.outputs.a_normalf_3_array = db.inputs.a_normalf_3_array
db.outputs.a_normalh_3_array = db.inputs.a_normalh_3_array
db.outputs.a_objectId = db.inputs.a_objectId
db.outputs.a_objectId_array = db.inputs.a_objectId_array
db.outputs.a_path = db.inputs.a_path
db.outputs.a_pointd_3 = db.inputs.a_pointd_3
db.outputs.a_pointf_3 = db.inputs.a_pointf_3
db.outputs.a_pointh_3 = db.inputs.a_pointh_3
db.outputs.a_pointd_3_array = db.inputs.a_pointd_3_array
db.outputs.a_pointf_3_array = db.inputs.a_pointf_3_array
db.outputs.a_pointh_3_array = db.inputs.a_pointh_3_array
db.outputs.a_quatd_4 = db.inputs.a_quatd_4
db.outputs.a_quatf_4 = db.inputs.a_quatf_4
db.outputs.a_quath_4 = db.inputs.a_quath_4
db.outputs.a_quatd_4_array = db.inputs.a_quatd_4_array
db.outputs.a_quatf_4_array = db.inputs.a_quatf_4_array
db.outputs.a_quath_4_array = db.inputs.a_quath_4_array
db.outputs.a_string = db.inputs.a_string
db.outputs.a_target = db.inputs.a_target
db.outputs.a_texcoordd_2 = db.inputs.a_texcoordd_2
db.outputs.a_texcoordd_3 = db.inputs.a_texcoordd_3
db.outputs.a_texcoordf_2 = db.inputs.a_texcoordf_2
db.outputs.a_texcoordf_3 = db.inputs.a_texcoordf_3
db.outputs.a_texcoordh_2 = db.inputs.a_texcoordh_2
db.outputs.a_texcoordh_3 = db.inputs.a_texcoordh_3
db.outputs.a_texcoordd_2_array = db.inputs.a_texcoordd_2_array
db.outputs.a_texcoordd_3_array = db.inputs.a_texcoordd_3_array
db.outputs.a_texcoordf_2_array = db.inputs.a_texcoordf_2_array
db.outputs.a_texcoordf_3_array = db.inputs.a_texcoordf_3_array
db.outputs.a_texcoordh_2_array = db.inputs.a_texcoordh_2_array
db.outputs.a_texcoordh_3_array = db.inputs.a_texcoordh_3_array
db.outputs.a_timecode = db.inputs.a_timecode
db.outputs.a_timecode_array = db.inputs.a_timecode_array
db.outputs.a_token = db.inputs.a_token
db.outputs.a_token_array = db.inputs.a_token_array
db.outputs.a_uchar = db.inputs.a_uchar
db.outputs.a_uchar_array = db.inputs.a_uchar_array
db.outputs.a_uint = db.inputs.a_uint
db.outputs.a_uint_array = db.inputs.a_uint_array
db.outputs.a_uint64 = db.inputs.a_uint64
db.outputs.a_uint64_array = db.inputs.a_uint64_array
db.outputs.a_vectord_3 = db.inputs.a_vectord_3
db.outputs.a_vectorf_3 = db.inputs.a_vectorf_3
db.outputs.a_vectorh_3 = db.inputs.a_vectorh_3
db.outputs.a_vectord_3_array = db.inputs.a_vectord_3_array
db.outputs.a_vectorf_3_array = db.inputs.a_vectorf_3_array
db.outputs.a_vectorh_3_array = db.inputs.a_vectorh_3_array
# Copy inputs of all kinds to the output bundle. The test should connect a bundle with all types of attributes
# so that every data type is exercised.
output_bundle = db.outputs.a_bundle
state_bundle = db.state.a_bundle
for bundled_attribute in db.inputs.a_bundle.attributes:
# By copying each attribute individually rather than doing a bundle copy all of the data types
# encapsulated by that bundle are exercised.
new_output = output_bundle.insert(bundled_attribute)
new_state = state_bundle.insert(bundled_attribute)
new_output.copy_data(bundled_attribute)
new_state.copy_data(bundled_attribute)
# State attributes take on the input values the first time they evaluate, zeroes on subsequent evaluations.
# The a_firstEvaluation attribute is used as the gating state information to decide when evaluation needs to
# happen again.
if db.state.a_firstEvaluation:
db.state.a_firstEvaluation = False
db.state.a_bool = db.inputs.a_bool
db.state.a_bool_array = db.inputs.a_bool_array
db.state.a_colord_3 = db.inputs.a_colord_3
db.state.a_colord_4 = db.inputs.a_colord_4
db.state.a_colorf_3 = db.inputs.a_colorf_3
db.state.a_colorf_4 = db.inputs.a_colorf_4
db.state.a_colorh_3 = db.inputs.a_colorh_3
db.state.a_colorh_4 = db.inputs.a_colorh_4
db.state.a_colord_3_array = db.inputs.a_colord_3_array
db.state.a_colord_4_array = db.inputs.a_colord_4_array
db.state.a_colorf_3_array = db.inputs.a_colorf_3_array
db.state.a_colorf_4_array = db.inputs.a_colorf_4_array
db.state.a_colorh_3_array = db.inputs.a_colorh_3_array
db.state.a_colorh_4_array = db.inputs.a_colorh_4_array
db.state.a_double = db.inputs.a_double
db.state.a_double_2 = db.inputs.a_double_2
db.state.a_double_3 = db.inputs.a_double_3
db.state.a_double_4 = db.inputs.a_double_4
db.state.a_double_array = db.inputs.a_double_array
db.state.a_double_2_array = db.inputs.a_double_2_array
db.state.a_double_3_array = db.inputs.a_double_3_array
db.state.a_double_4_array = db.inputs.a_double_4_array
db.state.a_execution = db.inputs.a_execution
db.state.a_float = db.inputs.a_float
db.state.a_float_2 = db.inputs.a_float_2
db.state.a_float_3 = db.inputs.a_float_3
db.state.a_float_4 = db.inputs.a_float_4
db.state.a_float_array = db.inputs.a_float_array
db.state.a_float_2_array = db.inputs.a_float_2_array
db.state.a_float_3_array = db.inputs.a_float_3_array
db.state.a_float_4_array = db.inputs.a_float_4_array
db.state.a_frame_4 = db.inputs.a_frame_4
db.state.a_frame_4_array = db.inputs.a_frame_4_array
db.state.a_half = db.inputs.a_half
db.state.a_half_2 = db.inputs.a_half_2
db.state.a_half_3 = db.inputs.a_half_3
db.state.a_half_4 = db.inputs.a_half_4
db.state.a_half_array = db.inputs.a_half_array
db.state.a_half_2_array = db.inputs.a_half_2_array
db.state.a_half_3_array = db.inputs.a_half_3_array
db.state.a_half_4_array = db.inputs.a_half_4_array
db.state.a_int = db.inputs.a_int
db.state.a_int_2 = db.inputs.a_int_2
db.state.a_int_3 = db.inputs.a_int_3
db.state.a_int_4 = db.inputs.a_int_4
db.state.a_int_array = db.inputs.a_int_array
db.state.a_int_2_array = db.inputs.a_int_2_array
db.state.a_int_3_array = db.inputs.a_int_3_array
db.state.a_int_4_array = db.inputs.a_int_4_array
db.state.a_int64 = db.inputs.a_int64
db.state.a_int64_array = db.inputs.a_int64_array
db.state.a_matrixd_2 = db.inputs.a_matrixd_2
db.state.a_matrixd_3 = db.inputs.a_matrixd_3
db.state.a_matrixd_4 = db.inputs.a_matrixd_4
db.state.a_matrixd_2_array = db.inputs.a_matrixd_2_array
db.state.a_matrixd_3_array = db.inputs.a_matrixd_3_array
db.state.a_matrixd_4_array = db.inputs.a_matrixd_4_array
db.state.a_normald_3 = db.inputs.a_normald_3
db.state.a_normalf_3 = db.inputs.a_normalf_3
db.state.a_normalh_3 = db.inputs.a_normalh_3
db.state.a_normald_3_array = db.inputs.a_normald_3_array
db.state.a_normalf_3_array = db.inputs.a_normalf_3_array
db.state.a_normalh_3_array = db.inputs.a_normalh_3_array
db.state.a_objectId = db.inputs.a_objectId
db.state.a_objectId_array = db.inputs.a_objectId_array
db.state.a_path = db.inputs.a_path
db.state.a_pointd_3 = db.inputs.a_pointd_3
db.state.a_pointf_3 = db.inputs.a_pointf_3
db.state.a_pointh_3 = db.inputs.a_pointh_3
db.state.a_pointd_3_array = db.inputs.a_pointd_3_array
db.state.a_pointf_3_array = db.inputs.a_pointf_3_array
db.state.a_pointh_3_array = db.inputs.a_pointh_3_array
db.state.a_quatd_4 = db.inputs.a_quatd_4
db.state.a_quatf_4 = db.inputs.a_quatf_4
db.state.a_quath_4 = db.inputs.a_quath_4
db.state.a_quatd_4_array = db.inputs.a_quatd_4_array
db.state.a_quatf_4_array = db.inputs.a_quatf_4_array
db.state.a_quath_4_array = db.inputs.a_quath_4_array
db.state.a_string = db.inputs.a_string
db.state.a_stringEmpty = db.inputs.a_string
db.state.a_target = db.inputs.a_target
db.state.a_texcoordd_2 = db.inputs.a_texcoordd_2
db.state.a_texcoordd_3 = db.inputs.a_texcoordd_3
db.state.a_texcoordf_2 = db.inputs.a_texcoordf_2
db.state.a_texcoordf_3 = db.inputs.a_texcoordf_3
db.state.a_texcoordh_2 = db.inputs.a_texcoordh_2
db.state.a_texcoordh_3 = db.inputs.a_texcoordh_3
db.state.a_texcoordd_2_array = db.inputs.a_texcoordd_2_array
db.state.a_texcoordd_3_array = db.inputs.a_texcoordd_3_array
db.state.a_texcoordf_2_array = db.inputs.a_texcoordf_2_array
db.state.a_texcoordf_3_array = db.inputs.a_texcoordf_3_array
db.state.a_texcoordh_2_array = db.inputs.a_texcoordh_2_array
db.state.a_texcoordh_3_array = db.inputs.a_texcoordh_3_array
db.state.a_timecode = db.inputs.a_timecode
db.state.a_timecode_array = db.inputs.a_timecode_array
db.state.a_token = db.inputs.a_token
db.state.a_token_array = db.inputs.a_token_array
db.state.a_uchar = db.inputs.a_uchar
db.state.a_uchar_array = db.inputs.a_uchar_array
db.state.a_uint = db.inputs.a_uint
db.state.a_uint_array = db.inputs.a_uint_array
db.state.a_uint64 = db.inputs.a_uint64
db.state.a_uint64_array = db.inputs.a_uint64_array
db.state.a_vectord_3 = db.inputs.a_vectord_3
db.state.a_vectorf_3 = db.inputs.a_vectorf_3
db.state.a_vectorh_3 = db.inputs.a_vectorh_3
db.state.a_vectord_3_array = db.inputs.a_vectord_3_array
db.state.a_vectorf_3_array = db.inputs.a_vectorf_3_array
db.state.a_vectorh_3_array = db.inputs.a_vectorh_3_array
else:
db.state.a_bool = False
db.state.a_bool_array = []
db.state.a_colord_3 = [0.0, 0.0, 0.0]
db.state.a_colord_4 = [0.0, 0.0, 0.0, 0.0]
db.state.a_colorf_3 = [0.0, 0.0, 0.0]
db.state.a_colorf_4 = [0.0, 0.0, 0.0, 0.0]
db.state.a_colorh_3 = [0.0, 0.0, 0.0]
db.state.a_colorh_4 = [0.0, 0.0, 0.0, 0.0]
db.state.a_colord_3_array = []
db.state.a_colord_4_array = []
db.state.a_colorf_3_array = []
db.state.a_colorf_4_array = []
db.state.a_colorh_3_array = []
db.state.a_colorh_4_array = []
db.state.a_double = 0.0
db.state.a_double_2 = [0.0, 0.0]
db.state.a_double_3 = [0.0, 0.0, 0.0]
db.state.a_double_4 = [0.0, 0.0, 0.0, 0.0]
db.state.a_double_array = []
db.state.a_double_2_array = []
db.state.a_double_3_array = []
db.state.a_double_4_array = []
db.state.a_execution = 0
db.state.a_float = 0.0
db.state.a_float_2 = [0.0, 0.0]
db.state.a_float_3 = [0.0, 0.0, 0.0]
db.state.a_float_4 = [0.0, 0.0, 0.0, 0.0]
db.state.a_float_array = []
db.state.a_float_2_array = []
db.state.a_float_3_array = []
db.state.a_float_4_array = []
db.state.a_frame_4 = [
[0.0, 0.0, 0.0, 0.0],
[0.0, 0.0, 0.0, 0.0],
[0.0, 0.0, 0.0, 0.0],
[0.0, 0.0, 0.0, 0.0],
]
db.state.a_frame_4_array = []
db.state.a_half = 0.0
db.state.a_half_2 = [0.0, 0.0]
db.state.a_half_3 = [0.0, 0.0, 0.0]
db.state.a_half_4 = [0.0, 0.0, 0.0, 0.0]
db.state.a_half_array = []
db.state.a_half_2_array = []
db.state.a_half_3_array = []
db.state.a_half_4_array = []
db.state.a_int = 0
db.state.a_int_2 = [0, 0]
db.state.a_int_3 = [0, 0, 0]
db.state.a_int_4 = [0, 0, 0, 0]
db.state.a_int_array = []
db.state.a_int_2_array = []
db.state.a_int_3_array = []
db.state.a_int_4_array = []
db.state.a_int64 = 0
db.state.a_int64_array = []
db.state.a_matrixd_2 = [[0.0, 0.0], [0.0, 0.0]]
db.state.a_matrixd_3 = [[0.0, 0.0, 0.0], [0.0, 0.0, 0.0], [0.0, 0.0, 0.0]]
db.state.a_matrixd_4 = [
[0.0, 0.0, 0.0, 0.0],
[0.0, 0.0, 0.0, 0.0],
[0.0, 0.0, 0.0, 0.0],
[0.0, 0.0, 0.0, 0.0],
]
db.state.a_matrixd_2_array = []
db.state.a_matrixd_3_array = []
db.state.a_matrixd_4_array = []
db.state.a_normald_3 = [0.0, 0.0, 0.0]
db.state.a_normalf_3 = [0.0, 0.0, 0.0]
db.state.a_normalh_3 = [0.0, 0.0, 0.0]
db.state.a_normald_3_array = []
db.state.a_normalf_3_array = []
db.state.a_normalh_3_array = []
db.state.a_objectId = 0
db.state.a_objectId_array = []
db.outputs.a_path = ""
db.state.a_pointd_3 = [0.0, 0.0, 0.0]
db.state.a_pointf_3 = [0.0, 0.0, 0.0]
db.state.a_pointh_3 = [0.0, 0.0, 0.0]
db.state.a_pointd_3_array = []
db.state.a_pointf_3_array = []
db.state.a_pointh_3_array = []
db.state.a_quatd_4 = [0.0, 0.0, 0.0, 0.0]
db.state.a_quatf_4 = [0.0, 0.0, 0.0, 0.0]
db.state.a_quath_4 = [0.0, 0.0, 0.0, 0.0]
db.state.a_quatd_4_array = []
db.state.a_quatf_4_array = []
db.state.a_quath_4_array = []
db.state.a_string = ""
db.state.a_stringEmpty = ""
db.state.a_target = []
db.state.a_texcoordd_2 = [0.0, 0.0]
db.state.a_texcoordd_3 = [0.0, 0.0, 0.0]
db.state.a_texcoordf_2 = [0.0, 0.0]
db.state.a_texcoordf_3 = [0.0, 0.0, 0.0]
db.state.a_texcoordh_2 = [0.0, 0.0]
db.state.a_texcoordh_3 = [0.0, 0.0, 0.0]
db.state.a_texcoordd_2_array = []
db.state.a_texcoordd_3_array = []
db.state.a_texcoordf_2_array = []
db.state.a_texcoordf_3_array = []
db.state.a_texcoordh_2_array = []
db.state.a_texcoordh_3_array = []
db.state.a_timecode = 0.0
db.state.a_timecode_array = []
db.state.a_token = ""
db.state.a_token_array = []
db.state.a_uchar = 0
db.state.a_uchar_array = []
db.state.a_uint = 0
db.state.a_uint_array = []
db.state.a_uint64 = 0
db.state.a_uint64_array = []
db.state.a_vectord_3 = [0.0, 0.0, 0.0]
db.state.a_vectorf_3 = [0.0, 0.0, 0.0]
db.state.a_vectorh_3 = [0.0, 0.0, 0.0]
db.state.a_vectord_3_array = []
db.state.a_vectorf_3_array = []
db.state.a_vectorh_3_array = []
return True
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnRandomPointsPy.ogn | {
"RandomPointsPy": {
"version": 1,
"description": "Generate an array of the specified number of points at random locations within the bounding cube",
"language": "Python",
"uiName": "Python Test Node: Generate Random Points",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
"exclude": ["tests", "usd", "docs"],
"inputs": {
"pointCount": {
"type": "uint64",
"description": "Number of points to generate",
"uiName": "Point Count"
},
"minimum": {
"type": "pointf[3]",
"description": "Lowest X, Y, Z values for the bounding volume",
"uiName": "Bounding Cube Minimum",
"default": [
0.0,
0.0,
0.0
]
},
"maximum": {
"type": "pointf[3]",
"description": "Highest X, Y, Z values for the bounding volume",
"uiName": "Bounding Cube Maximum",
"default": [
1.0,
1.0,
1.0
]
}
},
"outputs": {
"points": {
"type": "pointf[3][]",
"description": "Randomly generated points",
"uiName": "Random Points"
}
}
}
} |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestGather.cpp | // Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#include <OgnTestGatherDatabase.h>
#include <cmath>
#include <vector>
using carb::Double3;
namespace omni
{
namespace graph
{
namespace examples
{
class OgnTestGather
{
public:
static bool compute(OgnTestGatherDatabase& db)
{
// This is a temporary node in place to test performance. It serves no real purpose
static bool firstTime = true;
if (firstTime)
{
auto inputNameToken = db.inputs.base_name();
auto inputNumInstance = db.inputs.num_instances();
std::string inputNameStr = db.tokenToString(inputNameToken);
db.outputs.rotations.resize(inputNumInstance);
auto& outputRotations = db.outputs.rotations();
for (auto& rotation : outputRotations)
{
rotation[0] = 7;
rotation[1] = 8;
rotation[2] = 9;
}
db.outputs.gathered_paths.resize(2);
auto& outputPaths = db.outputs.gathered_paths();
std::string str0 = "foo";
outputPaths[0] = db.stringToToken(str0.c_str());
std::string str1 = "bar";
outputPaths[1] = db.stringToToken(str1.c_str());
printf("input base name =%s\n", inputNameStr.c_str());
firstTime = false;
}
return true;
}
};
REGISTER_OGN_NODE()
}
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestAllowedTokens.py | """
Implementation of an OmniGraph node that contains attributes with the allowedTokens metadata
"""
import omni.graph.tools.ogn as ogn
class OgnTestAllowedTokens:
@staticmethod
def compute(db):
allowed_simple = db.attributes.inputs.simpleTokens.get_metadata(ogn.MetadataKeys.ALLOWED_TOKENS).split(",")
allowed_special = db.attributes.inputs.specialTokens.get_metadata(ogn.MetadataKeys.ALLOWED_TOKENS).split(",")
assert db.tokens.red in allowed_simple
assert db.tokens.green in allowed_simple
assert db.tokens.blue in allowed_simple
assert db.tokens.lt in allowed_special
assert db.tokens.gt in allowed_special
db.outputs.combinedTokens = f"{db.inputs.simpleTokens}{db.inputs.specialTokens}"
return True
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnPerturbPoints.cpp | // Copyright (c) 2021 NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#include <OgnPerturbPointsDatabase.h>
#include <cstdlib>
namespace omni {
namespace graph {
namespace test {
// This is the implementation of the OGN node defined in OgnPerturbPoints.ogn
class OgnPerturbPoints
{
static auto& copy(OgnPerturbPointsDatabase& db)
{
CARB_PROFILE_ZONE(carb::profiler::kCaptureMaskDefault, "Acquiring Data");
db.outputs.points = db.inputs.points;
return db.outputs.points();
}
public:
// Perturb an array of points by random amounts within the limits of the bounding cube formed by the diagonal
// corners "minimum" and "maximum".
static bool compute(OgnPerturbPointsDatabase& db)
{
const auto& minimum = db.inputs.minimum();
GfVec3f rangeSize = db.inputs.maximum() - minimum;
// No points mean nothing to perturb
const auto& inputPoints = db.inputs.points();
size_t pointCount = inputPoints.size();
if (pointCount == 0)
{
return true;
}
// How much of the surface should be perturbed
auto percentModified = db.inputs.percentModified();
percentModified = (percentModified > 100.0f ? 100.0f : (percentModified < 0.0f ? 0.0f : percentModified));
size_t pointsToModify = (size_t)((percentModified * (float)pointCount) / 100.0f);
auto& pointArray = copy(db);
CARB_PROFILE_ZONE(carb::profiler::kCaptureMaskDefault, "Perturbing Data");
size_t index{ 0 };
while (index < pointsToModify)
{
auto& point = pointArray[index++];
GfVec3f offset{
minimum[0] + static_cast<float>(rand()) / (static_cast<float>(RAND_MAX/(rangeSize[0]))),
minimum[1] + static_cast<float>(rand()) / (static_cast<float>(RAND_MAX/(rangeSize[1]))),
minimum[2] + static_cast<float>(rand()) / (static_cast<float>(RAND_MAX/(rangeSize[2])))
};
point = point + offset;
}
return true;
}
};
REGISTER_OGN_NODE()
} // namespace test
} // namespace graph
} // namespace omni
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestNanInfPy.py | """
This node is meant to exercise data access for nan and inf values for all types in which they are valid
"""
class OgnTestNanInfPy:
@staticmethod
def compute(db) -> bool:
"""Copy the input to the output of the same name to verify assignment works"""
db.outputs.a_colord3_inf = db.inputs.a_colord3_inf
db.outputs.a_colord3_ninf = db.inputs.a_colord3_ninf
db.outputs.a_colord3_nan = db.inputs.a_colord3_nan
db.outputs.a_colord3_snan = db.inputs.a_colord3_snan
db.outputs.a_colord4_inf = db.inputs.a_colord4_inf
db.outputs.a_colord4_ninf = db.inputs.a_colord4_ninf
db.outputs.a_colord4_nan = db.inputs.a_colord4_nan
db.outputs.a_colord4_snan = db.inputs.a_colord4_snan
db.outputs.a_colord3_array_inf = db.inputs.a_colord3_array_inf
db.outputs.a_colord3_array_ninf = db.inputs.a_colord3_array_ninf
db.outputs.a_colord3_array_nan = db.inputs.a_colord3_array_nan
db.outputs.a_colord3_array_snan = db.inputs.a_colord3_array_snan
db.outputs.a_colord4_array_inf = db.inputs.a_colord4_array_inf
db.outputs.a_colord4_array_ninf = db.inputs.a_colord4_array_ninf
db.outputs.a_colord4_array_nan = db.inputs.a_colord4_array_nan
db.outputs.a_colord4_array_snan = db.inputs.a_colord4_array_snan
db.outputs.a_colorf3_inf = db.inputs.a_colorf3_inf
db.outputs.a_colorf3_ninf = db.inputs.a_colorf3_ninf
db.outputs.a_colorf3_nan = db.inputs.a_colorf3_nan
db.outputs.a_colorf3_snan = db.inputs.a_colorf3_snan
db.outputs.a_colorf4_inf = db.inputs.a_colorf4_inf
db.outputs.a_colorf4_ninf = db.inputs.a_colorf4_ninf
db.outputs.a_colorf4_nan = db.inputs.a_colorf4_nan
db.outputs.a_colorf4_snan = db.inputs.a_colorf4_snan
db.outputs.a_colorf3_array_inf = db.inputs.a_colorf3_array_inf
db.outputs.a_colorf3_array_ninf = db.inputs.a_colorf3_array_ninf
db.outputs.a_colorf3_array_nan = db.inputs.a_colorf3_array_nan
db.outputs.a_colorf3_array_snan = db.inputs.a_colorf3_array_snan
db.outputs.a_colorf4_array_inf = db.inputs.a_colorf4_array_inf
db.outputs.a_colorf4_array_ninf = db.inputs.a_colorf4_array_ninf
db.outputs.a_colorf4_array_nan = db.inputs.a_colorf4_array_nan
db.outputs.a_colorf4_array_snan = db.inputs.a_colorf4_array_snan
db.outputs.a_colorh3_inf = db.inputs.a_colorh3_inf
db.outputs.a_colorh3_ninf = db.inputs.a_colorh3_ninf
db.outputs.a_colorh3_nan = db.inputs.a_colorh3_nan
db.outputs.a_colorh3_snan = db.inputs.a_colorh3_snan
db.outputs.a_colorh4_inf = db.inputs.a_colorh4_inf
db.outputs.a_colorh4_ninf = db.inputs.a_colorh4_ninf
db.outputs.a_colorh4_nan = db.inputs.a_colorh4_nan
db.outputs.a_colorh4_snan = db.inputs.a_colorh4_snan
db.outputs.a_colorh3_array_inf = db.inputs.a_colorh3_array_inf
db.outputs.a_colorh3_array_ninf = db.inputs.a_colorh3_array_ninf
db.outputs.a_colorh3_array_nan = db.inputs.a_colorh3_array_nan
db.outputs.a_colorh3_array_snan = db.inputs.a_colorh3_array_snan
db.outputs.a_colorh4_array_inf = db.inputs.a_colorh4_array_inf
db.outputs.a_colorh4_array_ninf = db.inputs.a_colorh4_array_ninf
db.outputs.a_colorh4_array_nan = db.inputs.a_colorh4_array_nan
db.outputs.a_colorh4_array_snan = db.inputs.a_colorh4_array_snan
db.outputs.a_double_inf = db.inputs.a_double_inf
db.outputs.a_double_ninf = db.inputs.a_double_ninf
db.outputs.a_double_nan = db.inputs.a_double_nan
db.outputs.a_double_snan = db.inputs.a_double_snan
db.outputs.a_double2_inf = db.inputs.a_double2_inf
db.outputs.a_double2_ninf = db.inputs.a_double2_ninf
db.outputs.a_double2_nan = db.inputs.a_double2_nan
db.outputs.a_double2_snan = db.inputs.a_double2_snan
db.outputs.a_double3_inf = db.inputs.a_double3_inf
db.outputs.a_double3_ninf = db.inputs.a_double3_ninf
db.outputs.a_double3_nan = db.inputs.a_double3_nan
db.outputs.a_double3_snan = db.inputs.a_double3_snan
db.outputs.a_double4_inf = db.inputs.a_double4_inf
db.outputs.a_double4_ninf = db.inputs.a_double4_ninf
db.outputs.a_double4_nan = db.inputs.a_double4_nan
db.outputs.a_double4_snan = db.inputs.a_double4_snan
db.outputs.a_double_array_inf = db.inputs.a_double_array_inf
db.outputs.a_double_array_ninf = db.inputs.a_double_array_ninf
db.outputs.a_double_array_nan = db.inputs.a_double_array_nan
db.outputs.a_double_array_snan = db.inputs.a_double_array_snan
db.outputs.a_double2_array_inf = db.inputs.a_double2_array_inf
db.outputs.a_double2_array_ninf = db.inputs.a_double2_array_ninf
db.outputs.a_double2_array_nan = db.inputs.a_double2_array_nan
db.outputs.a_double2_array_snan = db.inputs.a_double2_array_snan
db.outputs.a_double3_array_inf = db.inputs.a_double3_array_inf
db.outputs.a_double3_array_ninf = db.inputs.a_double3_array_ninf
db.outputs.a_double3_array_nan = db.inputs.a_double3_array_nan
db.outputs.a_double3_array_snan = db.inputs.a_double3_array_snan
db.outputs.a_double4_array_inf = db.inputs.a_double4_array_inf
db.outputs.a_double4_array_ninf = db.inputs.a_double4_array_ninf
db.outputs.a_double4_array_nan = db.inputs.a_double4_array_nan
db.outputs.a_double4_array_snan = db.inputs.a_double4_array_snan
db.outputs.a_float_inf = db.inputs.a_float_inf
db.outputs.a_float_ninf = db.inputs.a_float_ninf
db.outputs.a_float_nan = db.inputs.a_float_nan
db.outputs.a_float_snan = db.inputs.a_float_snan
db.outputs.a_float2_inf = db.inputs.a_float2_inf
db.outputs.a_float2_ninf = db.inputs.a_float2_ninf
db.outputs.a_float2_nan = db.inputs.a_float2_nan
db.outputs.a_float2_snan = db.inputs.a_float2_snan
db.outputs.a_float3_inf = db.inputs.a_float3_inf
db.outputs.a_float3_ninf = db.inputs.a_float3_ninf
db.outputs.a_float3_nan = db.inputs.a_float3_nan
db.outputs.a_float3_snan = db.inputs.a_float3_snan
db.outputs.a_float4_inf = db.inputs.a_float4_inf
db.outputs.a_float4_ninf = db.inputs.a_float4_ninf
db.outputs.a_float4_nan = db.inputs.a_float4_nan
db.outputs.a_float4_snan = db.inputs.a_float4_snan
db.outputs.a_float_array_inf = db.inputs.a_float_array_inf
db.outputs.a_float_array_ninf = db.inputs.a_float_array_ninf
db.outputs.a_float_array_nan = db.inputs.a_float_array_nan
db.outputs.a_float_array_snan = db.inputs.a_float_array_snan
db.outputs.a_float2_array_inf = db.inputs.a_float2_array_inf
db.outputs.a_float2_array_ninf = db.inputs.a_float2_array_ninf
db.outputs.a_float2_array_nan = db.inputs.a_float2_array_nan
db.outputs.a_float2_array_snan = db.inputs.a_float2_array_snan
db.outputs.a_float3_array_inf = db.inputs.a_float3_array_inf
db.outputs.a_float3_array_ninf = db.inputs.a_float3_array_ninf
db.outputs.a_float3_array_nan = db.inputs.a_float3_array_nan
db.outputs.a_float3_array_snan = db.inputs.a_float3_array_snan
db.outputs.a_float4_array_inf = db.inputs.a_float4_array_inf
db.outputs.a_float4_array_ninf = db.inputs.a_float4_array_ninf
db.outputs.a_float4_array_nan = db.inputs.a_float4_array_nan
db.outputs.a_float4_array_snan = db.inputs.a_float4_array_snan
db.outputs.a_frame4_inf = db.inputs.a_frame4_inf
db.outputs.a_frame4_ninf = db.inputs.a_frame4_ninf
db.outputs.a_frame4_nan = db.inputs.a_frame4_nan
db.outputs.a_frame4_snan = db.inputs.a_frame4_snan
db.outputs.a_frame4_array_inf = db.inputs.a_frame4_array_inf
db.outputs.a_frame4_array_ninf = db.inputs.a_frame4_array_ninf
db.outputs.a_frame4_array_nan = db.inputs.a_frame4_array_nan
db.outputs.a_frame4_array_snan = db.inputs.a_frame4_array_snan
db.outputs.a_half_inf = db.inputs.a_half_inf
db.outputs.a_half_ninf = db.inputs.a_half_ninf
db.outputs.a_half_nan = db.inputs.a_half_nan
db.outputs.a_half_snan = db.inputs.a_half_snan
db.outputs.a_half2_inf = db.inputs.a_half2_inf
db.outputs.a_half2_ninf = db.inputs.a_half2_ninf
db.outputs.a_half2_nan = db.inputs.a_half2_nan
db.outputs.a_half2_snan = db.inputs.a_half2_snan
db.outputs.a_half3_inf = db.inputs.a_half3_inf
db.outputs.a_half3_ninf = db.inputs.a_half3_ninf
db.outputs.a_half3_nan = db.inputs.a_half3_nan
db.outputs.a_half3_snan = db.inputs.a_half3_snan
db.outputs.a_half4_inf = db.inputs.a_half4_inf
db.outputs.a_half4_ninf = db.inputs.a_half4_ninf
db.outputs.a_half4_nan = db.inputs.a_half4_nan
db.outputs.a_half4_snan = db.inputs.a_half4_snan
db.outputs.a_half_array_inf = db.inputs.a_half_array_inf
db.outputs.a_half_array_ninf = db.inputs.a_half_array_ninf
db.outputs.a_half_array_nan = db.inputs.a_half_array_nan
db.outputs.a_half_array_snan = db.inputs.a_half_array_snan
db.outputs.a_half2_array_inf = db.inputs.a_half2_array_inf
db.outputs.a_half2_array_ninf = db.inputs.a_half2_array_ninf
db.outputs.a_half2_array_nan = db.inputs.a_half2_array_nan
db.outputs.a_half2_array_snan = db.inputs.a_half2_array_snan
db.outputs.a_half3_array_inf = db.inputs.a_half3_array_inf
db.outputs.a_half3_array_ninf = db.inputs.a_half3_array_ninf
db.outputs.a_half3_array_nan = db.inputs.a_half3_array_nan
db.outputs.a_half3_array_snan = db.inputs.a_half3_array_snan
db.outputs.a_half4_array_inf = db.inputs.a_half4_array_inf
db.outputs.a_half4_array_ninf = db.inputs.a_half4_array_ninf
db.outputs.a_half4_array_nan = db.inputs.a_half4_array_nan
db.outputs.a_half4_array_snan = db.inputs.a_half4_array_snan
db.outputs.a_matrixd2_inf = db.inputs.a_matrixd2_inf
db.outputs.a_matrixd2_ninf = db.inputs.a_matrixd2_ninf
db.outputs.a_matrixd2_nan = db.inputs.a_matrixd2_nan
db.outputs.a_matrixd2_snan = db.inputs.a_matrixd2_snan
db.outputs.a_matrixd3_inf = db.inputs.a_matrixd3_inf
db.outputs.a_matrixd3_ninf = db.inputs.a_matrixd3_ninf
db.outputs.a_matrixd3_nan = db.inputs.a_matrixd3_nan
db.outputs.a_matrixd3_snan = db.inputs.a_matrixd3_snan
db.outputs.a_matrixd4_inf = db.inputs.a_matrixd4_inf
db.outputs.a_matrixd4_ninf = db.inputs.a_matrixd4_ninf
db.outputs.a_matrixd4_nan = db.inputs.a_matrixd4_nan
db.outputs.a_matrixd4_snan = db.inputs.a_matrixd4_snan
db.outputs.a_matrixd2_array_inf = db.inputs.a_matrixd2_array_inf
db.outputs.a_matrixd2_array_ninf = db.inputs.a_matrixd2_array_ninf
db.outputs.a_matrixd2_array_nan = db.inputs.a_matrixd2_array_nan
db.outputs.a_matrixd2_array_snan = db.inputs.a_matrixd2_array_snan
db.outputs.a_matrixd3_array_inf = db.inputs.a_matrixd3_array_inf
db.outputs.a_matrixd3_array_ninf = db.inputs.a_matrixd3_array_ninf
db.outputs.a_matrixd3_array_nan = db.inputs.a_matrixd3_array_nan
db.outputs.a_matrixd3_array_snan = db.inputs.a_matrixd3_array_snan
db.outputs.a_matrixd4_array_inf = db.inputs.a_matrixd4_array_inf
db.outputs.a_matrixd4_array_ninf = db.inputs.a_matrixd4_array_ninf
db.outputs.a_matrixd4_array_nan = db.inputs.a_matrixd4_array_nan
db.outputs.a_matrixd4_array_snan = db.inputs.a_matrixd4_array_snan
db.outputs.a_normald3_inf = db.inputs.a_normald3_inf
db.outputs.a_normald3_ninf = db.inputs.a_normald3_ninf
db.outputs.a_normald3_nan = db.inputs.a_normald3_nan
db.outputs.a_normald3_snan = db.inputs.a_normald3_snan
db.outputs.a_normald3_array_inf = db.inputs.a_normald3_array_inf
db.outputs.a_normald3_array_ninf = db.inputs.a_normald3_array_ninf
db.outputs.a_normald3_array_nan = db.inputs.a_normald3_array_nan
db.outputs.a_normald3_array_snan = db.inputs.a_normald3_array_snan
db.outputs.a_normalf3_inf = db.inputs.a_normalf3_inf
db.outputs.a_normalf3_ninf = db.inputs.a_normalf3_ninf
db.outputs.a_normalf3_nan = db.inputs.a_normalf3_nan
db.outputs.a_normalf3_snan = db.inputs.a_normalf3_snan
db.outputs.a_normalf3_array_inf = db.inputs.a_normalf3_array_inf
db.outputs.a_normalf3_array_ninf = db.inputs.a_normalf3_array_ninf
db.outputs.a_normalf3_array_nan = db.inputs.a_normalf3_array_nan
db.outputs.a_normalf3_array_snan = db.inputs.a_normalf3_array_snan
db.outputs.a_normalh3_inf = db.inputs.a_normalh3_inf
db.outputs.a_normalh3_ninf = db.inputs.a_normalh3_ninf
db.outputs.a_normalh3_nan = db.inputs.a_normalh3_nan
db.outputs.a_normalh3_snan = db.inputs.a_normalh3_snan
db.outputs.a_normalh3_array_inf = db.inputs.a_normalh3_array_inf
db.outputs.a_normalh3_array_ninf = db.inputs.a_normalh3_array_ninf
db.outputs.a_normalh3_array_nan = db.inputs.a_normalh3_array_nan
db.outputs.a_normalh3_array_snan = db.inputs.a_normalh3_array_snan
db.outputs.a_pointd3_inf = db.inputs.a_pointd3_inf
db.outputs.a_pointd3_ninf = db.inputs.a_pointd3_ninf
db.outputs.a_pointd3_nan = db.inputs.a_pointd3_nan
db.outputs.a_pointd3_snan = db.inputs.a_pointd3_snan
db.outputs.a_pointd3_array_inf = db.inputs.a_pointd3_array_inf
db.outputs.a_pointd3_array_ninf = db.inputs.a_pointd3_array_ninf
db.outputs.a_pointd3_array_nan = db.inputs.a_pointd3_array_nan
db.outputs.a_pointd3_array_snan = db.inputs.a_pointd3_array_snan
db.outputs.a_pointf3_inf = db.inputs.a_pointf3_inf
db.outputs.a_pointf3_ninf = db.inputs.a_pointf3_ninf
db.outputs.a_pointf3_nan = db.inputs.a_pointf3_nan
db.outputs.a_pointf3_snan = db.inputs.a_pointf3_snan
db.outputs.a_pointf3_array_inf = db.inputs.a_pointf3_array_inf
db.outputs.a_pointf3_array_ninf = db.inputs.a_pointf3_array_ninf
db.outputs.a_pointf3_array_nan = db.inputs.a_pointf3_array_nan
db.outputs.a_pointf3_array_snan = db.inputs.a_pointf3_array_snan
db.outputs.a_pointh3_inf = db.inputs.a_pointh3_inf
db.outputs.a_pointh3_ninf = db.inputs.a_pointh3_ninf
db.outputs.a_pointh3_nan = db.inputs.a_pointh3_nan
db.outputs.a_pointh3_snan = db.inputs.a_pointh3_snan
db.outputs.a_pointh3_array_inf = db.inputs.a_pointh3_array_inf
db.outputs.a_pointh3_array_ninf = db.inputs.a_pointh3_array_ninf
db.outputs.a_pointh3_array_nan = db.inputs.a_pointh3_array_nan
db.outputs.a_pointh3_array_snan = db.inputs.a_pointh3_array_snan
db.outputs.a_quatd4_inf = db.inputs.a_quatd4_inf
db.outputs.a_quatd4_ninf = db.inputs.a_quatd4_ninf
db.outputs.a_quatd4_nan = db.inputs.a_quatd4_nan
db.outputs.a_quatd4_snan = db.inputs.a_quatd4_snan
db.outputs.a_quatd4_array_inf = db.inputs.a_quatd4_array_inf
db.outputs.a_quatd4_array_ninf = db.inputs.a_quatd4_array_ninf
db.outputs.a_quatd4_array_nan = db.inputs.a_quatd4_array_nan
db.outputs.a_quatd4_array_snan = db.inputs.a_quatd4_array_snan
db.outputs.a_quatf4_inf = db.inputs.a_quatf4_inf
db.outputs.a_quatf4_ninf = db.inputs.a_quatf4_ninf
db.outputs.a_quatf4_nan = db.inputs.a_quatf4_nan
db.outputs.a_quatf4_snan = db.inputs.a_quatf4_snan
db.outputs.a_quatf4_array_inf = db.inputs.a_quatf4_array_inf
db.outputs.a_quatf4_array_ninf = db.inputs.a_quatf4_array_ninf
db.outputs.a_quatf4_array_nan = db.inputs.a_quatf4_array_nan
db.outputs.a_quatf4_array_snan = db.inputs.a_quatf4_array_snan
db.outputs.a_quath4_inf = db.inputs.a_quath4_inf
db.outputs.a_quath4_ninf = db.inputs.a_quath4_ninf
db.outputs.a_quath4_nan = db.inputs.a_quath4_nan
db.outputs.a_quath4_snan = db.inputs.a_quath4_snan
db.outputs.a_quath4_array_inf = db.inputs.a_quath4_array_inf
db.outputs.a_quath4_array_ninf = db.inputs.a_quath4_array_ninf
db.outputs.a_quath4_array_nan = db.inputs.a_quath4_array_nan
db.outputs.a_quath4_array_snan = db.inputs.a_quath4_array_snan
db.outputs.a_texcoordd2_inf = db.inputs.a_texcoordd2_inf
db.outputs.a_texcoordd2_ninf = db.inputs.a_texcoordd2_ninf
db.outputs.a_texcoordd2_nan = db.inputs.a_texcoordd2_nan
db.outputs.a_texcoordd2_snan = db.inputs.a_texcoordd2_snan
db.outputs.a_texcoordd3_inf = db.inputs.a_texcoordd3_inf
db.outputs.a_texcoordd3_ninf = db.inputs.a_texcoordd3_ninf
db.outputs.a_texcoordd3_nan = db.inputs.a_texcoordd3_nan
db.outputs.a_texcoordd3_snan = db.inputs.a_texcoordd3_snan
db.outputs.a_texcoordd2_array_inf = db.inputs.a_texcoordd2_array_inf
db.outputs.a_texcoordd2_array_ninf = db.inputs.a_texcoordd2_array_ninf
db.outputs.a_texcoordd2_array_nan = db.inputs.a_texcoordd2_array_nan
db.outputs.a_texcoordd2_array_snan = db.inputs.a_texcoordd2_array_snan
db.outputs.a_texcoordd3_array_inf = db.inputs.a_texcoordd3_array_inf
db.outputs.a_texcoordd3_array_ninf = db.inputs.a_texcoordd3_array_ninf
db.outputs.a_texcoordd3_array_nan = db.inputs.a_texcoordd3_array_nan
db.outputs.a_texcoordd3_array_snan = db.inputs.a_texcoordd3_array_snan
db.outputs.a_texcoordf2_inf = db.inputs.a_texcoordf2_inf
db.outputs.a_texcoordf2_ninf = db.inputs.a_texcoordf2_ninf
db.outputs.a_texcoordf2_nan = db.inputs.a_texcoordf2_nan
db.outputs.a_texcoordf2_snan = db.inputs.a_texcoordf2_snan
db.outputs.a_texcoordf3_inf = db.inputs.a_texcoordf3_inf
db.outputs.a_texcoordf3_ninf = db.inputs.a_texcoordf3_ninf
db.outputs.a_texcoordf3_nan = db.inputs.a_texcoordf3_nan
db.outputs.a_texcoordf3_snan = db.inputs.a_texcoordf3_snan
db.outputs.a_texcoordf2_array_inf = db.inputs.a_texcoordf2_array_inf
db.outputs.a_texcoordf2_array_ninf = db.inputs.a_texcoordf2_array_ninf
db.outputs.a_texcoordf2_array_nan = db.inputs.a_texcoordf2_array_nan
db.outputs.a_texcoordf2_array_snan = db.inputs.a_texcoordf2_array_snan
db.outputs.a_texcoordf3_array_inf = db.inputs.a_texcoordf3_array_inf
db.outputs.a_texcoordf3_array_ninf = db.inputs.a_texcoordf3_array_ninf
db.outputs.a_texcoordf3_array_nan = db.inputs.a_texcoordf3_array_nan
db.outputs.a_texcoordf3_array_snan = db.inputs.a_texcoordf3_array_snan
db.outputs.a_texcoordh2_inf = db.inputs.a_texcoordh2_inf
db.outputs.a_texcoordh2_ninf = db.inputs.a_texcoordh2_ninf
db.outputs.a_texcoordh2_nan = db.inputs.a_texcoordh2_nan
db.outputs.a_texcoordh2_snan = db.inputs.a_texcoordh2_snan
db.outputs.a_texcoordh3_inf = db.inputs.a_texcoordh3_inf
db.outputs.a_texcoordh3_ninf = db.inputs.a_texcoordh3_ninf
db.outputs.a_texcoordh3_nan = db.inputs.a_texcoordh3_nan
db.outputs.a_texcoordh3_snan = db.inputs.a_texcoordh3_snan
db.outputs.a_texcoordh2_array_inf = db.inputs.a_texcoordh2_array_inf
db.outputs.a_texcoordh2_array_ninf = db.inputs.a_texcoordh2_array_ninf
db.outputs.a_texcoordh2_array_nan = db.inputs.a_texcoordh2_array_nan
db.outputs.a_texcoordh2_array_snan = db.inputs.a_texcoordh2_array_snan
db.outputs.a_texcoordh3_array_inf = db.inputs.a_texcoordh3_array_inf
db.outputs.a_texcoordh3_array_ninf = db.inputs.a_texcoordh3_array_ninf
db.outputs.a_texcoordh3_array_nan = db.inputs.a_texcoordh3_array_nan
db.outputs.a_texcoordh3_array_snan = db.inputs.a_texcoordh3_array_snan
db.outputs.a_timecode_inf = db.inputs.a_timecode_inf
db.outputs.a_timecode_ninf = db.inputs.a_timecode_ninf
db.outputs.a_timecode_nan = db.inputs.a_timecode_nan
db.outputs.a_timecode_snan = db.inputs.a_timecode_snan
db.outputs.a_timecode_array_inf = db.inputs.a_timecode_array_inf
db.outputs.a_timecode_array_ninf = db.inputs.a_timecode_array_ninf
db.outputs.a_timecode_array_nan = db.inputs.a_timecode_array_nan
db.outputs.a_timecode_array_snan = db.inputs.a_timecode_array_snan
db.outputs.a_vectord3_inf = db.inputs.a_vectord3_inf
db.outputs.a_vectord3_ninf = db.inputs.a_vectord3_ninf
db.outputs.a_vectord3_nan = db.inputs.a_vectord3_nan
db.outputs.a_vectord3_snan = db.inputs.a_vectord3_snan
db.outputs.a_vectord3_array_inf = db.inputs.a_vectord3_array_inf
db.outputs.a_vectord3_array_ninf = db.inputs.a_vectord3_array_ninf
db.outputs.a_vectord3_array_nan = db.inputs.a_vectord3_array_nan
db.outputs.a_vectord3_array_snan = db.inputs.a_vectord3_array_snan
db.outputs.a_vectorf3_inf = db.inputs.a_vectorf3_inf
db.outputs.a_vectorf3_ninf = db.inputs.a_vectorf3_ninf
db.outputs.a_vectorf3_nan = db.inputs.a_vectorf3_nan
db.outputs.a_vectorf3_snan = db.inputs.a_vectorf3_snan
db.outputs.a_vectorf3_array_inf = db.inputs.a_vectorf3_array_inf
db.outputs.a_vectorf3_array_ninf = db.inputs.a_vectorf3_array_ninf
db.outputs.a_vectorf3_array_nan = db.inputs.a_vectorf3_array_nan
db.outputs.a_vectorf3_array_snan = db.inputs.a_vectorf3_array_snan
db.outputs.a_vectorh3_inf = db.inputs.a_vectorh3_inf
db.outputs.a_vectorh3_ninf = db.inputs.a_vectorh3_ninf
db.outputs.a_vectorh3_nan = db.inputs.a_vectorh3_nan
db.outputs.a_vectorh3_snan = db.inputs.a_vectorh3_snan
db.outputs.a_vectorh3_array_inf = db.inputs.a_vectorh3_array_inf
db.outputs.a_vectorh3_array_ninf = db.inputs.a_vectorh3_array_ninf
db.outputs.a_vectorh3_array_nan = db.inputs.a_vectorh3_array_nan
db.outputs.a_vectorh3_array_snan = db.inputs.a_vectorh3_array_snan
return True
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestBundleAttributeInterpolation.ogn | {
"TestBundleAttributeInterpolation": {
"version": 1,
"description": [
"Test node that exposes attribute interpolation through ConstBundlePrims interface."
],
"categories": "internal:test",
"scheduling": ["threadsafe"],
"exclude": ["tests", "usd", "docs"],
"icon": {
"path": "TestNodeIcon.svg"
},
"inputs": {
"prims": {
"type": "bundle",
"description": "input bundle"
},
"attribute": {
"type": "token",
"description": "Attribute name"
}
},
"outputs": {
"interpolation": {
"type": "token",
"description": "Attribute interpolation"
}
}
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnMultiply2IntArray.ogn | {
"Multiply2IntegerArrays": {
"description": ["Compute the array 'output' as the element-wise products of the input arrays 'a' and 'b'. ",
"If either of the input arrays have size 1 then that value will be multipled to every element ",
"of the other to form the output."
],
"metadata" : {
"uiName": "Multiple Two Arrays Of Integers"
},
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
"scheduling": ["threadsafe"],
"exclude": ["usd", "docs"],
"inputs": {
"a": {
"description": "First array to be multiplied",
"type": "int[]",
"default": []
},
"b": {
"description": "Second array to be multiplied",
"type": "int[]",
"default": []
}
},
"outputs": {
"output": {
"description": "Product of the two arrays",
"type": "int[]",
"default": []
}
},
"tests": [
{ "inputs:a": [1, 2, 3], "inputs:b": [10, 20, 30], "outputs:output": [10, 40, 90]},
{ "inputs:a": [1], "inputs:b": [10, 20, 30], "outputs:output": [10, 20, 30]},
{ "inputs:a": [1, 2, 3], "inputs:b": [10], "outputs:output": [10, 20, 30]},
{ "inputs:a": [5], "inputs:b": [11], "outputs:output": [55]}
]
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnBundleConsumerPy.py | """
This node is designed to consume input bundle and test bundle change tracking.
"""
class OgnBundleConsumerPy:
@staticmethod
def compute(db) -> bool:
with db.inputs.bundle.changes() as bundle_changes:
if bundle_changes:
db.outputs.bundle = db.inputs.bundle
db.outputs.hasOutputBundleChanged = True
else:
db.outputs.hasOutputBundleChanged = False
return True
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestExecutionTask.cpp | // Copyright (c) 2022 NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#include <OgnTestExecutionTaskDatabase.h>
#include <omni/graph/exec/unstable/ExecutionTask.h>
#include <cstdlib>
// This is the implementation of the OGN node defined in OgnTestExecutionTask.ogn
namespace omni {
namespace graph {
namespace test {
class OgnTestExecutionTask
{
public:
static bool compute(OgnTestExecutionTaskDatabase& db)
{
auto& result = db.outputs.result();
if (exec::unstable::getCurrentTask())
result = true;
else
result = false;
return true;
}
};
REGISTER_OGN_NODE()
} // test
} // namespace graph
} // namespace omni
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnRandomPointsGpu.cpp | // Copyright (c) 2021 NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#include <OgnRandomPointsGpuDatabase.h>
#include <cstdlib>
// This is the implementation of the OGN node defined in OgnRandomPointsGpu.ogn
namespace omni {
namespace graph {
namespace test {
extern "C"
void generateGpu(
outputs::points_t outputPoints,
inputs::minimum_t minimum,
inputs::maximum_t maximum,
size_t numberOfPoints);
class OgnRandomPointsGpu
{
public:
// Create an array of "pointCount" points at random locations within the bounding cube,
// delineated by the corner points "minimum" and "maximum".
static bool compute(OgnRandomPointsGpuDatabase& db)
{
// No points mean nothing to generate
const auto& pointCount = db.inputs.pointCount();
if (pointCount == 0)
{
return true;
}
CARB_PROFILE_ZONE(carb::profiler::kCaptureMaskDefault, "Generating Data");
db.outputs.points.resize(pointCount);
generateGpu(db.outputs.points(), db.inputs.minimum(), db.inputs.maximum(), pointCount);
return true;
}
};
REGISTER_OGN_NODE()
} // test
} // namespace graph
} // namespace omni
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnBundleChildConsumerPy.py | """
This node is designed to consume shallow copied child from the bundle child
producer.
"""
class OgnBundleChildConsumerPy:
@staticmethod
def compute(db) -> bool:
input_bundle = db.inputs.bundle
db.outputs.numChildren = input_bundle.bundle.get_child_bundle_count()
surfaces_bundle = input_bundle.bundle.get_child_bundle_by_name("surfaces")
if surfaces_bundle.is_valid():
db.outputs.numSurfaces = surfaces_bundle.get_child_bundle_count()
else:
db.outputs.numSurfaces = 0
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestAllDataTypesCarb.cpp | // Copyright (c) 2021 NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#include <OgnTestAllDataTypesCarbDatabase.h>
namespace omni {
namespace graph {
using core::ogn::array;
using core::ogn::const_array;
using core::ogn::string;
using core::ogn::const_string;
namespace test {
// Helper template that reduces the testing code while hardcoding to the expected types.
// This version is for types that are directly assignable.
template <typename DataType, typename ConstDataType, typename std::enable_if_t<std::is_assignable<DataType, ConstDataType>::value, int> = 0>
void assign(DataType& dst, ConstDataType& src)
{
dst = src;
}
// This version is for types that cannot be assigned. memcpy works for them since we require types to be byte-compatible
template <typename DataType, typename ConstDataType, typename std::enable_if_t<! std::is_assignable<DataType, ConstDataType>::value, int> = 0>
void assign(DataType& dst, ConstDataType& src)
{
memcpy(&dst, &src, sizeof(DataType));
}
class OgnTestAllDataTypesCarb
{
public:
static bool compute(OgnTestAllDataTypesCarbDatabase& db)
{
if (db.inputs.doNotCompute())
{
return true;
}
assign<bool, const bool>(db.outputs.a_bool(), db.inputs.a_bool());
assign<array<bool>, const const_array<bool>>(db.outputs.a_bool_array(), db.inputs.a_bool_array());
assign<carb::ColorRgbDouble, const carb::ColorRgbDouble>(db.outputs.a_colord_3(), db.inputs.a_colord_3());
assign<carb::ColorRgbaDouble, const carb::ColorRgbaDouble>(db.outputs.a_colord_4(), db.inputs.a_colord_4());
assign<carb::ColorRgb, const carb::ColorRgb>(db.outputs.a_colorf_3(), db.inputs.a_colorf_3());
assign<carb::ColorRgba, const carb::ColorRgba>(db.outputs.a_colorf_4(), db.inputs.a_colorf_4());
assign<pxr::GfVec3h, const pxr::GfVec3h>(db.outputs.a_colorh_3(), db.inputs.a_colorh_3());
assign<pxr::GfVec4h, const pxr::GfVec4h>(db.outputs.a_colorh_4(), db.inputs.a_colorh_4());
assign<array<carb::ColorRgbDouble>, const const_array<carb::ColorRgbDouble>>(db.outputs.a_colord_3_array(), db.inputs.a_colord_3_array());
assign<array<carb::ColorRgbaDouble>, const const_array<carb::ColorRgbaDouble>>(db.outputs.a_colord_4_array(), db.inputs.a_colord_4_array());
assign<array<carb::ColorRgb>, const const_array<carb::ColorRgb>>(db.outputs.a_colorf_3_array(), db.inputs.a_colorf_3_array());
assign<array<carb::ColorRgba>, const const_array<carb::ColorRgba>>(db.outputs.a_colorf_4_array(), db.inputs.a_colorf_4_array());
assign<array<pxr::GfVec3h>, const const_array<pxr::GfVec3h>>(db.outputs.a_colorh_3_array(), db.inputs.a_colorh_3_array());
assign<array<pxr::GfVec4h>, const const_array<pxr::GfVec4h>>(db.outputs.a_colorh_4_array(), db.inputs.a_colorh_4_array());
assign<double, const double>(db.outputs.a_double(), db.inputs.a_double());
assign<carb::Double2, const carb::Double2>(db.outputs.a_double_2(), db.inputs.a_double_2());
assign<carb::Double3, const carb::Double3>(db.outputs.a_double_3(), db.inputs.a_double_3());
assign<carb::Double4, const carb::Double4>(db.outputs.a_double_4(), db.inputs.a_double_4());
assign<array<double>, const const_array<double>>(db.outputs.a_double_array(), db.inputs.a_double_array());
assign<array<carb::Double2>, const const_array<carb::Double2>>(db.outputs.a_double_2_array(), db.inputs.a_double_2_array());
assign<array<carb::Double3>, const const_array<carb::Double3>>(db.outputs.a_double_3_array(), db.inputs.a_double_3_array());
assign<array<carb::Double4>, const const_array<carb::Double4>>(db.outputs.a_double_4_array(), db.inputs.a_double_4_array());
assign<uint32_t, const uint32_t>(db.outputs.a_execution(), db.inputs.a_execution());
assign<float, const float>(db.outputs.a_float(), db.inputs.a_float());
assign<carb::Float2, const carb::Float2>(db.outputs.a_float_2(), db.inputs.a_float_2());
assign<carb::Float3, const carb::Float3>(db.outputs.a_float_3(), db.inputs.a_float_3());
assign<carb::Float4, const carb::Float4>(db.outputs.a_float_4(), db.inputs.a_float_4());
assign<array<float>, const const_array<float>>(db.outputs.a_float_array(), db.inputs.a_float_array());
assign<array<carb::Float2>, const const_array<carb::Float2>>(db.outputs.a_float_2_array(), db.inputs.a_float_2_array());
assign<array<carb::Float3>, const const_array<carb::Float3>>(db.outputs.a_float_3_array(), db.inputs.a_float_3_array());
assign<array<carb::Float4>, const const_array<carb::Float4>>(db.outputs.a_float_4_array(), db.inputs.a_float_4_array());
assign<pxr::GfMatrix4d, const pxr::GfMatrix4d>(db.outputs.a_frame_4(), db.inputs.a_frame_4());
assign<array<pxr::GfMatrix4d>, const const_array<pxr::GfMatrix4d>>(db.outputs.a_frame_4_array(), db.inputs.a_frame_4_array());
assign<pxr::GfHalf, const pxr::GfHalf>(db.outputs.a_half(), db.inputs.a_half());
assign<pxr::GfVec2h, const pxr::GfVec2h>(db.outputs.a_half_2(), db.inputs.a_half_2());
assign<pxr::GfVec3h, const pxr::GfVec3h>(db.outputs.a_half_3(), db.inputs.a_half_3());
assign<pxr::GfVec4h, const pxr::GfVec4h>(db.outputs.a_half_4(), db.inputs.a_half_4());
assign<array<pxr::GfHalf>, const const_array<pxr::GfHalf>>(db.outputs.a_half_array(), db.inputs.a_half_array());
assign<array<pxr::GfVec2h>, const const_array<pxr::GfVec2h>>(db.outputs.a_half_2_array(), db.inputs.a_half_2_array());
assign<array<pxr::GfVec3h>, const const_array<pxr::GfVec3h>>(db.outputs.a_half_3_array(), db.inputs.a_half_3_array());
assign<array<pxr::GfVec4h>, const const_array<pxr::GfVec4h>>(db.outputs.a_half_4_array(), db.inputs.a_half_4_array());
assign<int, const int>(db.outputs.a_int(), db.inputs.a_int());
assign<carb::Int2, const carb::Int2>(db.outputs.a_int_2(), db.inputs.a_int_2());
assign<carb::Int3, const carb::Int3>(db.outputs.a_int_3(), db.inputs.a_int_3());
assign<carb::Int4, const carb::Int4>(db.outputs.a_int_4(), db.inputs.a_int_4());
assign<array<int>, const const_array<int>>(db.outputs.a_int_array(), db.inputs.a_int_array());
assign<array<carb::Int2>, const const_array<carb::Int2>>(db.outputs.a_int_2_array(), db.inputs.a_int_2_array());
assign<array<carb::Int3>, const const_array<carb::Int3>>(db.outputs.a_int_3_array(), db.inputs.a_int_3_array());
assign<array<carb::Int4>, const const_array<carb::Int4>>(db.outputs.a_int_4_array(), db.inputs.a_int_4_array());
assign<int64_t, const int64_t>(db.outputs.a_int64(), db.inputs.a_int64());
assign<array<int64_t>, const const_array<int64_t>>(db.outputs.a_int64_array(), db.inputs.a_int64_array());
assign<pxr::GfMatrix2d, const pxr::GfMatrix2d>(db.outputs.a_matrixd_2(), db.inputs.a_matrixd_2());
assign<pxr::GfMatrix3d, const pxr::GfMatrix3d>(db.outputs.a_matrixd_3(), db.inputs.a_matrixd_3());
assign<pxr::GfMatrix4d, const pxr::GfMatrix4d>(db.outputs.a_matrixd_4(), db.inputs.a_matrixd_4());
assign<array<pxr::GfMatrix2d>, const const_array<pxr::GfMatrix2d>>(db.outputs.a_matrixd_2_array(), db.inputs.a_matrixd_2_array());
assign<array<pxr::GfMatrix3d>, const const_array<pxr::GfMatrix3d>>(db.outputs.a_matrixd_3_array(), db.inputs.a_matrixd_3_array());
assign<array<pxr::GfMatrix4d>, const const_array<pxr::GfMatrix4d>>(db.outputs.a_matrixd_4_array(), db.inputs.a_matrixd_4_array());
assign<carb::Double3, const carb::Double3>(db.outputs.a_normald_3(), db.inputs.a_normald_3());
assign<carb::Float3, const carb::Float3>(db.outputs.a_normalf_3(), db.inputs.a_normalf_3());
assign<pxr::GfVec3h, const pxr::GfVec3h>(db.outputs.a_normalh_3(), db.inputs.a_normalh_3());
assign<array<carb::Double3>, const const_array<carb::Double3>>(db.outputs.a_normald_3_array(), db.inputs.a_normald_3_array());
assign<array<carb::Float3>, const const_array<carb::Float3>>(db.outputs.a_normalf_3_array(), db.inputs.a_normalf_3_array());
assign<array<pxr::GfVec3h>, const const_array<pxr::GfVec3h>>(db.outputs.a_normalh_3_array(), db.inputs.a_normalh_3_array());
assign<uint64_t, const uint64_t>(db.outputs.a_objectId(), db.inputs.a_objectId());
assign<array<uint64_t>, const const_array<uint64_t>>(db.outputs.a_objectId_array(), db.inputs.a_objectId_array());
assign<carb::Double3, const carb::Double3>(db.outputs.a_pointd_3(), db.inputs.a_pointd_3());
assign<carb::Float3, const carb::Float3>(db.outputs.a_pointf_3(), db.inputs.a_pointf_3());
assign<pxr::GfVec3h, const pxr::GfVec3h>(db.outputs.a_pointh_3(), db.inputs.a_pointh_3());
assign<array<carb::Double3>, const const_array<carb::Double3>>(db.outputs.a_pointd_3_array(), db.inputs.a_pointd_3_array());
assign<array<carb::Float3>, const const_array<carb::Float3>>(db.outputs.a_pointf_3_array(), db.inputs.a_pointf_3_array());
assign<array<pxr::GfVec3h>, const const_array<pxr::GfVec3h>>(db.outputs.a_pointh_3_array(), db.inputs.a_pointh_3_array());
assign<carb::Double4, const carb::Double4>(db.outputs.a_quatd_4(), db.inputs.a_quatd_4());
assign<carb::Float4, const carb::Float4>(db.outputs.a_quatf_4(), db.inputs.a_quatf_4());
assign<pxr::GfQuath, const pxr::GfQuath>(db.outputs.a_quath_4(), db.inputs.a_quath_4());
assign<array<carb::Double4>, const const_array<carb::Double4>>(db.outputs.a_quatd_4_array(), db.inputs.a_quatd_4_array());
assign<array<carb::Float4>, const const_array<carb::Float4>>(db.outputs.a_quatf_4_array(), db.inputs.a_quatf_4_array());
assign<array<pxr::GfQuath>, const const_array<pxr::GfQuath>>(db.outputs.a_quath_4_array(), db.inputs.a_quath_4_array());
assign<string, const const_string>(db.outputs.a_string(), db.inputs.a_string());
assign<carb::Double2, const carb::Double2>(db.outputs.a_texcoordd_2(), db.inputs.a_texcoordd_2());
assign<carb::Double3, const carb::Double3>(db.outputs.a_texcoordd_3(), db.inputs.a_texcoordd_3());
assign<carb::Float2, const carb::Float2>(db.outputs.a_texcoordf_2(), db.inputs.a_texcoordf_2());
assign<carb::Float3, const carb::Float3>(db.outputs.a_texcoordf_3(), db.inputs.a_texcoordf_3());
assign<pxr::GfVec2h, const pxr::GfVec2h>(db.outputs.a_texcoordh_2(), db.inputs.a_texcoordh_2());
assign<pxr::GfVec3h, const pxr::GfVec3h>(db.outputs.a_texcoordh_3(), db.inputs.a_texcoordh_3());
assign<array<carb::Double2>, const const_array<carb::Double2>>(db.outputs.a_texcoordd_2_array(), db.inputs.a_texcoordd_2_array());
assign<array<carb::Double3>, const const_array<carb::Double3>>(db.outputs.a_texcoordd_3_array(), db.inputs.a_texcoordd_3_array());
assign<array<carb::Float2>, const const_array<carb::Float2>>(db.outputs.a_texcoordf_2_array(), db.inputs.a_texcoordf_2_array());
assign<array<carb::Float3>, const const_array<carb::Float3>>(db.outputs.a_texcoordf_3_array(), db.inputs.a_texcoordf_3_array());
assign<array<pxr::GfVec2h>, const const_array<pxr::GfVec2h>>(db.outputs.a_texcoordh_2_array(), db.inputs.a_texcoordh_2_array());
assign<array<pxr::GfVec3h>, const const_array<pxr::GfVec3h>>(db.outputs.a_texcoordh_3_array(), db.inputs.a_texcoordh_3_array());
assign<pxr::SdfTimeCode, const pxr::SdfTimeCode>(db.outputs.a_timecode(), db.inputs.a_timecode());
assign<array<pxr::SdfTimeCode>, const const_array<pxr::SdfTimeCode>>(db.outputs.a_timecode_array(), db.inputs.a_timecode_array());
assign<NameToken, const NameToken>(db.outputs.a_token(), db.inputs.a_token());
assign<array<NameToken>, const const_array<NameToken>>(db.outputs.a_token_array(), db.inputs.a_token_array());
assign<uint8_t, const uint8_t>(db.outputs.a_uchar(), db.inputs.a_uchar());
assign<array<uint8_t>, const const_array<uint8_t>>(db.outputs.a_uchar_array(), db.inputs.a_uchar_array());
assign<uint32_t, const uint32_t>(db.outputs.a_uint(), db.inputs.a_uint());
assign<array<uint32_t>, const const_array<uint32_t>>(db.outputs.a_uint_array(), db.inputs.a_uint_array());
assign<uint64_t, const uint64_t>(db.outputs.a_uint64(), db.inputs.a_uint64());
assign<array<uint64_t>, const const_array<uint64_t>>(db.outputs.a_uint64_array(), db.inputs.a_uint64_array());
assign<carb::Double3, const carb::Double3>(db.outputs.a_vectord_3(), db.inputs.a_vectord_3());
assign<carb::Float3, const carb::Float3>(db.outputs.a_vectorf_3(), db.inputs.a_vectorf_3());
assign<pxr::GfVec3h, const pxr::GfVec3h>(db.outputs.a_vectorh_3(), db.inputs.a_vectorh_3());
assign<array<carb::Double3>, const const_array<carb::Double3>>(db.outputs.a_vectord_3_array(), db.inputs.a_vectord_3_array());
assign<array<carb::Float3>, const const_array<carb::Float3>>(db.outputs.a_vectorf_3_array(), db.inputs.a_vectorf_3_array());
assign<array<pxr::GfVec3h>, const const_array<pxr::GfVec3h>>(db.outputs.a_vectorh_3_array(), db.inputs.a_vectorh_3_array());
return true;
}
};
REGISTER_OGN_NODE()
} // namespace test
} // namespace graph
} // namespace omni
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnNodeDatabasePy.ogn | {
"NodeDatabasePy": {
"version": 1,
"description": "Node that caches database id",
"language": "Python",
"categories": "internal:test",
"exclude": [ "usd", "docs" ],
"uiName": "Test Node: Node Database",
"icon": {
"path": "TestNodeIcon.svg"
},
"inputs": {
"bundle": {
"type": "bundle",
"description": [ "Input Bundle" ],
"optional": true
}
},
"outputs": {
"id": {
"description": "Database Id from previous computation",
"type": "uint64",
"default": 0
}
}
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/TestCategoryDefinitions.json | {
"categoryDefinitions": {
"$description": "Special category definition, only used for test nodes",
"internal:categoryTest": "Category created only for testing category definitions"
}
} |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnMultiply2IntArray.cpp | // Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#include <OgnMultiply2IntArrayDatabase.h>
#include <algorithm>
class OgnMultiply2IntArray
{
public:
static bool compute(OgnMultiply2IntArrayDatabase& db)
{
auto a = db.inputs.a();
auto b = db.inputs.b();
auto output = db.outputs.output();
// If either array has only a single member that value will multiply all members of the other array.
// The case when both have size 1 is handled by the first "if".
if (a.size() == 1)
{
output = b;
std::for_each(output.begin(), output.end(), [a](int& value) { value *= a[0]; });
}
else if (b.size() == 1)
{
output = a;
std::for_each(output.begin(), output.end(), [b](int& value) { value *= b[0]; });
}
else
{
output.resize(a.size());
std::transform(a.begin(), a.end(), b.begin(), output.begin(), std::multiplies<int>());
}
return true;
}
};
REGISTER_OGN_NODE()
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestAllDataTypes.cpp | // Copyright (c) 2021 NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#include <OgnTestAllDataTypesDatabase.h>
namespace omni {
namespace graph {
namespace test {
class OgnTestAllDataTypes
{
public:
static bool compute(OgnTestAllDataTypesDatabase& db)
{
if (db.inputs.doNotCompute())
{
return true;
}
db.outputs.a_bool() = db.inputs.a_bool();
db.outputs.a_bool_array() = db.inputs.a_bool_array();
db.outputs.a_colord_3() = db.inputs.a_colord_3();
db.outputs.a_colord_4() = db.inputs.a_colord_4();
db.outputs.a_colorf_3() = db.inputs.a_colorf_3();
db.outputs.a_colorf_4() = db.inputs.a_colorf_4();
db.outputs.a_colorh_3() = db.inputs.a_colorh_3();
db.outputs.a_colorh_4() = db.inputs.a_colorh_4();
db.outputs.a_colord_3_array() = db.inputs.a_colord_3_array();
db.outputs.a_colord_4_array() = db.inputs.a_colord_4_array();
db.outputs.a_colorf_3_array() = db.inputs.a_colorf_3_array();
db.outputs.a_colorf_4_array() = db.inputs.a_colorf_4_array();
db.outputs.a_colorh_3_array() = db.inputs.a_colorh_3_array();
db.outputs.a_colorh_4_array() = db.inputs.a_colorh_4_array();
db.outputs.a_double() = db.inputs.a_double();
db.outputs.a_double_2() = db.inputs.a_double_2();
db.outputs.a_double_3() = db.inputs.a_double_3();
db.outputs.a_double_4() = db.inputs.a_double_4();
db.outputs.a_double_array() = db.inputs.a_double_array();
db.outputs.a_double_2_array() = db.inputs.a_double_2_array();
db.outputs.a_double_3_array() = db.inputs.a_double_3_array();
db.outputs.a_double_4_array() = db.inputs.a_double_4_array();
db.outputs.a_execution() = db.inputs.a_execution();
db.outputs.a_float() = db.inputs.a_float();
db.outputs.a_float_2() = db.inputs.a_float_2();
db.outputs.a_float_3() = db.inputs.a_float_3();
db.outputs.a_float_4() = db.inputs.a_float_4();
db.outputs.a_float_array() = db.inputs.a_float_array();
db.outputs.a_float_2_array() = db.inputs.a_float_2_array();
db.outputs.a_float_3_array() = db.inputs.a_float_3_array();
db.outputs.a_float_4_array() = db.inputs.a_float_4_array();
db.outputs.a_frame_4() = db.inputs.a_frame_4();
db.outputs.a_frame_4_array() = db.inputs.a_frame_4_array();
db.outputs.a_half() = db.inputs.a_half();
db.outputs.a_half_2() = db.inputs.a_half_2();
db.outputs.a_half_3() = db.inputs.a_half_3();
db.outputs.a_half_4() = db.inputs.a_half_4();
db.outputs.a_half_array() = db.inputs.a_half_array();
db.outputs.a_half_2_array() = db.inputs.a_half_2_array();
db.outputs.a_half_3_array() = db.inputs.a_half_3_array();
db.outputs.a_half_4_array() = db.inputs.a_half_4_array();
db.outputs.a_int() = db.inputs.a_int();
db.outputs.a_int_2() = db.inputs.a_int_2();
db.outputs.a_int_3() = db.inputs.a_int_3();
db.outputs.a_int_4() = db.inputs.a_int_4();
db.outputs.a_int_array() = db.inputs.a_int_array();
db.outputs.a_int_2_array() = db.inputs.a_int_2_array();
db.outputs.a_int_3_array() = db.inputs.a_int_3_array();
db.outputs.a_int_4_array() = db.inputs.a_int_4_array();
db.outputs.a_int64() = db.inputs.a_int64();
db.outputs.a_int64_array() = db.inputs.a_int64_array();
db.outputs.a_matrixd_2() = db.inputs.a_matrixd_2();
db.outputs.a_matrixd_3() = db.inputs.a_matrixd_3();
db.outputs.a_matrixd_4() = db.inputs.a_matrixd_4();
db.outputs.a_matrixd_2_array() = db.inputs.a_matrixd_2_array();
db.outputs.a_matrixd_3_array() = db.inputs.a_matrixd_3_array();
db.outputs.a_matrixd_4_array() = db.inputs.a_matrixd_4_array();
db.outputs.a_normald_3() = db.inputs.a_normald_3();
db.outputs.a_normalf_3() = db.inputs.a_normalf_3();
db.outputs.a_normalh_3() = db.inputs.a_normalh_3();
db.outputs.a_normald_3_array() = db.inputs.a_normald_3_array();
db.outputs.a_normalf_3_array() = db.inputs.a_normalf_3_array();
db.outputs.a_normalh_3_array() = db.inputs.a_normalh_3_array();
db.outputs.a_objectId() = db.inputs.a_objectId();
db.outputs.a_objectId_array() = db.inputs.a_objectId_array();
db.outputs.a_path() = db.inputs.a_path();
db.outputs.a_pointd_3() = db.inputs.a_pointd_3();
db.outputs.a_pointf_3() = db.inputs.a_pointf_3();
db.outputs.a_pointh_3() = db.inputs.a_pointh_3();
db.outputs.a_pointd_3_array() = db.inputs.a_pointd_3_array();
db.outputs.a_pointf_3_array() = db.inputs.a_pointf_3_array();
db.outputs.a_pointh_3_array() = db.inputs.a_pointh_3_array();
db.outputs.a_quatd_4() = db.inputs.a_quatd_4();
db.outputs.a_quatf_4() = db.inputs.a_quatf_4();
db.outputs.a_quath_4() = db.inputs.a_quath_4();
db.outputs.a_quatd_4_array() = db.inputs.a_quatd_4_array();
db.outputs.a_quatf_4_array() = db.inputs.a_quatf_4_array();
db.outputs.a_quath_4_array() = db.inputs.a_quath_4_array();
db.outputs.a_string() = db.inputs.a_string();
db.outputs.a_target() = db.inputs.a_target();
db.outputs.a_texcoordd_2() = db.inputs.a_texcoordd_2();
db.outputs.a_texcoordd_3() = db.inputs.a_texcoordd_3();
db.outputs.a_texcoordf_2() = db.inputs.a_texcoordf_2();
db.outputs.a_texcoordf_3() = db.inputs.a_texcoordf_3();
db.outputs.a_texcoordh_2() = db.inputs.a_texcoordh_2();
db.outputs.a_texcoordh_3() = db.inputs.a_texcoordh_3();
db.outputs.a_texcoordd_2_array() = db.inputs.a_texcoordd_2_array();
db.outputs.a_texcoordd_3_array() = db.inputs.a_texcoordd_3_array();
db.outputs.a_texcoordf_2_array() = db.inputs.a_texcoordf_2_array();
db.outputs.a_texcoordf_3_array() = db.inputs.a_texcoordf_3_array();
db.outputs.a_texcoordh_2_array() = db.inputs.a_texcoordh_2_array();
db.outputs.a_texcoordh_3_array() = db.inputs.a_texcoordh_3_array();
db.outputs.a_timecode() = db.inputs.a_timecode();
db.outputs.a_timecode_array() = db.inputs.a_timecode_array();
db.outputs.a_token() = db.inputs.a_token();
db.outputs.a_token_array() = db.inputs.a_token_array();
db.outputs.a_uchar() = db.inputs.a_uchar();
db.outputs.a_uchar_array() = db.inputs.a_uchar_array();
db.outputs.a_uint() = db.inputs.a_uint();
db.outputs.a_uint_array() = db.inputs.a_uint_array();
db.outputs.a_uint64() = db.inputs.a_uint64();
db.outputs.a_uint64_array() = db.inputs.a_uint64_array();
db.outputs.a_vectord_3() = db.inputs.a_vectord_3();
db.outputs.a_vectorf_3() = db.inputs.a_vectorf_3();
db.outputs.a_vectorh_3() = db.inputs.a_vectorh_3();
db.outputs.a_vectord_3_array() = db.inputs.a_vectord_3_array();
db.outputs.a_vectorf_3_array() = db.inputs.a_vectorf_3_array();
db.outputs.a_vectorh_3_array() = db.inputs.a_vectorh_3_array();
// The input bundle could contain any of the legal data types so check them all. When a match is found then
// a copy of the regular input attribute with the same type is added to both the state and output bundles.
// As a secondary check it also does type casting to USD types where explicit casting has been implemented.
auto& outputBundle = db.outputs.a_bundle();
auto& stateBundle = db.state.a_bundle();
for (const auto& bundledAttribute : db.inputs.a_bundle())
{
const auto& bundledType = bundledAttribute.type();
// As the copyData handles attributes of all types, and we are by design creating an attribute with a type
// identical to the one it is copying, none of the usual bundle member casting is necessary. A simple
// create-and-copy gives a bundle with contents equal to all of the input attributes.
auto newOutput = outputBundle.addAttribute(bundledAttribute.name(), bundledType);
auto newState = stateBundle.addAttribute(bundledAttribute.name(), bundledType);
newOutput.copyData(bundledAttribute);
newState.copyData(bundledAttribute);
}
// State attributes take on the input values the first time they evaluate, zeroes on subsequent evaluations.
// The a_firstEvaluation attribute is used as the gating state information to decide when evaluation needs to happen again.
if (db.state.a_firstEvaluation())
{
db.state.a_firstEvaluation() = false;
db.state.a_bool() = db.inputs.a_bool();
db.state.a_bool_array() = db.inputs.a_bool_array();
db.state.a_colord_3() = db.inputs.a_colord_3();
db.state.a_colord_4() = db.inputs.a_colord_4();
db.state.a_colorf_3() = db.inputs.a_colorf_3();
db.state.a_colorf_4() = db.inputs.a_colorf_4();
db.state.a_colorh_3() = db.inputs.a_colorh_3();
db.state.a_colorh_4() = db.inputs.a_colorh_4();
db.state.a_colord_3_array() = db.inputs.a_colord_3_array();
db.state.a_colord_4_array() = db.inputs.a_colord_4_array();
db.state.a_colorf_3_array() = db.inputs.a_colorf_3_array();
db.state.a_colorf_4_array() = db.inputs.a_colorf_4_array();
db.state.a_colorh_3_array() = db.inputs.a_colorh_3_array();
db.state.a_colorh_4_array() = db.inputs.a_colorh_4_array();
db.state.a_double() = db.inputs.a_double();
db.state.a_double_2() = db.inputs.a_double_2();
db.state.a_double_3() = db.inputs.a_double_3();
db.state.a_double_4() = db.inputs.a_double_4();
db.state.a_double_array() = db.inputs.a_double_array();
db.state.a_double_2_array() = db.inputs.a_double_2_array();
db.state.a_double_3_array() = db.inputs.a_double_3_array();
db.state.a_double_4_array() = db.inputs.a_double_4_array();
db.state.a_execution() = db.inputs.a_execution();
db.state.a_float() = db.inputs.a_float();
db.state.a_float_2() = db.inputs.a_float_2();
db.state.a_float_3() = db.inputs.a_float_3();
db.state.a_float_4() = db.inputs.a_float_4();
db.state.a_float_array() = db.inputs.a_float_array();
db.state.a_float_2_array() = db.inputs.a_float_2_array();
db.state.a_float_3_array() = db.inputs.a_float_3_array();
db.state.a_float_4_array() = db.inputs.a_float_4_array();
db.state.a_frame_4() = db.inputs.a_frame_4();
db.state.a_frame_4_array() = db.inputs.a_frame_4_array();
db.state.a_half() = db.inputs.a_half();
db.state.a_half_2() = db.inputs.a_half_2();
db.state.a_half_3() = db.inputs.a_half_3();
db.state.a_half_4() = db.inputs.a_half_4();
db.state.a_half_array() = db.inputs.a_half_array();
db.state.a_half_2_array() = db.inputs.a_half_2_array();
db.state.a_half_3_array() = db.inputs.a_half_3_array();
db.state.a_half_4_array() = db.inputs.a_half_4_array();
db.state.a_int() = db.inputs.a_int();
db.state.a_int_2() = db.inputs.a_int_2();
db.state.a_int_3() = db.inputs.a_int_3();
db.state.a_int_4() = db.inputs.a_int_4();
db.state.a_int_array() = db.inputs.a_int_array();
db.state.a_int_2_array() = db.inputs.a_int_2_array();
db.state.a_int_3_array() = db.inputs.a_int_3_array();
db.state.a_int_4_array() = db.inputs.a_int_4_array();
db.state.a_int64() = db.inputs.a_int64();
db.state.a_int64_array() = db.inputs.a_int64_array();
db.state.a_matrixd_2() = db.inputs.a_matrixd_2();
db.state.a_matrixd_3() = db.inputs.a_matrixd_3();
db.state.a_matrixd_4() = db.inputs.a_matrixd_4();
db.state.a_matrixd_2_array() = db.inputs.a_matrixd_2_array();
db.state.a_matrixd_3_array() = db.inputs.a_matrixd_3_array();
db.state.a_matrixd_4_array() = db.inputs.a_matrixd_4_array();
db.state.a_normald_3() = db.inputs.a_normald_3();
db.state.a_normalf_3() = db.inputs.a_normalf_3();
db.state.a_normalh_3() = db.inputs.a_normalh_3();
db.state.a_normald_3_array() = db.inputs.a_normald_3_array();
db.state.a_normalf_3_array() = db.inputs.a_normalf_3_array();
db.state.a_normalh_3_array() = db.inputs.a_normalh_3_array();
db.state.a_objectId() = db.inputs.a_objectId();
db.state.a_objectId_array() = db.inputs.a_objectId_array();
db.state.a_path() = db.inputs.a_path();
db.state.a_pointd_3() = db.inputs.a_pointd_3();
db.state.a_pointf_3() = db.inputs.a_pointf_3();
db.state.a_pointh_3() = db.inputs.a_pointh_3();
db.state.a_pointd_3_array() = db.inputs.a_pointd_3_array();
db.state.a_pointf_3_array() = db.inputs.a_pointf_3_array();
db.state.a_pointh_3_array() = db.inputs.a_pointh_3_array();
db.state.a_quatd_4() = db.inputs.a_quatd_4();
db.state.a_quatf_4() = db.inputs.a_quatf_4();
db.state.a_quath_4() = db.inputs.a_quath_4();
db.state.a_quatd_4_array() = db.inputs.a_quatd_4_array();
db.state.a_quatf_4_array() = db.inputs.a_quatf_4_array();
db.state.a_quath_4_array() = db.inputs.a_quath_4_array();
db.state.a_string() = db.inputs.a_string();
db.state.a_stringEmpty() = db.inputs.a_string();
db.state.a_target() = db.inputs.a_target();
db.state.a_texcoordd_2() = db.inputs.a_texcoordd_2();
db.state.a_texcoordd_3() = db.inputs.a_texcoordd_3();
db.state.a_texcoordf_2() = db.inputs.a_texcoordf_2();
db.state.a_texcoordf_3() = db.inputs.a_texcoordf_3();
db.state.a_texcoordh_2() = db.inputs.a_texcoordh_2();
db.state.a_texcoordh_3() = db.inputs.a_texcoordh_3();
db.state.a_texcoordd_2_array() = db.inputs.a_texcoordd_2_array();
db.state.a_texcoordd_3_array() = db.inputs.a_texcoordd_3_array();
db.state.a_texcoordf_2_array() = db.inputs.a_texcoordf_2_array();
db.state.a_texcoordf_3_array() = db.inputs.a_texcoordf_3_array();
db.state.a_texcoordh_2_array() = db.inputs.a_texcoordh_2_array();
db.state.a_texcoordh_3_array() = db.inputs.a_texcoordh_3_array();
db.state.a_timecode() = db.inputs.a_timecode();
db.state.a_timecode_array() = db.inputs.a_timecode_array();
db.state.a_token() = db.inputs.a_token();
db.state.a_token_array() = db.inputs.a_token_array();
db.state.a_uchar() = db.inputs.a_uchar();
db.state.a_uchar_array() = db.inputs.a_uchar_array();
db.state.a_uint() = db.inputs.a_uint();
db.state.a_uint_array() = db.inputs.a_uint_array();
db.state.a_uint64() = db.inputs.a_uint64();
db.state.a_uint64_array() = db.inputs.a_uint64_array();
db.state.a_vectord_3() = db.inputs.a_vectord_3();
db.state.a_vectorf_3() = db.inputs.a_vectorf_3();
db.state.a_vectorh_3() = db.inputs.a_vectorh_3();
db.state.a_vectord_3_array() = db.inputs.a_vectord_3_array();
db.state.a_vectorf_3_array() = db.inputs.a_vectorf_3_array();
db.state.a_vectorh_3_array() = db.inputs.a_vectorh_3_array();
}
else
{
// On subsequent evaluations the state values are all set to 0 (empty list for array types)
db.state.a_bool() = false;
db.state.a_bool_array.resize(0);
db.state.a_colord_3().Set(0.0, 0.0, 0.0);
db.state.a_colord_4().Set(0.0, 0.0, 0.0, 0.0);
db.state.a_colorf_3().Set(0.0, 0.0, 0.0);
db.state.a_colorf_4().Set(0.0, 0.0, 0.0, 0.0);
db.state.a_colorh_3() *= 0.0;
db.state.a_colorh_4() *= 0.0;
db.state.a_colord_3_array.resize(0);
db.state.a_colord_4_array.resize(0);
db.state.a_colorf_3_array.resize(0);
db.state.a_colorf_4_array.resize(0);
db.state.a_colorh_3_array.resize(0);
db.state.a_colorh_4_array.resize(0);
db.state.a_double() = 0.0;
db.state.a_double_2().Set(0.0, 0.0);
db.state.a_double_3().Set(0.0, 0.0, 0.0);
db.state.a_double_4().Set(0.0, 0.0, 0.0, 0.0);
db.state.a_double_array.resize(0);
db.state.a_double_2_array.resize(0);
db.state.a_double_3_array.resize(0);
db.state.a_double_4_array.resize(0);
db.state.a_execution() = 0;
db.state.a_float() = 0.0f;
db.state.a_float_2().Set(0.0f, 0.0f);
db.state.a_float_3().Set(0.0f, 0.0f, 0.0f);
db.state.a_float_4().Set(0.0f, 0.0f, 0.0f, 0.0f);
db.state.a_float_array.resize(0);
db.state.a_float_2_array.resize(0);
db.state.a_float_3_array.resize(0);
db.state.a_float_4_array.resize(0);
db.state.a_frame_4().SetZero();
db.state.a_frame_4_array.resize(0);
db.state.a_half() = pxr::GfHalf(0.0);
db.state.a_half_2() *= 0.0;
db.state.a_half_3() *= 0.0;
db.state.a_half_4() *= 0.0;
db.state.a_half_array.resize(0);
db.state.a_half_2_array.resize(0);
db.state.a_half_3_array.resize(0);
db.state.a_half_4_array.resize(0);
db.state.a_int() = 0;
db.state.a_int_2().Set(0, 0);
db.state.a_int_3().Set(0, 0, 0);
db.state.a_int_4().Set(0, 0, 0, 0);
db.state.a_int_array.resize(0);
db.state.a_int_2_array.resize(0);
db.state.a_int_3_array.resize(0);
db.state.a_int_4_array.resize(0);
db.state.a_int64() = 0;
db.state.a_int64_array.resize(0);
db.state.a_matrixd_2().SetZero();
db.state.a_matrixd_3().SetZero();
db.state.a_matrixd_4().SetZero();
db.state.a_matrixd_2_array.resize(0);
db.state.a_matrixd_3_array.resize(0);
db.state.a_matrixd_4_array.resize(0);
db.state.a_normald_3().Set(0.0, 0.0, 0.0);
db.state.a_normalf_3().Set(0.0f, 0.0f, 0.0f);
db.state.a_normalh_3() *= 0.0;
db.state.a_normald_3_array.resize(0);
db.state.a_normalf_3_array.resize(0);
db.state.a_normalh_3_array.resize(0);
db.state.a_objectId() = 0;
db.state.a_objectId_array.resize(0);
std::string emptyString;
db.state.a_path() = emptyString;
db.state.a_pointd_3().Set(0.0, 0.0, 0.0);
db.state.a_pointf_3().Set(0.0f, 0.0f, 0.0f);
db.state.a_pointh_3() *= 0.0;
db.state.a_pointd_3_array.resize(0);
db.state.a_pointf_3_array.resize(0);
db.state.a_pointh_3_array.resize(0);
db.state.a_quatd_4().SetReal(0.0);
db.state.a_quatd_4().SetImaginary(0.0, 0.0, 0.0);
db.state.a_quatf_4().SetReal(0.0f);
db.state.a_quatf_4().SetImaginary(0.0f, 0.0f, 0.0f);
db.state.a_quath_4() *= 0.0;
db.state.a_quatd_4_array.resize(0);
db.state.a_quatf_4_array.resize(0);
db.state.a_quath_4_array.resize(0);
db.state.a_string() = "";
db.state.a_target().resize(0);
db.state.a_texcoordd_2().Set(0.0, 0.0);
db.state.a_texcoordd_3().Set(0.0, 0.0, 0.0);
db.state.a_texcoordf_2().Set(0.0f, 0.0f);
db.state.a_texcoordf_3().Set(0.0f, 0.0f, 0.0f);
db.state.a_texcoordh_2() *= 0.0;
db.state.a_texcoordh_3() *= 0.0;
db.state.a_texcoordd_2_array.resize(0);
db.state.a_texcoordd_3_array.resize(0);
db.state.a_texcoordf_2_array.resize(0);
db.state.a_texcoordf_3_array.resize(0);
db.state.a_texcoordh_2_array.resize(0);
db.state.a_texcoordh_3_array.resize(0);
db.state.a_timecode() = db.inputs.a_timecode() * pxr::SdfTimeCode(0.0);
db.state.a_timecode_array.resize(0);
db.state.a_token() = omni::fabric::kUninitializedToken;
db.state.a_token_array.resize(0);
db.state.a_uchar() = 0;
db.state.a_uchar_array.resize(0);
db.state.a_uint() = 0;
db.state.a_uint_array.resize(0);
db.state.a_uint64() = 0;
db.state.a_uint64_array.resize(0);
db.state.a_vectord_3().Set(0.0, 0.0, 0.0);
db.state.a_vectorf_3().Set(0.0f, 0.0f, 0.0f);
db.state.a_vectorh_3() *= 0.0;
db.state.a_vectord_3_array.resize(0);
db.state.a_vectorf_3_array.resize(0);
db.state.a_vectorh_3_array.resize(0);
}
// OM-41949 Not building when referencing certain types of state bundle members
auto runtimeInt3Array = db.state.a_bundle().attributeByName(db.stringToToken("inputs:a_int_3_array"));
if (runtimeInt3Array.isValid())
{
// Artificial path to do something the compiler can't elide
auto extractedValue = runtimeInt3Array.getCpu<int[][3]>();
if (extractedValue.size() > 0)
{
return true;
}
}
return true;
}
};
REGISTER_OGN_NODE()
} // namespace test
} // namespace graph
} // namespace omni
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestSchedulingHintsString.cpp | // Copyright (c) 2021 NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#include <OgnTestSchedulingHintsStringDatabase.h>
namespace omni {
namespace graph {
namespace core {
class OgnTestSchedulingHintsString
{
public:
// This node does nothing, it's only a container of the scheduling hints
static bool compute(OgnTestSchedulingHintsStringDatabase& db)
{
return true;
}
};
REGISTER_OGN_NODE()
} // namespace core
} // namespace graph
} // namespace omni
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestGather.ogn | {
"TestGather" : {
"description": ["Test node to test out the effects of vectorization."],
"version": 1,
"uiName": "Test Node: Gather",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
"exclude": ["tests", "usd", "docs"],
"inputs": {
"base_name": {
"description": [ "The base name of the pattern to match" ],
"type": "token",
"default": ""
},
"num_instances": {
"description": [ "How many instances are involved" ],
"type": "int",
"default": 1
}
},
"outputs": {
"gathered_paths": {
"description": ["The paths of the gathered objects"],
"type": "token[]",
"default": []
},
"rotations": {
"description": ["The rotations of the gathered points"],
"type": "double[3][]",
"default": []
}
}
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestCyclesSerial.ogn | {
"TestCyclesSerial": {
"version": 1,
"description": [
"Test node for checking cyclical behavior. Has a bunch of bool attributes from the get-go",
"for convenience (i.e. so that a bunch of attributes don't need to be added at runtime for",
"testing purposes). Scheduled serially."
],
"uiName": "Test Node: Serial Cycles",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
"exclude": ["tests", "usd", "docs"],
"inputs": {
"a": {
"type": "bool",
"description": "A bool",
"uiName": "a"
},
"b": {
"type": "bool",
"description": "A bool",
"uiName": "b"
},
"c": {
"type": "bool",
"description": "A bool",
"uiName": "c"
},
"d": {
"type": "bool",
"description": "A bool",
"uiName": "d"
}
},
"outputs": {
"a": {
"type": "bool",
"description": "A bool",
"uiName": "a"
},
"b": {
"type": "bool",
"description": "A bool",
"uiName": "b"
},
"c": {
"type": "bool",
"description": "A bool",
"uiName": "c"
},
"d": {
"type": "bool",
"description": "A bool",
"uiName": "d"
}
},
"state": {
"count": {
"type": "int",
"description": "An internal counter",
"default": 0
}
}
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestAllDataTypesPod.cpp | // Copyright (c) 2021 NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#include <OgnTestAllDataTypesPodDatabase.h>
namespace omni {
namespace graph {
using core::ogn::array;
using core::ogn::const_array;
using core::ogn::string;
using core::ogn::const_string;
namespace test {
// Helper template that reduces the testing code while hardcoding to the expected types.
// This version is for types that are directly assignable.
template <typename DataType, typename ConstDataType, typename std::enable_if_t<std::is_assignable<DataType, ConstDataType>::value, int> = 0>
void assign(DataType& dst, ConstDataType& src)
{
dst = src;
}
// This version is for types that cannot be assigned. memcpy works for them since we require types to be byte-compatible
template <typename DataType, typename ConstDataType, typename std::enable_if_t<! std::is_assignable<DataType, ConstDataType>::value, int> = 0>
void assign(DataType& dst, ConstDataType& src)
{
memcpy(&dst, &src, sizeof(DataType));
}
class OgnTestAllDataTypesPod
{
public:
static bool compute(OgnTestAllDataTypesPodDatabase& db)
{
if (db.inputs.doNotCompute())
{
return true;
}
assign<bool, const bool>(db.outputs.a_bool(), db.inputs.a_bool());
assign<array<bool>, const const_array<bool>>(db.outputs.a_bool_array(), db.inputs.a_bool_array());
assign<double[3], const double[3]>(db.outputs.a_colord_3(), db.inputs.a_colord_3());
assign<double[4], const double[4]>(db.outputs.a_colord_4(), db.inputs.a_colord_4());
assign<float[3], const float[3]>(db.outputs.a_colorf_3(), db.inputs.a_colorf_3());
assign<float[4], const float[4]>(db.outputs.a_colorf_4(), db.inputs.a_colorf_4());
assign<pxr::GfVec3h, const pxr::GfVec3h>(db.outputs.a_colorh_3(), db.inputs.a_colorh_3());
assign<pxr::GfVec4h, const pxr::GfVec4h>(db.outputs.a_colorh_4(), db.inputs.a_colorh_4());
assign<array<double[3]>, const const_array<double[3]>>(db.outputs.a_colord_3_array(), db.inputs.a_colord_3_array());
assign<array<double[4]>, const const_array<double[4]>>(db.outputs.a_colord_4_array(), db.inputs.a_colord_4_array());
assign<array<float[3]>, const const_array<float[3]>>(db.outputs.a_colorf_3_array(), db.inputs.a_colorf_3_array());
assign<array<float[4]>, const const_array<float[4]>>(db.outputs.a_colorf_4_array(), db.inputs.a_colorf_4_array());
assign<array<pxr::GfVec3h>, const const_array<pxr::GfVec3h>>(db.outputs.a_colorh_3_array(), db.inputs.a_colorh_3_array());
assign<array<pxr::GfVec4h>, const const_array<pxr::GfVec4h>>(db.outputs.a_colorh_4_array(), db.inputs.a_colorh_4_array());
assign<double, const double>(db.outputs.a_double(), db.inputs.a_double());
assign<double[2], const double[2]>(db.outputs.a_double_2(), db.inputs.a_double_2());
assign<double[3], const double[3]>(db.outputs.a_double_3(), db.inputs.a_double_3());
assign<double[4], const double[4]>(db.outputs.a_double_4(), db.inputs.a_double_4());
assign<array<double>, const const_array<double>>(db.outputs.a_double_array(), db.inputs.a_double_array());
assign<array<double[2]>, const const_array<double[2]>>(db.outputs.a_double_2_array(), db.inputs.a_double_2_array());
assign<array<double[3]>, const const_array<double[3]>>(db.outputs.a_double_3_array(), db.inputs.a_double_3_array());
assign<array<double[4]>, const const_array<double[4]>>(db.outputs.a_double_4_array(), db.inputs.a_double_4_array());
assign<uint32_t, const uint32_t>(db.outputs.a_execution(), db.inputs.a_execution());
assign<float, const float>(db.outputs.a_float(), db.inputs.a_float());
assign<float[2], const float[2]>(db.outputs.a_float_2(), db.inputs.a_float_2());
assign<float[3], const float[3]>(db.outputs.a_float_3(), db.inputs.a_float_3());
assign<float[4], const float[4]>(db.outputs.a_float_4(), db.inputs.a_float_4());
assign<array<float>, const const_array<float>>(db.outputs.a_float_array(), db.inputs.a_float_array());
assign<array<float[2]>, const const_array<float[2]>>(db.outputs.a_float_2_array(), db.inputs.a_float_2_array());
assign<array<float[3]>, const const_array<float[3]>>(db.outputs.a_float_3_array(), db.inputs.a_float_3_array());
assign<array<float[4]>, const const_array<float[4]>>(db.outputs.a_float_4_array(), db.inputs.a_float_4_array());
assign<double[4][4], const double[4][4]>(db.outputs.a_frame_4(), db.inputs.a_frame_4());
assign<array<double[4][4]>, const const_array<double[4][4]>>(db.outputs.a_frame_4_array(), db.inputs.a_frame_4_array());
assign<pxr::GfHalf, const pxr::GfHalf>(db.outputs.a_half(), db.inputs.a_half());
assign<pxr::GfVec2h, const pxr::GfVec2h>(db.outputs.a_half_2(), db.inputs.a_half_2());
assign<pxr::GfVec3h, const pxr::GfVec3h>(db.outputs.a_half_3(), db.inputs.a_half_3());
assign<pxr::GfVec4h, const pxr::GfVec4h>(db.outputs.a_half_4(), db.inputs.a_half_4());
assign<array<pxr::GfHalf>, const const_array<pxr::GfHalf>>(db.outputs.a_half_array(), db.inputs.a_half_array());
assign<array<pxr::GfVec2h>, const const_array<pxr::GfVec2h>>(db.outputs.a_half_2_array(), db.inputs.a_half_2_array());
assign<array<pxr::GfVec3h>, const const_array<pxr::GfVec3h>>(db.outputs.a_half_3_array(), db.inputs.a_half_3_array());
assign<array<pxr::GfVec4h>, const const_array<pxr::GfVec4h>>(db.outputs.a_half_4_array(), db.inputs.a_half_4_array());
assign<int, const int>(db.outputs.a_int(), db.inputs.a_int());
assign<int[2], const int[2]>(db.outputs.a_int_2(), db.inputs.a_int_2());
assign<int[3], const int[3]>(db.outputs.a_int_3(), db.inputs.a_int_3());
assign<int[4], const int[4]>(db.outputs.a_int_4(), db.inputs.a_int_4());
assign<array<int>, const const_array<int>>(db.outputs.a_int_array(), db.inputs.a_int_array());
assign<array<int[2]>, const const_array<int[2]>>(db.outputs.a_int_2_array(), db.inputs.a_int_2_array());
assign<array<int[3]>, const const_array<int[3]>>(db.outputs.a_int_3_array(), db.inputs.a_int_3_array());
assign<array<int[4]>, const const_array<int[4]>>(db.outputs.a_int_4_array(), db.inputs.a_int_4_array());
assign<int64_t, const int64_t>(db.outputs.a_int64(), db.inputs.a_int64());
assign<array<int64_t>, const const_array<int64_t>>(db.outputs.a_int64_array(), db.inputs.a_int64_array());
assign<double[2][2], const double[2][2]>(db.outputs.a_matrixd_2(), db.inputs.a_matrixd_2());
assign<double[3][3], const double[3][3]>(db.outputs.a_matrixd_3(), db.inputs.a_matrixd_3());
assign<double[4][4], const double[4][4]>(db.outputs.a_matrixd_4(), db.inputs.a_matrixd_4());
assign<array<double[2][2]>, const const_array<double[2][2]>>(db.outputs.a_matrixd_2_array(), db.inputs.a_matrixd_2_array());
assign<array<double[3][3]>, const const_array<double[3][3]>>(db.outputs.a_matrixd_3_array(), db.inputs.a_matrixd_3_array());
assign<array<double[4][4]>, const const_array<double[4][4]>>(db.outputs.a_matrixd_4_array(), db.inputs.a_matrixd_4_array());
assign<double[3], const double[3]>(db.outputs.a_normald_3(), db.inputs.a_normald_3());
assign<float[3], const float[3]>(db.outputs.a_normalf_3(), db.inputs.a_normalf_3());
assign<pxr::GfVec3h, const pxr::GfVec3h>(db.outputs.a_normalh_3(), db.inputs.a_normalh_3());
assign<array<double[3]>, const const_array<double[3]>>(db.outputs.a_normald_3_array(), db.inputs.a_normald_3_array());
assign<array<float[3]>, const const_array<float[3]>>(db.outputs.a_normalf_3_array(), db.inputs.a_normalf_3_array());
assign<array<pxr::GfVec3h>, const const_array<pxr::GfVec3h>>(db.outputs.a_normalh_3_array(), db.inputs.a_normalh_3_array());
assign<uint64_t, const uint64_t>(db.outputs.a_objectId(), db.inputs.a_objectId());
assign<array<uint64_t>, const const_array<uint64_t>>(db.outputs.a_objectId_array(), db.inputs.a_objectId_array());
assign<double[3], const double[3]>(db.outputs.a_pointd_3(), db.inputs.a_pointd_3());
assign<float[3], const float[3]>(db.outputs.a_pointf_3(), db.inputs.a_pointf_3());
assign<pxr::GfVec3h, const pxr::GfVec3h>(db.outputs.a_pointh_3(), db.inputs.a_pointh_3());
assign<array<double[3]>, const const_array<double[3]>>(db.outputs.a_pointd_3_array(), db.inputs.a_pointd_3_array());
assign<array<float[3]>, const const_array<float[3]>>(db.outputs.a_pointf_3_array(), db.inputs.a_pointf_3_array());
assign<array<pxr::GfVec3h>, const const_array<pxr::GfVec3h>>(db.outputs.a_pointh_3_array(), db.inputs.a_pointh_3_array());
assign<double[4], const double[4]>(db.outputs.a_quatd_4(), db.inputs.a_quatd_4());
assign<float[4], const float[4]>(db.outputs.a_quatf_4(), db.inputs.a_quatf_4());
assign<pxr::GfQuath, const pxr::GfQuath>(db.outputs.a_quath_4(), db.inputs.a_quath_4());
assign<array<double[4]>, const const_array<double[4]>>(db.outputs.a_quatd_4_array(), db.inputs.a_quatd_4_array());
assign<array<float[4]>, const const_array<float[4]>>(db.outputs.a_quatf_4_array(), db.inputs.a_quatf_4_array());
assign<array<pxr::GfQuath>, const const_array<pxr::GfQuath>>(db.outputs.a_quath_4_array(), db.inputs.a_quath_4_array());
assign<string, const const_string>(db.outputs.a_string(), db.inputs.a_string());
assign<double[2], const double[2]>(db.outputs.a_texcoordd_2(), db.inputs.a_texcoordd_2());
assign<double[3], const double[3]>(db.outputs.a_texcoordd_3(), db.inputs.a_texcoordd_3());
assign<float[2], const float[2]>(db.outputs.a_texcoordf_2(), db.inputs.a_texcoordf_2());
assign<float[3], const float[3]>(db.outputs.a_texcoordf_3(), db.inputs.a_texcoordf_3());
assign<pxr::GfVec2h, const pxr::GfVec2h>(db.outputs.a_texcoordh_2(), db.inputs.a_texcoordh_2());
assign<pxr::GfVec3h, const pxr::GfVec3h>(db.outputs.a_texcoordh_3(), db.inputs.a_texcoordh_3());
assign<array<double[2]>, const const_array<double[2]>>(db.outputs.a_texcoordd_2_array(), db.inputs.a_texcoordd_2_array());
assign<array<double[3]>, const const_array<double[3]>>(db.outputs.a_texcoordd_3_array(), db.inputs.a_texcoordd_3_array());
assign<array<float[2]>, const const_array<float[2]>>(db.outputs.a_texcoordf_2_array(), db.inputs.a_texcoordf_2_array());
assign<array<float[3]>, const const_array<float[3]>>(db.outputs.a_texcoordf_3_array(), db.inputs.a_texcoordf_3_array());
assign<array<pxr::GfVec2h>, const const_array<pxr::GfVec2h>>(db.outputs.a_texcoordh_2_array(), db.inputs.a_texcoordh_2_array());
assign<array<pxr::GfVec3h>, const const_array<pxr::GfVec3h>>(db.outputs.a_texcoordh_3_array(), db.inputs.a_texcoordh_3_array());
assign<double, const double>(db.outputs.a_timecode(), db.inputs.a_timecode());
assign<array<double>, const const_array<double>>(db.outputs.a_timecode_array(), db.inputs.a_timecode_array());
assign<NameToken, const NameToken>(db.outputs.a_token(), db.inputs.a_token());
assign<array<NameToken>, const const_array<NameToken>>(db.outputs.a_token_array(), db.inputs.a_token_array());
assign<uint8_t, const uint8_t>(db.outputs.a_uchar(), db.inputs.a_uchar());
assign<array<uint8_t>, const const_array<uint8_t>>(db.outputs.a_uchar_array(), db.inputs.a_uchar_array());
assign<uint32_t, const uint32_t>(db.outputs.a_uint(), db.inputs.a_uint());
assign<array<uint32_t>, const const_array<uint32_t>>(db.outputs.a_uint_array(), db.inputs.a_uint_array());
assign<uint64_t, const uint64_t>(db.outputs.a_uint64(), db.inputs.a_uint64());
assign<array<uint64_t>, const const_array<uint64_t>>(db.outputs.a_uint64_array(), db.inputs.a_uint64_array());
assign<double[3], const double[3]>(db.outputs.a_vectord_3(), db.inputs.a_vectord_3());
assign<float[3], const float[3]>(db.outputs.a_vectorf_3(), db.inputs.a_vectorf_3());
assign<pxr::GfVec3h, const pxr::GfVec3h>(db.outputs.a_vectorh_3(), db.inputs.a_vectorh_3());
assign<array<double[3]>, const const_array<double[3]>>(db.outputs.a_vectord_3_array(), db.inputs.a_vectord_3_array());
assign<array<float[3]>, const const_array<float[3]>>(db.outputs.a_vectorf_3_array(), db.inputs.a_vectorf_3_array());
assign<array<pxr::GfVec3h>, const const_array<pxr::GfVec3h>>(db.outputs.a_vectorh_3_array(), db.inputs.a_vectorh_3_array());
return true;
}
};
REGISTER_OGN_NODE()
} // namespace test
} // namespace graph
} // namespace omni
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnSubtractDoubleC.ogn | {
"SubtractDoubleC": {
"version": 1,
"description": ["Example node that subtracts 2 doubles from each other"],
"uiName": "Test Node: Subtract Double (C++)",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
"scheduling": ["threadsafe"],
"exclude": ["usd", "docs"],
"inputs": {
"a": {
"type": "double",
"description": ["Input a"],
"default": 0
},
"b": {
"type": "double",
"description": ["Input b"],
"default": 0
}
},
"outputs": {
"out": {
"type": "double",
"description": ["The result of a - b"]
}
},
"tests": [
{ "inputs:a": 2.0, "inputs:b": 3.0, "outputs:out": -1.0 }
]
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnPerturbPointsGpu.cpp | // Copyright (c) 2021 NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#include <OgnPerturbPointsGpuDatabase.h>
#include <cstdlib>
namespace omni {
namespace graph {
namespace test {
extern "C" void applyPerturbGpu(outputs::points_t outputPoints,
inputs::points_t inputPoints,
inputs::minimum_t minimum,
inputs::maximum_t maximum,
inputs::percentModified_t percentModified,
size_t numberOfPoints);
// This is the implementation of the OGN node defined in OgnPerturbPointsGpu.ogn
class OgnPerturbPointsGpu
{
public:
// Perturb an array of points by random amounts within the limits of the bounding cube formed by the diagonal
// corners "minimum" and "maximum" using CUDA code on stolen GPU data.
static bool compute(OgnPerturbPointsGpuDatabase& db)
{
// No points mean nothing to perturb. Getting the size is something that can be safely done here since the
// size information is not stored on the GPU.
size_t pointCount = db.inputs.points.size();
if (pointCount == 0)
{
return true;
}
// Data stealing happens on this end since it just redirects the lookup location
db.outputs.points = db.inputs.points;
CARB_PROFILE_ZONE(carb::profiler::kCaptureMaskDefault, "Perturbing Data");
applyPerturbGpu(db.outputs.points(), db.inputs.points(), db.inputs.minimum(), db.inputs.maximum(), db.inputs.percentModified(), pointCount);
return true;
}
};
REGISTER_OGN_NODE()
} // namespace test
} // namespace graph
} // namespace omni
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnPerturbPointsPy.py | """
This is the implementation of the OGN node defined in OgnPerturbPoints.ogn
"""
from contextlib import suppress
import numpy as np
class OgnPerturbPointsPy:
"""
Perturb an array of points by random amounts within a proscribed limit
"""
@staticmethod
def compute(db) -> bool:
"""Compute the outputs from the current input"""
# No points mean nothing to perturb
point_count = len(db.inputs.points)
if point_count == 0:
return True
range_size = db.inputs.maximum - db.inputs.minimum
percent_modified = max(0.0, min(100.0, db.inputs.percentModified))
points_to_modify = int(percent_modified * point_count / 100.0)
# Steal the input to modify directly as output
db.move(db.attributes.outputs.points, db.attributes.inputs.points)
db.outputs.points[0:points_to_modify] = (
db.outputs.points[0:points_to_modify]
+ range_size * np.random.random_sample((points_to_modify, 3))
+ db.inputs.minimum
)
# If the dynamic inputs and outputs exist then they will steal data
with suppress(AttributeError):
db.move(db.attributes.outputs.stolen, db.attributes.inputs.stealMe)
return True
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestSchedulingHintsString.ogn | {
"TestSchedulingHintsString": {
"description": [
"Test node for scheduling hints specified by a string.",
"Note that the scheduling hints do not correspond to what the node actually does, they are just for testing."
],
"version": 1,
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
"exclude": ["tests", "usd", "docs"],
"uiName": "Test Node: Scheduling Hints by String",
"$comment": "Note the loose use of commas and spaces in an attempt to be flexible",
"scheduling": "usd, global-read,topology-write, static, compute-on-request"
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnPerturbPointsPy.ogn | {
"PerturbPointsPy": {
"version": 1,
"description": "Randomly modify positions on a set of points",
"language": "Python",
"uiName": "Python Test Node: Randomly Perturb Points",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
"exclude": ["tests", "usd", "docs"],
"inputs": {
"points": {
"type": "pointf[3][]",
"description": "Points to be perturbed",
"uiName": "Original Points"
},
"minimum": {
"type": "pointf[3]",
"description": "Minimum values of the perturbation",
"uiName": "Perturb Minimum",
"default": [
0.0,
0.0,
0.0
]
},
"maximum": {
"type": "pointf[3]",
"description": "Maximum values of the perturbation",
"uiName": "Perturb Maximum",
"default": [
1.0,
1.0,
1.0
]
},
"percentModified": {
"type": "float",
"description": "Percentage of points to modify, decided by striding across point set",
"uiName": "Percentage Modified",
"default": 100.0
}
},
"outputs": {
"points": {
"type": "pointf[3][]",
"description": "Points that were perturbed",
"uiName": "Perturbed Points"
}
}
}
} |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestNanInf.ogn | {
"TestNanInf": {
"version": 1,
"description": "Test node that exercises specification of NaN and Inf numbers, tuples, and arrays",
"uiName": "Test Node: Exercise NaN and Inf",
"icon": {
"path": "TestNodeIcon.svg"
},
"exclude": ["usd", "docs"],
"categories": "internal:test",
"scheduling": ["threadsafe"],
"inputs": {
"a_colord3_inf": {"type": "colord[3]", "default": ["inf", "inf", "inf"], "description": "colord3 Infinity"},
"a_colord3_ninf": {"type": "colord[3]", "default": ["-inf", "-inf", "-inf"], "description": "colord3 -Infinity"},
"a_colord3_nan": {"type": "colord[3]", "default": ["nan", "nan", "nan"], "description": "colord3 NaN"},
"a_colord3_snan": {"type": "colord[3]", "default": ["snan", "snan", "snan"], "description": "colord3 sNaN"},
"a_colord4_inf": {"type": "colord[4]", "default": ["inf", "inf", "inf", "inf"], "description": "colord4 Infinity"},
"a_colord4_ninf": {"type": "colord[4]", "default": ["-inf", "-inf", "-inf", "-inf"], "description": "colord4 -Infinity"},
"a_colord4_nan": {"type": "colord[4]", "default": ["nan", "nan", "nan", "nan"], "description": "colord4 NaN"},
"a_colord4_snan": {"type": "colord[4]", "default": ["snan", "snan", "snan", "snan"], "description": "colord4 sNaN"},
"a_colord3_array_inf": {"type": "colord[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "colord3_array Infinity"},
"a_colord3_array_ninf": {"type": "colord[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "colord3_array -Infinity"},
"a_colord3_array_nan": {"type": "colord[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "colord3_array NaN"},
"a_colord3_array_snan": {"type": "colord[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "colord3_array sNaN"},
"a_colord4_array_inf": {"type": "colord[4][]", "default": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "description": "colord4_array Infinity"},
"a_colord4_array_ninf": {"type": "colord[4][]", "default": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "description": "colord4_array -Infinity"},
"a_colord4_array_nan": {"type": "colord[4][]", "default": [["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]], "description": "colord4_array NaN"},
"a_colord4_array_snan": {"type": "colord[4][]", "default": [["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]], "description": "colord4_array sNaN"},
"a_colorf3_inf": {"type": "colorf[3]", "default": ["inf", "inf", "inf"], "description": "colorf3 Infinity"},
"a_colorf3_ninf": {"type": "colorf[3]", "default": ["-inf", "-inf", "-inf"], "description": "colorf3 -Infinity"},
"a_colorf3_nan": {"type": "colorf[3]", "default": ["nan", "nan", "nan"], "description": "colorf3 NaN"},
"a_colorf3_snan": {"type": "colorf[3]", "default": ["snan", "snan", "snan"], "description": "colorf3 sNaN"},
"a_colorf4_inf": {"type": "colorf[4]", "default": ["inf", "inf", "inf", "inf"], "description": "colorf4 Infinity"},
"a_colorf4_ninf": {"type": "colorf[4]", "default": ["-inf", "-inf", "-inf", "-inf"], "description": "colorf4 -Infinity"},
"a_colorf4_nan": {"type": "colorf[4]", "default": ["nan", "nan", "nan", "nan"], "description": "colorf4 NaN"},
"a_colorf4_snan": {"type": "colorf[4]", "default": ["snan", "snan", "snan", "snan"], "description": "colorf4 sNaN"},
"a_colorf3_array_inf": {"type": "colorf[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "colorf3_array Infinity"},
"a_colorf3_array_ninf": {"type": "colorf[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "colorf3_array -Infinity"},
"a_colorf3_array_nan": {"type": "colorf[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "colorf3_array NaN"},
"a_colorf3_array_snan": {"type": "colorf[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "colorf3_array sNaN"},
"a_colorf4_array_inf": {"type": "colorf[4][]", "default": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "description": "colorf4_array Infinity"},
"a_colorf4_array_ninf": {"type": "colorf[4][]", "default": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "description": "colorf4_array -Infinity"},
"a_colorf4_array_nan": {"type": "colorf[4][]", "default": [["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]], "description": "colorf4_array NaN"},
"a_colorf4_array_snan": {"type": "colorf[4][]", "default": [["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]], "description": "colorf4_array sNaN"},
"a_colorh3_inf": {"type": "colorh[3]", "default": ["inf", "inf", "inf"], "description": "colorh3 Infinity"},
"a_colorh3_ninf": {"type": "colorh[3]", "default": ["-inf", "-inf", "-inf"], "description": "colorh3 -Infinity"},
"a_colorh3_nan": {"type": "colorh[3]", "default": ["nan", "nan", "nan"], "description": "colorh3 NaN"},
"a_colorh3_snan": {"type": "colorh[3]", "default": ["snan", "snan", "snan"], "description": "colorh3 sNaN"},
"a_colorh4_inf": {"type": "colorh[4]", "default": ["inf", "inf", "inf", "inf"], "description": "colorh4 Infinity"},
"a_colorh4_ninf": {"type": "colorh[4]", "default": ["-inf", "-inf", "-inf", "-inf"], "description": "colorh4 -Infinity"},
"a_colorh4_nan": {"type": "colorh[4]", "default": ["nan", "nan", "nan", "nan"], "description": "colorh4 NaN"},
"a_colorh4_snan": {"type": "colorh[4]", "default": ["snan", "snan", "snan", "snan"], "description": "colorh4 sNaN"},
"a_colorh3_array_inf": {"type": "colorh[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "colorh3_array Infinity"},
"a_colorh3_array_ninf": {"type": "colorh[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "colorh3_array -Infinity"},
"a_colorh3_array_nan": {"type": "colorh[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "colorh3_array NaN"},
"a_colorh3_array_snan": {"type": "colorh[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "colorh3_array sNaN"},
"a_colorh4_array_inf": {"type": "colorh[4][]", "default": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "description": "colorh4_array Infinity"},
"a_colorh4_array_ninf": {"type": "colorh[4][]", "default": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "description": "colorh4_array -Infinity"},
"a_colorh4_array_nan": {"type": "colorh[4][]", "default": [["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]], "description": "colorh4_array NaN"},
"a_colorh4_array_snan": {"type": "colorh[4][]", "default": [["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]], "description": "colorh4_array sNaN"},
"a_double_inf": {"type": "double", "default": "inf", "description": "double Infinity"},
"a_double_ninf": {"type": "double", "default": "-inf", "description": "double -Infinity"},
"a_double_nan": {"type": "double", "default": "nan", "description": "double NaN"},
"a_double_snan": {"type": "double", "default": "snan", "description": "double sNaN"},
"a_double2_inf": {"type": "double[2]", "default": ["inf", "inf"], "description": "double2 Infinity"},
"a_double2_ninf": {"type": "double[2]", "default": ["-inf", "-inf"], "description": "double2 -Infinity"},
"a_double2_nan": {"type": "double[2]", "default": ["nan", "nan"], "description": "double2 NaN"},
"a_double2_snan": {"type": "double[2]", "default": ["snan", "snan"], "description": "double2 sNaN"},
"a_double3_inf": {"type": "double[3]", "default": ["inf", "inf", "inf"], "description": "double3 Infinity"},
"a_double3_ninf": {"type": "double[3]", "default": ["-inf", "-inf", "-inf"], "description": "double3 -Infinity"},
"a_double3_nan": {"type": "double[3]", "default": ["nan", "nan", "nan"], "description": "double3 NaN"},
"a_double3_snan": {"type": "double[3]", "default": ["snan", "snan", "snan"], "description": "double3 sNaN"},
"a_double4_inf": {"type": "double[4]", "default": ["inf", "inf", "inf", "inf"], "description": "double4 Infinity"},
"a_double4_ninf": {"type": "double[4]", "default": ["-inf", "-inf", "-inf", "-inf"], "description": "double4 -Infinity"},
"a_double4_nan": {"type": "double[4]", "default": ["nan", "nan", "nan", "nan"], "description": "double4 NaN"},
"a_double4_snan": {"type": "double[4]", "default": ["snan", "snan", "snan", "snan"], "description": "double4 sNaN"},
"a_double_array_inf": {"type": "double[]", "default": ["inf", "inf"], "description": "double_array Infinity"},
"a_double_array_ninf": {"type": "double[]", "default": ["-inf", "-inf"], "description": "double_array -Infinity"},
"a_double_array_nan": {"type": "double[]", "default": ["nan", "nan"], "description": "double_array NaN"},
"a_double_array_snan": {"type": "double[]", "default": ["snan", "snan"], "description": "double_array sNaN"},
"a_double2_array_inf": {"type": "double[2][]", "default": [["inf", "inf"], ["inf", "inf"]], "description": "double2_array Infinity"},
"a_double2_array_ninf": {"type": "double[2][]", "default": [["-inf", "-inf"], ["-inf", "-inf"]], "description": "double2_array -Infinity"},
"a_double2_array_nan": {"type": "double[2][]", "default": [["nan", "nan"], ["nan", "nan"]], "description": "double2_array NaN"},
"a_double2_array_snan": {"type": "double[2][]", "default": [["snan", "snan"], ["snan", "snan"]], "description": "double2_array sNaN"},
"a_double3_array_inf": {"type": "double[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "double3_array Infinity"},
"a_double3_array_ninf": {"type": "double[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "double3_array -Infinity"},
"a_double3_array_nan": {"type": "double[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "double3_array NaN"},
"a_double3_array_snan": {"type": "double[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "double3_array sNaN"},
"a_double4_array_inf": {"type": "double[4][]", "default": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "description": "double4_array Infinity"},
"a_double4_array_ninf": {"type": "double[4][]", "default": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "description": "double4_array -Infinity"},
"a_double4_array_nan": {"type": "double[4][]", "default": [["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]], "description": "double4_array NaN"},
"a_double4_array_snan": {"type": "double[4][]", "default": [["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]], "description": "double4_array sNaN"},
"a_float_inf": {"type": "float", "default": "inf", "description": "float Infinity"},
"a_float_ninf": {"type": "float", "default": "-inf", "description": "float -Infinity"},
"a_float_nan": {"type": "float", "default": "nan", "description": "float NaN"},
"a_float_snan": {"type": "float", "default": "snan", "description": "float sNaN"},
"a_float2_inf": {"type": "float[2]", "default": ["inf", "inf"], "description": "float2 Infinity"},
"a_float2_ninf": {"type": "float[2]", "default": ["-inf", "-inf"], "description": "float2 -Infinity"},
"a_float2_nan": {"type": "float[2]", "default": ["nan", "nan"], "description": "float2 NaN"},
"a_float2_snan": {"type": "float[2]", "default": ["snan", "snan"], "description": "float2 sNaN"},
"a_float3_inf": {"type": "float[3]", "default": ["inf", "inf", "inf"], "description": "float3 Infinity"},
"a_float3_ninf": {"type": "float[3]", "default": ["-inf", "-inf", "-inf"], "description": "float3 -Infinity"},
"a_float3_nan": {"type": "float[3]", "default": ["nan", "nan", "nan"], "description": "float3 NaN"},
"a_float3_snan": {"type": "float[3]", "default": ["snan", "snan", "snan"], "description": "float3 sNaN"},
"a_float4_inf": {"type": "float[4]", "default": ["inf", "inf", "inf", "inf"], "description": "float4 Infinity"},
"a_float4_ninf": {"type": "float[4]", "default": ["-inf", "-inf", "-inf", "-inf"], "description": "float4 -Infinity"},
"a_float4_nan": {"type": "float[4]", "default": ["nan", "nan", "nan", "nan"], "description": "float4 NaN"},
"a_float4_snan": {"type": "float[4]", "default": ["snan", "snan", "snan", "snan"], "description": "float4 sNaN"},
"a_float_array_inf": {"type": "float[]", "default": ["inf", "inf"], "description": "float_array Infinity"},
"a_float_array_ninf": {"type": "float[]", "default": ["-inf", "-inf"], "description": "float_array -Infinity"},
"a_float_array_nan": {"type": "float[]", "default": ["nan", "nan"], "description": "float_array NaN"},
"a_float_array_snan": {"type": "float[]", "default": ["snan", "snan"], "description": "float_array sNaN"},
"a_float2_array_inf": {"type": "float[2][]", "default": [["inf", "inf"], ["inf", "inf"]], "description": "float2_array Infinity"},
"a_float2_array_ninf": {"type": "float[2][]", "default": [["-inf", "-inf"], ["-inf", "-inf"]], "description": "float2_array -Infinity"},
"a_float2_array_nan": {"type": "float[2][]", "default": [["nan", "nan"], ["nan", "nan"]], "description": "float2_array NaN"},
"a_float2_array_snan": {"type": "float[2][]", "default": [["snan", "snan"], ["snan", "snan"]], "description": "float2_array sNaN"},
"a_float3_array_inf": {"type": "float[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "float3_array Infinity"},
"a_float3_array_ninf": {"type": "float[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "float3_array -Infinity"},
"a_float3_array_nan": {"type": "float[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "float3_array NaN"},
"a_float3_array_snan": {"type": "float[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "float3_array sNaN"},
"a_float4_array_inf": {"type": "float[4][]", "default": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "description": "float4_array Infinity"},
"a_float4_array_ninf": {"type": "float[4][]", "default": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "description": "float4_array -Infinity"},
"a_float4_array_nan": {"type": "float[4][]", "default": [["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]], "description": "float4_array NaN"},
"a_float4_array_snan": {"type": "float[4][]", "default": [["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]], "description": "float4_array sNaN"},
"a_frame4_inf": {"type": "frame[4]", "default": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "description": "frame4 Infinity"},
"a_frame4_ninf": {"type": "frame[4]", "default": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "description": "frame4 -Infinity"},
"a_frame4_nan": {"type": "frame[4]", "default": [["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]], "description": "frame4 NaN"},
"a_frame4_snan": {"type": "frame[4]", "default": [["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]], "description": "frame4 sNaN"},
"a_frame4_array_inf": {"type": "frame[4][]", "default": [[["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]]], "description": "frame4_array Infinity"},
"a_frame4_array_ninf": {"type": "frame[4][]", "default": [[["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]]], "description": "frame4_array -Infinity"},
"a_frame4_array_nan": {"type": "frame[4][]", "default": [[["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]], [["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]]], "description": "frame4_array NaN"},
"a_frame4_array_snan": {"type": "frame[4][]", "default": [[["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]], [["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]]], "description": "frame4_array sNaN"},
"a_half_inf": {"type": "half", "default": "inf", "description": "half Infinity"},
"a_half_ninf": {"type": "half", "default": "-inf", "description": "half -Infinity"},
"a_half_nan": {"type": "half", "default": "nan", "description": "half NaN"},
"a_half_snan": {"type": "half", "default": "snan", "description": "half sNaN"},
"a_half2_inf": {"type": "half[2]", "default": ["inf", "inf"], "description": "half2 Infinity"},
"a_half2_ninf": {"type": "half[2]", "default": ["-inf", "-inf"], "description": "half2 -Infinity"},
"a_half2_nan": {"type": "half[2]", "default": ["nan", "nan"], "description": "half2 NaN"},
"a_half2_snan": {"type": "half[2]", "default": ["snan", "snan"], "description": "half2 sNaN"},
"a_half3_inf": {"type": "half[3]", "default": ["inf", "inf", "inf"], "description": "half3 Infinity"},
"a_half3_ninf": {"type": "half[3]", "default": ["-inf", "-inf", "-inf"], "description": "half3 -Infinity"},
"a_half3_nan": {"type": "half[3]", "default": ["nan", "nan", "nan"], "description": "half3 NaN"},
"a_half3_snan": {"type": "half[3]", "default": ["snan", "snan", "snan"], "description": "half3 sNaN"},
"a_half4_inf": {"type": "half[4]", "default": ["inf", "inf", "inf", "inf"], "description": "half4 Infinity"},
"a_half4_ninf": {"type": "half[4]", "default": ["-inf", "-inf", "-inf", "-inf"], "description": "half4 -Infinity"},
"a_half4_nan": {"type": "half[4]", "default": ["nan", "nan", "nan", "nan"], "description": "half4 NaN"},
"a_half4_snan": {"type": "half[4]", "default": ["snan", "snan", "snan", "snan"], "description": "half4 sNaN"},
"a_half_array_inf": {"type": "half[]", "default": ["inf", "inf"], "description": "half_array Infinity"},
"a_half_array_ninf": {"type": "half[]", "default": ["-inf", "-inf"], "description": "half_array -Infinity"},
"a_half_array_nan": {"type": "half[]", "default": ["nan", "nan"], "description": "half_array NaN"},
"a_half_array_snan": {"type": "half[]", "default": ["snan", "snan"], "description": "half_array sNaN"},
"a_half2_array_inf": {"type": "half[2][]", "default": [["inf", "inf"], ["inf", "inf"]], "description": "half2_array Infinity"},
"a_half2_array_ninf": {"type": "half[2][]", "default": [["-inf", "-inf"], ["-inf", "-inf"]], "description": "half2_array -Infinity"},
"a_half2_array_nan": {"type": "half[2][]", "default": [["nan", "nan"], ["nan", "nan"]], "description": "half2_array NaN"},
"a_half2_array_snan": {"type": "half[2][]", "default": [["snan", "snan"], ["snan", "snan"]], "description": "half2_array sNaN"},
"a_half3_array_inf": {"type": "half[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "half3_array Infinity"},
"a_half3_array_ninf": {"type": "half[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "half3_array -Infinity"},
"a_half3_array_nan": {"type": "half[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "half3_array NaN"},
"a_half3_array_snan": {"type": "half[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "half3_array sNaN"},
"a_half4_array_inf": {"type": "half[4][]", "default": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "description": "half4_array Infinity"},
"a_half4_array_ninf": {"type": "half[4][]", "default": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "description": "half4_array -Infinity"},
"a_half4_array_nan": {"type": "half[4][]", "default": [["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]], "description": "half4_array NaN"},
"a_half4_array_snan": {"type": "half[4][]", "default": [["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]], "description": "half4_array sNaN"},
"a_matrixd2_inf": {"type": "matrixd[2]", "default": [["inf", "inf"], ["inf", "inf"]], "description": "matrixd2 Infinity"},
"a_matrixd2_ninf": {"type": "matrixd[2]", "default": [["-inf", "-inf"], ["-inf", "-inf"]], "description": "matrixd2 -Infinity"},
"a_matrixd2_nan": {"type": "matrixd[2]", "default": [["nan", "nan"], ["nan", "nan"]], "description": "matrixd2 NaN"},
"a_matrixd2_snan": {"type": "matrixd[2]", "default": [["snan", "snan"], ["snan", "snan"]], "description": "matrixd2 sNaN"},
"a_matrixd3_inf": {"type": "matrixd[3]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "matrixd3 Infinity"},
"a_matrixd3_ninf": {"type": "matrixd[3]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "matrixd3 -Infinity"},
"a_matrixd3_nan": {"type": "matrixd[3]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "matrixd3 NaN"},
"a_matrixd3_snan": {"type": "matrixd[3]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "matrixd3 sNaN"},
"a_matrixd4_inf": {"type": "matrixd[4]", "default": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "description": "matrixd4 Infinity"},
"a_matrixd4_ninf": {"type": "matrixd[4]", "default": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "description": "matrixd4 -Infinity"},
"a_matrixd4_nan": {"type": "matrixd[4]", "default": [["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]], "description": "matrixd4 NaN"},
"a_matrixd4_snan": {"type": "matrixd[4]", "default": [["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]], "description": "matrixd4 sNaN"},
"a_matrixd2_array_inf": {"type": "matrixd[2][]", "default": [[["inf", "inf"], ["inf", "inf"]], [["inf", "inf"], ["inf", "inf"]]], "description": "matrixd2_array Infinity"},
"a_matrixd2_array_ninf": {"type": "matrixd[2][]", "default": [[["-inf", "-inf"], ["-inf", "-inf"]], [["-inf", "-inf"], ["-inf", "-inf"]]], "description": "matrixd2_array -Infinity"},
"a_matrixd2_array_nan": {"type": "matrixd[2][]", "default": [[["nan", "nan"], ["nan", "nan"]], [["nan", "nan"], ["nan", "nan"]]], "description": "matrixd2_array NaN"},
"a_matrixd2_array_snan": {"type": "matrixd[2][]", "default": [[["snan", "snan"], ["snan", "snan"]], [["snan", "snan"], ["snan", "snan"]]], "description": "matrixd2_array sNaN"},
"a_matrixd3_array_inf": {"type": "matrixd[3][]", "default": [[["inf", "inf", "inf"], ["inf", "inf", "inf"], ["inf", "inf", "inf"]], [["inf", "inf", "inf"], ["inf", "inf", "inf"], ["inf", "inf", "inf"]]], "description": "matrixd3_array Infinity"},
"a_matrixd3_array_ninf": {"type": "matrixd[3][]", "default": [[["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]]], "description": "matrixd3_array -Infinity"},
"a_matrixd3_array_nan": {"type": "matrixd[3][]", "default": [[["nan", "nan", "nan"], ["nan", "nan", "nan"], ["nan", "nan", "nan"]], [["nan", "nan", "nan"], ["nan", "nan", "nan"], ["nan", "nan", "nan"]]], "description": "matrixd3_array NaN"},
"a_matrixd3_array_snan": {"type": "matrixd[3][]", "default": [[["snan", "snan", "snan"], ["snan", "snan", "snan"], ["snan", "snan", "snan"]], [["snan", "snan", "snan"], ["snan", "snan", "snan"], ["snan", "snan", "snan"]]], "description": "matrixd3_array sNaN"},
"a_matrixd4_array_inf": {"type": "matrixd[4][]", "default": [[["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]]], "description": "matrixd4_array Infinity"},
"a_matrixd4_array_ninf": {"type": "matrixd[4][]", "default": [[["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]]], "description": "matrixd4_array -Infinity"},
"a_matrixd4_array_nan": {"type": "matrixd[4][]", "default": [[["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]], [["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]]], "description": "matrixd4_array NaN"},
"a_matrixd4_array_snan": {"type": "matrixd[4][]", "default": [[["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]], [["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]]], "description": "matrixd4_array sNaN"},
"a_normald3_inf": {"type": "normald[3]", "default": ["inf", "inf", "inf"], "description": "normald3 Infinity"},
"a_normald3_ninf": {"type": "normald[3]", "default": ["-inf", "-inf", "-inf"], "description": "normald3 -Infinity"},
"a_normald3_nan": {"type": "normald[3]", "default": ["nan", "nan", "nan"], "description": "normald3 NaN"},
"a_normald3_snan": {"type": "normald[3]", "default": ["snan", "snan", "snan"], "description": "normald3 sNaN"},
"a_normald3_array_inf": {"type": "normald[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "normald3_array Infinity"},
"a_normald3_array_ninf": {"type": "normald[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "normald3_array -Infinity"},
"a_normald3_array_nan": {"type": "normald[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "normald3_array NaN"},
"a_normald3_array_snan": {"type": "normald[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "normald3_array sNaN"},
"a_normalf3_inf": {"type": "normalf[3]", "default": ["inf", "inf", "inf"], "description": "normalf3 Infinity"},
"a_normalf3_ninf": {"type": "normalf[3]", "default": ["-inf", "-inf", "-inf"], "description": "normalf3 -Infinity"},
"a_normalf3_nan": {"type": "normalf[3]", "default": ["nan", "nan", "nan"], "description": "normalf3 NaN"},
"a_normalf3_snan": {"type": "normalf[3]", "default": ["snan", "snan", "snan"], "description": "normalf3 sNaN"},
"a_normalf3_array_inf": {"type": "normalf[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "normalf3_array Infinity"},
"a_normalf3_array_ninf": {"type": "normalf[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "normalf3_array -Infinity"},
"a_normalf3_array_nan": {"type": "normalf[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "normalf3_array NaN"},
"a_normalf3_array_snan": {"type": "normalf[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "normalf3_array sNaN"},
"a_normalh3_inf": {"type": "normalh[3]", "default": ["inf", "inf", "inf"], "description": "normalh3 Infinity"},
"a_normalh3_ninf": {"type": "normalh[3]", "default": ["-inf", "-inf", "-inf"], "description": "normalh3 -Infinity"},
"a_normalh3_nan": {"type": "normalh[3]", "default": ["nan", "nan", "nan"], "description": "normalh3 NaN"},
"a_normalh3_snan": {"type": "normalh[3]", "default": ["snan", "snan", "snan"], "description": "normalh3 sNaN"},
"a_normalh3_array_inf": {"type": "normalh[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "normalh3_array Infinity"},
"a_normalh3_array_ninf": {"type": "normalh[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "normalh3_array -Infinity"},
"a_normalh3_array_nan": {"type": "normalh[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "normalh3_array NaN"},
"a_normalh3_array_snan": {"type": "normalh[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "normalh3_array sNaN"},
"a_pointd3_inf": {"type": "pointd[3]", "default": ["inf", "inf", "inf"], "description": "pointd3 Infinity"},
"a_pointd3_ninf": {"type": "pointd[3]", "default": ["-inf", "-inf", "-inf"], "description": "pointd3 -Infinity"},
"a_pointd3_nan": {"type": "pointd[3]", "default": ["nan", "nan", "nan"], "description": "pointd3 NaN"},
"a_pointd3_snan": {"type": "pointd[3]", "default": ["snan", "snan", "snan"], "description": "pointd3 sNaN"},
"a_pointd3_array_inf": {"type": "pointd[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "pointd3_array Infinity"},
"a_pointd3_array_ninf": {"type": "pointd[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "pointd3_array -Infinity"},
"a_pointd3_array_nan": {"type": "pointd[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "pointd3_array NaN"},
"a_pointd3_array_snan": {"type": "pointd[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "pointd3_array sNaN"},
"a_pointf3_inf": {"type": "pointf[3]", "default": ["inf", "inf", "inf"], "description": "pointf3 Infinity"},
"a_pointf3_ninf": {"type": "pointf[3]", "default": ["-inf", "-inf", "-inf"], "description": "pointf3 -Infinity"},
"a_pointf3_nan": {"type": "pointf[3]", "default": ["nan", "nan", "nan"], "description": "pointf3 NaN"},
"a_pointf3_snan": {"type": "pointf[3]", "default": ["snan", "snan", "snan"], "description": "pointf3 sNaN"},
"a_pointf3_array_inf": {"type": "pointf[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "pointf3_array Infinity"},
"a_pointf3_array_ninf": {"type": "pointf[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "pointf3_array -Infinity"},
"a_pointf3_array_nan": {"type": "pointf[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "pointf3_array NaN"},
"a_pointf3_array_snan": {"type": "pointf[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "pointf3_array sNaN"},
"a_pointh3_inf": {"type": "pointh[3]", "default": ["inf", "inf", "inf"], "description": "pointh3 Infinity"},
"a_pointh3_ninf": {"type": "pointh[3]", "default": ["-inf", "-inf", "-inf"], "description": "pointh3 -Infinity"},
"a_pointh3_nan": {"type": "pointh[3]", "default": ["nan", "nan", "nan"], "description": "pointh3 NaN"},
"a_pointh3_snan": {"type": "pointh[3]", "default": ["snan", "snan", "snan"], "description": "pointh3 sNaN"},
"a_pointh3_array_inf": {"type": "pointh[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "pointh3_array Infinity"},
"a_pointh3_array_ninf": {"type": "pointh[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "pointh3_array -Infinity"},
"a_pointh3_array_nan": {"type": "pointh[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "pointh3_array NaN"},
"a_pointh3_array_snan": {"type": "pointh[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "pointh3_array sNaN"},
"a_quatd4_inf": {"type": "quatd[4]", "default": ["inf", "inf", "inf", "inf"], "description": "quatd4 Infinity"},
"a_quatd4_ninf": {"type": "quatd[4]", "default": ["-inf", "-inf", "-inf", "-inf"], "description": "quatd4 -Infinity"},
"a_quatd4_nan": {"type": "quatd[4]", "default": ["nan", "nan", "nan", "nan"], "description": "quatd4 NaN"},
"a_quatd4_snan": {"type": "quatd[4]", "default": ["snan", "snan", "snan", "snan"], "description": "quatd4 sNaN"},
"a_quatd4_array_inf": {"type": "quatd[4][]", "default": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "description": "quatd4_array Infinity"},
"a_quatd4_array_ninf": {"type": "quatd[4][]", "default": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "description": "quatd4_array -Infinity"},
"a_quatd4_array_nan": {"type": "quatd[4][]", "default": [["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]], "description": "quatd4_array NaN"},
"a_quatd4_array_snan": {"type": "quatd[4][]", "default": [["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]], "description": "quatd4_array sNaN"},
"a_quatf4_inf": {"type": "quatf[4]", "default": ["inf", "inf", "inf", "inf"], "description": "quatf4 Infinity"},
"a_quatf4_ninf": {"type": "quatf[4]", "default": ["-inf", "-inf", "-inf", "-inf"], "description": "quatf4 -Infinity"},
"a_quatf4_nan": {"type": "quatf[4]", "default": ["nan", "nan", "nan", "nan"], "description": "quatf4 NaN"},
"a_quatf4_snan": {"type": "quatf[4]", "default": ["snan", "snan", "snan", "snan"], "description": "quatf4 sNaN"},
"a_quatf4_array_inf": {"type": "quatf[4][]", "default": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "description": "quatf4_array Infinity"},
"a_quatf4_array_ninf": {"type": "quatf[4][]", "default": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "description": "quatf4_array -Infinity"},
"a_quatf4_array_nan": {"type": "quatf[4][]", "default": [["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]], "description": "quatf4_array NaN"},
"a_quatf4_array_snan": {"type": "quatf[4][]", "default": [["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]], "description": "quatf4_array sNaN"},
"a_quath4_inf": {"type": "quath[4]", "default": ["inf", "inf", "inf", "inf"], "description": "quath4 Infinity"},
"a_quath4_ninf": {"type": "quath[4]", "default": ["-inf", "-inf", "-inf", "-inf"], "description": "quath4 -Infinity"},
"a_quath4_nan": {"type": "quath[4]", "default": ["nan", "nan", "nan", "nan"], "description": "quath4 NaN"},
"a_quath4_snan": {"type": "quath[4]", "default": ["snan", "snan", "snan", "snan"], "description": "quath4 sNaN"},
"a_quath4_array_inf": {"type": "quath[4][]", "default": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "description": "quath4_array Infinity"},
"a_quath4_array_ninf": {"type": "quath[4][]", "default": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "description": "quath4_array -Infinity"},
"a_quath4_array_nan": {"type": "quath[4][]", "default": [["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]], "description": "quath4_array NaN"},
"a_quath4_array_snan": {"type": "quath[4][]", "default": [["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]], "description": "quath4_array sNaN"},
"a_texcoordd2_inf": {"type": "texcoordd[2]", "default": ["inf", "inf"], "description": "texcoordd2 Infinity"},
"a_texcoordd2_ninf": {"type": "texcoordd[2]", "default": ["-inf", "-inf"], "description": "texcoordd2 -Infinity"},
"a_texcoordd2_nan": {"type": "texcoordd[2]", "default": ["nan", "nan"], "description": "texcoordd2 NaN"},
"a_texcoordd2_snan": {"type": "texcoordd[2]", "default": ["snan", "snan"], "description": "texcoordd2 sNaN"},
"a_texcoordd3_inf": {"type": "texcoordd[3]", "default": ["inf", "inf", "inf"], "description": "texcoordd3 Infinity"},
"a_texcoordd3_ninf": {"type": "texcoordd[3]", "default": ["-inf", "-inf", "-inf"], "description": "texcoordd3 -Infinity"},
"a_texcoordd3_nan": {"type": "texcoordd[3]", "default": ["nan", "nan", "nan"], "description": "texcoordd3 NaN"},
"a_texcoordd3_snan": {"type": "texcoordd[3]", "default": ["snan", "snan", "snan"], "description": "texcoordd3 sNaN"},
"a_texcoordd2_array_inf": {"type": "texcoordd[2][]", "default": [["inf", "inf"], ["inf", "inf"]], "description": "texcoordd2_array Infinity"},
"a_texcoordd2_array_ninf": {"type": "texcoordd[2][]", "default": [["-inf", "-inf"], ["-inf", "-inf"]], "description": "texcoordd2_array -Infinity"},
"a_texcoordd2_array_nan": {"type": "texcoordd[2][]", "default": [["nan", "nan"], ["nan", "nan"]], "description": "texcoordd2_array NaN"},
"a_texcoordd2_array_snan": {"type": "texcoordd[2][]", "default": [["snan", "snan"], ["snan", "snan"]], "description": "texcoordd2_array sNaN"},
"a_texcoordd3_array_inf": {"type": "texcoordd[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "texcoordd3_array Infinity"},
"a_texcoordd3_array_ninf": {"type": "texcoordd[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "texcoordd3_array -Infinity"},
"a_texcoordd3_array_nan": {"type": "texcoordd[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "texcoordd3_array NaN"},
"a_texcoordd3_array_snan": {"type": "texcoordd[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "texcoordd3_array sNaN"},
"a_texcoordf2_inf": {"type": "texcoordf[2]", "default": ["inf", "inf"], "description": "texcoordf2 Infinity"},
"a_texcoordf2_ninf": {"type": "texcoordf[2]", "default": ["-inf", "-inf"], "description": "texcoordf2 -Infinity"},
"a_texcoordf2_nan": {"type": "texcoordf[2]", "default": ["nan", "nan"], "description": "texcoordf2 NaN"},
"a_texcoordf2_snan": {"type": "texcoordf[2]", "default": ["snan", "snan"], "description": "texcoordf2 sNaN"},
"a_texcoordf3_inf": {"type": "texcoordf[3]", "default": ["inf", "inf", "inf"], "description": "texcoordf3 Infinity"},
"a_texcoordf3_ninf": {"type": "texcoordf[3]", "default": ["-inf", "-inf", "-inf"], "description": "texcoordf3 -Infinity"},
"a_texcoordf3_nan": {"type": "texcoordf[3]", "default": ["nan", "nan", "nan"], "description": "texcoordf3 NaN"},
"a_texcoordf3_snan": {"type": "texcoordf[3]", "default": ["snan", "snan", "snan"], "description": "texcoordf3 sNaN"},
"a_texcoordf2_array_inf": {"type": "texcoordf[2][]", "default": [["inf", "inf"], ["inf", "inf"]], "description": "texcoordf2_array Infinity"},
"a_texcoordf2_array_ninf": {"type": "texcoordf[2][]", "default": [["-inf", "-inf"], ["-inf", "-inf"]], "description": "texcoordf2_array -Infinity"},
"a_texcoordf2_array_nan": {"type": "texcoordf[2][]", "default": [["nan", "nan"], ["nan", "nan"]], "description": "texcoordf2_array NaN"},
"a_texcoordf2_array_snan": {"type": "texcoordf[2][]", "default": [["snan", "snan"], ["snan", "snan"]], "description": "texcoordf2_array sNaN"},
"a_texcoordf3_array_inf": {"type": "texcoordf[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "texcoordf3_array Infinity"},
"a_texcoordf3_array_ninf": {"type": "texcoordf[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "texcoordf3_array -Infinity"},
"a_texcoordf3_array_nan": {"type": "texcoordf[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "texcoordf3_array NaN"},
"a_texcoordf3_array_snan": {"type": "texcoordf[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "texcoordf3_array sNaN"},
"a_texcoordh2_inf": {"type": "texcoordh[2]", "default": ["inf", "inf"], "description": "texcoordh2 Infinity"},
"a_texcoordh2_ninf": {"type": "texcoordh[2]", "default": ["-inf", "-inf"], "description": "texcoordh2 -Infinity"},
"a_texcoordh2_nan": {"type": "texcoordh[2]", "default": ["nan", "nan"], "description": "texcoordh2 NaN"},
"a_texcoordh2_snan": {"type": "texcoordh[2]", "default": ["snan", "snan"], "description": "texcoordh2 sNaN"},
"a_texcoordh3_inf": {"type": "texcoordh[3]", "default": ["inf", "inf", "inf"], "description": "texcoordh3 Infinity"},
"a_texcoordh3_ninf": {"type": "texcoordh[3]", "default": ["-inf", "-inf", "-inf"], "description": "texcoordh3 -Infinity"},
"a_texcoordh3_nan": {"type": "texcoordh[3]", "default": ["nan", "nan", "nan"], "description": "texcoordh3 NaN"},
"a_texcoordh3_snan": {"type": "texcoordh[3]", "default": ["snan", "snan", "snan"], "description": "texcoordh3 sNaN"},
"a_texcoordh2_array_inf": {"type": "texcoordh[2][]", "default": [["inf", "inf"], ["inf", "inf"]], "description": "texcoordh2_array Infinity"},
"a_texcoordh2_array_ninf": {"type": "texcoordh[2][]", "default": [["-inf", "-inf"], ["-inf", "-inf"]], "description": "texcoordh2_array -Infinity"},
"a_texcoordh2_array_nan": {"type": "texcoordh[2][]", "default": [["nan", "nan"], ["nan", "nan"]], "description": "texcoordh2_array NaN"},
"a_texcoordh2_array_snan": {"type": "texcoordh[2][]", "default": [["snan", "snan"], ["snan", "snan"]], "description": "texcoordh2_array sNaN"},
"a_texcoordh3_array_inf": {"type": "texcoordh[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "texcoordh3_array Infinity"},
"a_texcoordh3_array_ninf": {"type": "texcoordh[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "texcoordh3_array -Infinity"},
"a_texcoordh3_array_nan": {"type": "texcoordh[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "texcoordh3_array NaN"},
"a_texcoordh3_array_snan": {"type": "texcoordh[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "texcoordh3_array sNaN"},
"a_timecode_inf": {"type": "timecode", "default": "inf", "description": "timecode Infinity"},
"a_timecode_ninf": {"type": "timecode", "default": "-inf", "description": "timecode -Infinity"},
"a_timecode_nan": {"type": "timecode", "default": "nan", "description": "timecode NaN"},
"a_timecode_snan": {"type": "timecode", "default": "snan", "description": "timecode sNaN"},
"a_timecode_array_inf": {"type": "timecode[]", "default": ["inf", "inf"], "description": "timecode_array Infinity"},
"a_timecode_array_ninf": {"type": "timecode[]", "default": ["-inf", "-inf"], "description": "timecode_array -Infinity"},
"a_timecode_array_nan": {"type": "timecode[]", "default": ["nan", "nan"], "description": "timecode_array NaN"},
"a_timecode_array_snan": {"type": "timecode[]", "default": ["snan", "snan"], "description": "timecode_array sNaN"},
"a_vectord3_inf": {"type": "vectord[3]", "default": ["inf", "inf", "inf"], "description": "vectord3 Infinity"},
"a_vectord3_ninf": {"type": "vectord[3]", "default": ["-inf", "-inf", "-inf"], "description": "vectord3 -Infinity"},
"a_vectord3_nan": {"type": "vectord[3]", "default": ["nan", "nan", "nan"], "description": "vectord3 NaN"},
"a_vectord3_snan": {"type": "vectord[3]", "default": ["snan", "snan", "snan"], "description": "vectord3 sNaN"},
"a_vectord3_array_inf": {"type": "vectord[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "vectord3_array Infinity"},
"a_vectord3_array_ninf": {"type": "vectord[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "vectord3_array -Infinity"},
"a_vectord3_array_nan": {"type": "vectord[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "vectord3_array NaN"},
"a_vectord3_array_snan": {"type": "vectord[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "vectord3_array sNaN"},
"a_vectorf3_inf": {"type": "vectorf[3]", "default": ["inf", "inf", "inf"], "description": "vectorf3 Infinity"},
"a_vectorf3_ninf": {"type": "vectorf[3]", "default": ["-inf", "-inf", "-inf"], "description": "vectorf3 -Infinity"},
"a_vectorf3_nan": {"type": "vectorf[3]", "default": ["nan", "nan", "nan"], "description": "vectorf3 NaN"},
"a_vectorf3_snan": {"type": "vectorf[3]", "default": ["snan", "snan", "snan"], "description": "vectorf3 sNaN"},
"a_vectorf3_array_inf": {"type": "vectorf[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "vectorf3_array Infinity"},
"a_vectorf3_array_ninf": {"type": "vectorf[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "vectorf3_array -Infinity"},
"a_vectorf3_array_nan": {"type": "vectorf[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "vectorf3_array NaN"},
"a_vectorf3_array_snan": {"type": "vectorf[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "vectorf3_array sNaN"},
"a_vectorh3_inf": {"type": "vectorh[3]", "default": ["inf", "inf", "inf"], "description": "vectorh3 Infinity"},
"a_vectorh3_ninf": {"type": "vectorh[3]", "default": ["-inf", "-inf", "-inf"], "description": "vectorh3 -Infinity"},
"a_vectorh3_nan": {"type": "vectorh[3]", "default": ["nan", "nan", "nan"], "description": "vectorh3 NaN"},
"a_vectorh3_snan": {"type": "vectorh[3]", "default": ["snan", "snan", "snan"], "description": "vectorh3 sNaN"},
"a_vectorh3_array_inf": {"type": "vectorh[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "vectorh3_array Infinity"},
"a_vectorh3_array_ninf": {"type": "vectorh[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "vectorh3_array -Infinity"},
"a_vectorh3_array_nan": {"type": "vectorh[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "vectorh3_array NaN"},
"a_vectorh3_array_snan": {"type": "vectorh[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "vectorh3_array sNaN"}
},
"outputs": {
"a_colord3_inf": {"type": "colord[3]", "description": "colord3 Infinity"},
"a_colord3_ninf": {"type": "colord[3]", "description": "colord3 -Infinity"},
"a_colord3_nan": {"type": "colord[3]", "description": "colord3 NaN"},
"a_colord3_snan": {"type": "colord[3]", "description": "colord3 sNaN"},
"a_colord4_inf": {"type": "colord[4]", "description": "colord4 Infinity"},
"a_colord4_ninf": {"type": "colord[4]", "description": "colord4 -Infinity"},
"a_colord4_nan": {"type": "colord[4]", "description": "colord4 NaN"},
"a_colord4_snan": {"type": "colord[4]", "description": "colord4 sNaN"},
"a_colord3_array_inf": {"type": "colord[3][]", "description": "colord3_array Infinity"},
"a_colord3_array_ninf": {"type": "colord[3][]", "description": "colord3_array -Infinity"},
"a_colord3_array_nan": {"type": "colord[3][]", "description": "colord3_array NaN"},
"a_colord3_array_snan": {"type": "colord[3][]", "description": "colord3_array sNaN"},
"a_colord4_array_inf": {"type": "colord[4][]", "description": "colord4_array Infinity"},
"a_colord4_array_ninf": {"type": "colord[4][]", "description": "colord4_array -Infinity"},
"a_colord4_array_nan": {"type": "colord[4][]", "description": "colord4_array NaN"},
"a_colord4_array_snan": {"type": "colord[4][]", "description": "colord4_array sNaN"},
"a_colorf3_inf": {"type": "colorf[3]", "description": "colorf3 Infinity"},
"a_colorf3_ninf": {"type": "colorf[3]", "description": "colorf3 -Infinity"},
"a_colorf3_nan": {"type": "colorf[3]", "description": "colorf3 NaN"},
"a_colorf3_snan": {"type": "colorf[3]", "description": "colorf3 sNaN"},
"a_colorf4_inf": {"type": "colorf[4]", "description": "colorf4 Infinity"},
"a_colorf4_ninf": {"type": "colorf[4]", "description": "colorf4 -Infinity"},
"a_colorf4_nan": {"type": "colorf[4]", "description": "colorf4 NaN"},
"a_colorf4_snan": {"type": "colorf[4]", "description": "colorf4 sNaN"},
"a_colorf3_array_inf": {"type": "colorf[3][]", "description": "colorf3_array Infinity"},
"a_colorf3_array_ninf": {"type": "colorf[3][]", "description": "colorf3_array -Infinity"},
"a_colorf3_array_nan": {"type": "colorf[3][]", "description": "colorf3_array NaN"},
"a_colorf3_array_snan": {"type": "colorf[3][]", "description": "colorf3_array sNaN"},
"a_colorf4_array_inf": {"type": "colorf[4][]", "description": "colorf4_array Infinity"},
"a_colorf4_array_ninf": {"type": "colorf[4][]", "description": "colorf4_array -Infinity"},
"a_colorf4_array_nan": {"type": "colorf[4][]", "description": "colorf4_array NaN"},
"a_colorf4_array_snan": {"type": "colorf[4][]", "description": "colorf4_array sNaN"},
"a_colorh3_inf": {"type": "colorh[3]", "description": "colorh3 Infinity"},
"a_colorh3_ninf": {"type": "colorh[3]", "description": "colorh3 -Infinity"},
"a_colorh3_nan": {"type": "colorh[3]", "description": "colorh3 NaN"},
"a_colorh3_snan": {"type": "colorh[3]", "description": "colorh3 sNaN"},
"a_colorh4_inf": {"type": "colorh[4]", "description": "colorh4 Infinity"},
"a_colorh4_ninf": {"type": "colorh[4]", "description": "colorh4 -Infinity"},
"a_colorh4_nan": {"type": "colorh[4]", "description": "colorh4 NaN"},
"a_colorh4_snan": {"type": "colorh[4]", "description": "colorh4 sNaN"},
"a_colorh3_array_inf": {"type": "colorh[3][]", "description": "colorh3_array Infinity"},
"a_colorh3_array_ninf": {"type": "colorh[3][]", "description": "colorh3_array -Infinity"},
"a_colorh3_array_nan": {"type": "colorh[3][]", "description": "colorh3_array NaN"},
"a_colorh3_array_snan": {"type": "colorh[3][]", "description": "colorh3_array sNaN"},
"a_colorh4_array_inf": {"type": "colorh[4][]", "description": "colorh4_array Infinity"},
"a_colorh4_array_ninf": {"type": "colorh[4][]", "description": "colorh4_array -Infinity"},
"a_colorh4_array_nan": {"type": "colorh[4][]", "description": "colorh4_array NaN"},
"a_colorh4_array_snan": {"type": "colorh[4][]", "description": "colorh4_array sNaN"},
"a_double_inf": {"type": "double", "description": "double Infinity"},
"a_double_ninf": {"type": "double", "description": "double -Infinity"},
"a_double_nan": {"type": "double", "description": "double NaN"},
"a_double_snan": {"type": "double", "description": "double sNaN"},
"a_double2_inf": {"type": "double[2]", "description": "double2 Infinity"},
"a_double2_ninf": {"type": "double[2]", "description": "double2 -Infinity"},
"a_double2_nan": {"type": "double[2]", "description": "double2 NaN"},
"a_double2_snan": {"type": "double[2]", "description": "double2 sNaN"},
"a_double3_inf": {"type": "double[3]", "description": "double3 Infinity"},
"a_double3_ninf": {"type": "double[3]", "description": "double3 -Infinity"},
"a_double3_nan": {"type": "double[3]", "description": "double3 NaN"},
"a_double3_snan": {"type": "double[3]", "description": "double3 sNaN"},
"a_double4_inf": {"type": "double[4]", "description": "double4 Infinity"},
"a_double4_ninf": {"type": "double[4]", "description": "double4 -Infinity"},
"a_double4_nan": {"type": "double[4]", "description": "double4 NaN"},
"a_double4_snan": {"type": "double[4]", "description": "double4 sNaN"},
"a_double_array_inf": {"type": "double[]", "description": "double_array Infinity"},
"a_double_array_ninf": {"type": "double[]", "description": "double_array -Infinity"},
"a_double_array_nan": {"type": "double[]", "description": "double_array NaN"},
"a_double_array_snan": {"type": "double[]", "description": "double_array sNaN"},
"a_double2_array_inf": {"type": "double[2][]", "description": "double2_array Infinity"},
"a_double2_array_ninf": {"type": "double[2][]", "description": "double2_array -Infinity"},
"a_double2_array_nan": {"type": "double[2][]", "description": "double2_array NaN"},
"a_double2_array_snan": {"type": "double[2][]", "description": "double2_array sNaN"},
"a_double3_array_inf": {"type": "double[3][]", "description": "double3_array Infinity"},
"a_double3_array_ninf": {"type": "double[3][]", "description": "double3_array -Infinity"},
"a_double3_array_nan": {"type": "double[3][]", "description": "double3_array NaN"},
"a_double3_array_snan": {"type": "double[3][]", "description": "double3_array sNaN"},
"a_double4_array_inf": {"type": "double[4][]", "description": "double4_array Infinity"},
"a_double4_array_ninf": {"type": "double[4][]", "description": "double4_array -Infinity"},
"a_double4_array_nan": {"type": "double[4][]", "description": "double4_array NaN"},
"a_double4_array_snan": {"type": "double[4][]", "description": "double4_array sNaN"},
"a_float_inf": {"type": "float", "description": "float Infinity"},
"a_float_ninf": {"type": "float", "description": "float -Infinity"},
"a_float_nan": {"type": "float", "description": "float NaN"},
"a_float_snan": {"type": "float", "description": "float sNaN"},
"a_float2_inf": {"type": "float[2]", "description": "float2 Infinity"},
"a_float2_ninf": {"type": "float[2]", "description": "float2 -Infinity"},
"a_float2_nan": {"type": "float[2]", "description": "float2 NaN"},
"a_float2_snan": {"type": "float[2]", "description": "float2 sNaN"},
"a_float3_inf": {"type": "float[3]", "description": "float3 Infinity"},
"a_float3_ninf": {"type": "float[3]", "description": "float3 -Infinity"},
"a_float3_nan": {"type": "float[3]", "description": "float3 NaN"},
"a_float3_snan": {"type": "float[3]", "description": "float3 sNaN"},
"a_float4_inf": {"type": "float[4]", "description": "float4 Infinity"},
"a_float4_ninf": {"type": "float[4]", "description": "float4 -Infinity"},
"a_float4_nan": {"type": "float[4]", "description": "float4 NaN"},
"a_float4_snan": {"type": "float[4]", "description": "float4 sNaN"},
"a_float_array_inf": {"type": "float[]", "description": "float_array Infinity"},
"a_float_array_ninf": {"type": "float[]", "description": "float_array -Infinity"},
"a_float_array_nan": {"type": "float[]", "description": "float_array NaN"},
"a_float_array_snan": {"type": "float[]", "description": "float_array sNaN"},
"a_float2_array_inf": {"type": "float[2][]", "description": "float2_array Infinity"},
"a_float2_array_ninf": {"type": "float[2][]", "description": "float2_array -Infinity"},
"a_float2_array_nan": {"type": "float[2][]", "description": "float2_array NaN"},
"a_float2_array_snan": {"type": "float[2][]", "description": "float2_array sNaN"},
"a_float3_array_inf": {"type": "float[3][]", "description": "float3_array Infinity"},
"a_float3_array_ninf": {"type": "float[3][]", "description": "float3_array -Infinity"},
"a_float3_array_nan": {"type": "float[3][]", "description": "float3_array NaN"},
"a_float3_array_snan": {"type": "float[3][]", "description": "float3_array sNaN"},
"a_float4_array_inf": {"type": "float[4][]", "description": "float4_array Infinity"},
"a_float4_array_ninf": {"type": "float[4][]", "description": "float4_array -Infinity"},
"a_float4_array_nan": {"type": "float[4][]", "description": "float4_array NaN"},
"a_float4_array_snan": {"type": "float[4][]", "description": "float4_array sNaN"},
"a_frame4_inf": {"type": "frame[4]", "description": "frame4 Infinity"},
"a_frame4_ninf": {"type": "frame[4]", "description": "frame4 -Infinity"},
"a_frame4_nan": {"type": "frame[4]", "description": "frame4 NaN"},
"a_frame4_snan": {"type": "frame[4]", "description": "frame4 sNaN"},
"a_frame4_array_inf": {"type": "frame[4][]", "description": "frame4_array Infinity"},
"a_frame4_array_ninf": {"type": "frame[4][]", "description": "frame4_array -Infinity"},
"a_frame4_array_nan": {"type": "frame[4][]", "description": "frame4_array NaN"},
"a_frame4_array_snan": {"type": "frame[4][]", "description": "frame4_array sNaN"},
"a_half_inf": {"type": "half", "description": "half Infinity"},
"a_half_ninf": {"type": "half", "description": "half -Infinity"},
"a_half_nan": {"type": "half", "description": "half NaN"},
"a_half_snan": {"type": "half", "description": "half sNaN"},
"a_half2_inf": {"type": "half[2]", "description": "half2 Infinity"},
"a_half2_ninf": {"type": "half[2]", "description": "half2 -Infinity"},
"a_half2_nan": {"type": "half[2]", "description": "half2 NaN"},
"a_half2_snan": {"type": "half[2]", "description": "half2 sNaN"},
"a_half3_inf": {"type": "half[3]", "description": "half3 Infinity"},
"a_half3_ninf": {"type": "half[3]", "description": "half3 -Infinity"},
"a_half3_nan": {"type": "half[3]", "description": "half3 NaN"},
"a_half3_snan": {"type": "half[3]", "description": "half3 sNaN"},
"a_half4_inf": {"type": "half[4]", "description": "half4 Infinity"},
"a_half4_ninf": {"type": "half[4]", "description": "half4 -Infinity"},
"a_half4_nan": {"type": "half[4]", "description": "half4 NaN"},
"a_half4_snan": {"type": "half[4]", "description": "half4 sNaN"},
"a_half_array_inf": {"type": "half[]", "description": "half_array Infinity"},
"a_half_array_ninf": {"type": "half[]", "description": "half_array -Infinity"},
"a_half_array_nan": {"type": "half[]", "description": "half_array NaN"},
"a_half_array_snan": {"type": "half[]", "description": "half_array sNaN"},
"a_half2_array_inf": {"type": "half[2][]", "description": "half2_array Infinity"},
"a_half2_array_ninf": {"type": "half[2][]", "description": "half2_array -Infinity"},
"a_half2_array_nan": {"type": "half[2][]", "description": "half2_array NaN"},
"a_half2_array_snan": {"type": "half[2][]", "description": "half2_array sNaN"},
"a_half3_array_inf": {"type": "half[3][]", "description": "half3_array Infinity"},
"a_half3_array_ninf": {"type": "half[3][]", "description": "half3_array -Infinity"},
"a_half3_array_nan": {"type": "half[3][]", "description": "half3_array NaN"},
"a_half3_array_snan": {"type": "half[3][]", "description": "half3_array sNaN"},
"a_half4_array_inf": {"type": "half[4][]", "description": "half4_array Infinity"},
"a_half4_array_ninf": {"type": "half[4][]", "description": "half4_array -Infinity"},
"a_half4_array_nan": {"type": "half[4][]", "description": "half4_array NaN"},
"a_half4_array_snan": {"type": "half[4][]", "description": "half4_array sNaN"},
"a_matrixd2_inf": {"type": "matrixd[2]", "description": "matrixd2 Infinity"},
"a_matrixd2_ninf": {"type": "matrixd[2]", "description": "matrixd2 -Infinity"},
"a_matrixd2_nan": {"type": "matrixd[2]", "description": "matrixd2 NaN"},
"a_matrixd2_snan": {"type": "matrixd[2]", "description": "matrixd2 sNaN"},
"a_matrixd3_inf": {"type": "matrixd[3]", "description": "matrixd3 Infinity"},
"a_matrixd3_ninf": {"type": "matrixd[3]", "description": "matrixd3 -Infinity"},
"a_matrixd3_nan": {"type": "matrixd[3]", "description": "matrixd3 NaN"},
"a_matrixd3_snan": {"type": "matrixd[3]", "description": "matrixd3 sNaN"},
"a_matrixd4_inf": {"type": "matrixd[4]", "description": "matrixd4 Infinity"},
"a_matrixd4_ninf": {"type": "matrixd[4]", "description": "matrixd4 -Infinity"},
"a_matrixd4_nan": {"type": "matrixd[4]", "description": "matrixd4 NaN"},
"a_matrixd4_snan": {"type": "matrixd[4]", "description": "matrixd4 sNaN"},
"a_matrixd2_array_inf": {"type": "matrixd[2][]", "description": "matrixd2_array Infinity"},
"a_matrixd2_array_ninf": {"type": "matrixd[2][]", "description": "matrixd2_array -Infinity"},
"a_matrixd2_array_nan": {"type": "matrixd[2][]", "description": "matrixd2_array NaN"},
"a_matrixd2_array_snan": {"type": "matrixd[2][]", "description": "matrixd2_array sNaN"},
"a_matrixd3_array_inf": {"type": "matrixd[3][]", "description": "matrixd3_array Infinity"},
"a_matrixd3_array_ninf": {"type": "matrixd[3][]", "description": "matrixd3_array -Infinity"},
"a_matrixd3_array_nan": {"type": "matrixd[3][]", "description": "matrixd3_array NaN"},
"a_matrixd3_array_snan": {"type": "matrixd[3][]", "description": "matrixd3_array sNaN"},
"a_matrixd4_array_inf": {"type": "matrixd[4][]", "description": "matrixd4_array Infinity"},
"a_matrixd4_array_ninf": {"type": "matrixd[4][]", "description": "matrixd4_array -Infinity"},
"a_matrixd4_array_nan": {"type": "matrixd[4][]", "description": "matrixd4_array NaN"},
"a_matrixd4_array_snan": {"type": "matrixd[4][]", "description": "matrixd4_array sNaN"},
"a_normald3_inf": {"type": "normald[3]", "description": "normald3 Infinity"},
"a_normald3_ninf": {"type": "normald[3]", "description": "normald3 -Infinity"},
"a_normald3_nan": {"type": "normald[3]", "description": "normald3 NaN"},
"a_normald3_snan": {"type": "normald[3]", "description": "normald3 sNaN"},
"a_normald3_array_inf": {"type": "normald[3][]", "description": "normald3_array Infinity"},
"a_normald3_array_ninf": {"type": "normald[3][]", "description": "normald3_array -Infinity"},
"a_normald3_array_nan": {"type": "normald[3][]", "description": "normald3_array NaN"},
"a_normald3_array_snan": {"type": "normald[3][]", "description": "normald3_array sNaN"},
"a_normalf3_inf": {"type": "normalf[3]", "description": "normalf3 Infinity"},
"a_normalf3_ninf": {"type": "normalf[3]", "description": "normalf3 -Infinity"},
"a_normalf3_nan": {"type": "normalf[3]", "description": "normalf3 NaN"},
"a_normalf3_snan": {"type": "normalf[3]", "description": "normalf3 sNaN"},
"a_normalf3_array_inf": {"type": "normalf[3][]", "description": "normalf3_array Infinity"},
"a_normalf3_array_ninf": {"type": "normalf[3][]", "description": "normalf3_array -Infinity"},
"a_normalf3_array_nan": {"type": "normalf[3][]", "description": "normalf3_array NaN"},
"a_normalf3_array_snan": {"type": "normalf[3][]", "description": "normalf3_array sNaN"},
"a_normalh3_inf": {"type": "normalh[3]", "description": "normalh3 Infinity"},
"a_normalh3_ninf": {"type": "normalh[3]", "description": "normalh3 -Infinity"},
"a_normalh3_nan": {"type": "normalh[3]", "description": "normalh3 NaN"},
"a_normalh3_snan": {"type": "normalh[3]", "description": "normalh3 sNaN"},
"a_normalh3_array_inf": {"type": "normalh[3][]", "description": "normalh3_array Infinity"},
"a_normalh3_array_ninf": {"type": "normalh[3][]", "description": "normalh3_array -Infinity"},
"a_normalh3_array_nan": {"type": "normalh[3][]", "description": "normalh3_array NaN"},
"a_normalh3_array_snan": {"type": "normalh[3][]", "description": "normalh3_array sNaN"},
"a_pointd3_inf": {"type": "pointd[3]", "description": "pointd3 Infinity"},
"a_pointd3_ninf": {"type": "pointd[3]", "description": "pointd3 -Infinity"},
"a_pointd3_nan": {"type": "pointd[3]", "description": "pointd3 NaN"},
"a_pointd3_snan": {"type": "pointd[3]", "description": "pointd3 sNaN"},
"a_pointd3_array_inf": {"type": "pointd[3][]", "description": "pointd3_array Infinity"},
"a_pointd3_array_ninf": {"type": "pointd[3][]", "description": "pointd3_array -Infinity"},
"a_pointd3_array_nan": {"type": "pointd[3][]", "description": "pointd3_array NaN"},
"a_pointd3_array_snan": {"type": "pointd[3][]", "description": "pointd3_array sNaN"},
"a_pointf3_inf": {"type": "pointf[3]", "description": "pointf3 Infinity"},
"a_pointf3_ninf": {"type": "pointf[3]", "description": "pointf3 -Infinity"},
"a_pointf3_nan": {"type": "pointf[3]", "description": "pointf3 NaN"},
"a_pointf3_snan": {"type": "pointf[3]", "description": "pointf3 sNaN"},
"a_pointf3_array_inf": {"type": "pointf[3][]", "description": "pointf3_array Infinity"},
"a_pointf3_array_ninf": {"type": "pointf[3][]", "description": "pointf3_array -Infinity"},
"a_pointf3_array_nan": {"type": "pointf[3][]", "description": "pointf3_array NaN"},
"a_pointf3_array_snan": {"type": "pointf[3][]", "description": "pointf3_array sNaN"},
"a_pointh3_inf": {"type": "pointh[3]", "description": "pointh3 Infinity"},
"a_pointh3_ninf": {"type": "pointh[3]", "description": "pointh3 -Infinity"},
"a_pointh3_nan": {"type": "pointh[3]", "description": "pointh3 NaN"},
"a_pointh3_snan": {"type": "pointh[3]", "description": "pointh3 sNaN"},
"a_pointh3_array_inf": {"type": "pointh[3][]", "description": "pointh3_array Infinity"},
"a_pointh3_array_ninf": {"type": "pointh[3][]", "description": "pointh3_array -Infinity"},
"a_pointh3_array_nan": {"type": "pointh[3][]", "description": "pointh3_array NaN"},
"a_pointh3_array_snan": {"type": "pointh[3][]", "description": "pointh3_array sNaN"},
"a_quatd4_inf": {"type": "quatd[4]", "description": "quatd4 Infinity"},
"a_quatd4_ninf": {"type": "quatd[4]", "description": "quatd4 -Infinity"},
"a_quatd4_nan": {"type": "quatd[4]", "description": "quatd4 NaN"},
"a_quatd4_snan": {"type": "quatd[4]", "description": "quatd4 sNaN"},
"a_quatd4_array_inf": {"type": "quatd[4][]", "description": "quatd4_array Infinity"},
"a_quatd4_array_ninf": {"type": "quatd[4][]", "description": "quatd4_array -Infinity"},
"a_quatd4_array_nan": {"type": "quatd[4][]", "description": "quatd4_array NaN"},
"a_quatd4_array_snan": {"type": "quatd[4][]", "description": "quatd4_array sNaN"},
"a_quatf4_inf": {"type": "quatf[4]", "description": "quatf4 Infinity"},
"a_quatf4_ninf": {"type": "quatf[4]", "description": "quatf4 -Infinity"},
"a_quatf4_nan": {"type": "quatf[4]", "description": "quatf4 NaN"},
"a_quatf4_snan": {"type": "quatf[4]", "description": "quatf4 sNaN"},
"a_quatf4_array_inf": {"type": "quatf[4][]", "description": "quatf4_array Infinity"},
"a_quatf4_array_ninf": {"type": "quatf[4][]", "description": "quatf4_array -Infinity"},
"a_quatf4_array_nan": {"type": "quatf[4][]", "description": "quatf4_array NaN"},
"a_quatf4_array_snan": {"type": "quatf[4][]", "description": "quatf4_array sNaN"},
"a_quath4_inf": {"type": "quath[4]", "description": "quath4 Infinity"},
"a_quath4_ninf": {"type": "quath[4]", "description": "quath4 -Infinity"},
"a_quath4_nan": {"type": "quath[4]", "description": "quath4 NaN"},
"a_quath4_snan": {"type": "quath[4]", "description": "quath4 sNaN"},
"a_quath4_array_inf": {"type": "quath[4][]", "description": "quath4_array Infinity"},
"a_quath4_array_ninf": {"type": "quath[4][]", "description": "quath4_array -Infinity"},
"a_quath4_array_nan": {"type": "quath[4][]", "description": "quath4_array NaN"},
"a_quath4_array_snan": {"type": "quath[4][]", "description": "quath4_array sNaN"},
"a_texcoordd2_inf": {"type": "texcoordd[2]", "description": "texcoordd2 Infinity"},
"a_texcoordd2_ninf": {"type": "texcoordd[2]", "description": "texcoordd2 -Infinity"},
"a_texcoordd2_nan": {"type": "texcoordd[2]", "description": "texcoordd2 NaN"},
"a_texcoordd2_snan": {"type": "texcoordd[2]", "description": "texcoordd2 sNaN"},
"a_texcoordd3_inf": {"type": "texcoordd[3]", "description": "texcoordd3 Infinity"},
"a_texcoordd3_ninf": {"type": "texcoordd[3]", "description": "texcoordd3 -Infinity"},
"a_texcoordd3_nan": {"type": "texcoordd[3]", "description": "texcoordd3 NaN"},
"a_texcoordd3_snan": {"type": "texcoordd[3]", "description": "texcoordd3 sNaN"},
"a_texcoordd2_array_inf": {"type": "texcoordd[2][]", "description": "texcoordd2_array Infinity"},
"a_texcoordd2_array_ninf": {"type": "texcoordd[2][]", "description": "texcoordd2_array -Infinity"},
"a_texcoordd2_array_nan": {"type": "texcoordd[2][]", "description": "texcoordd2_array NaN"},
"a_texcoordd2_array_snan": {"type": "texcoordd[2][]", "description": "texcoordd2_array sNaN"},
"a_texcoordd3_array_inf": {"type": "texcoordd[3][]", "description": "texcoordd3_array Infinity"},
"a_texcoordd3_array_ninf": {"type": "texcoordd[3][]", "description": "texcoordd3_array -Infinity"},
"a_texcoordd3_array_nan": {"type": "texcoordd[3][]", "description": "texcoordd3_array NaN"},
"a_texcoordd3_array_snan": {"type": "texcoordd[3][]", "description": "texcoordd3_array sNaN"},
"a_texcoordf2_inf": {"type": "texcoordf[2]", "description": "texcoordf2 Infinity"},
"a_texcoordf2_ninf": {"type": "texcoordf[2]", "description": "texcoordf2 -Infinity"},
"a_texcoordf2_nan": {"type": "texcoordf[2]", "description": "texcoordf2 NaN"},
"a_texcoordf2_snan": {"type": "texcoordf[2]", "description": "texcoordf2 sNaN"},
"a_texcoordf3_inf": {"type": "texcoordf[3]", "description": "texcoordf3 Infinity"},
"a_texcoordf3_ninf": {"type": "texcoordf[3]", "description": "texcoordf3 -Infinity"},
"a_texcoordf3_nan": {"type": "texcoordf[3]", "description": "texcoordf3 NaN"},
"a_texcoordf3_snan": {"type": "texcoordf[3]", "description": "texcoordf3 sNaN"},
"a_texcoordf2_array_inf": {"type": "texcoordf[2][]", "description": "texcoordf2_array Infinity"},
"a_texcoordf2_array_ninf": {"type": "texcoordf[2][]", "description": "texcoordf2_array -Infinity"},
"a_texcoordf2_array_nan": {"type": "texcoordf[2][]", "description": "texcoordf2_array NaN"},
"a_texcoordf2_array_snan": {"type": "texcoordf[2][]", "description": "texcoordf2_array sNaN"},
"a_texcoordf3_array_inf": {"type": "texcoordf[3][]", "description": "texcoordf3_array Infinity"},
"a_texcoordf3_array_ninf": {"type": "texcoordf[3][]", "description": "texcoordf3_array -Infinity"},
"a_texcoordf3_array_nan": {"type": "texcoordf[3][]", "description": "texcoordf3_array NaN"},
"a_texcoordf3_array_snan": {"type": "texcoordf[3][]", "description": "texcoordf3_array sNaN"},
"a_texcoordh2_inf": {"type": "texcoordh[2]", "description": "texcoordh2 Infinity"},
"a_texcoordh2_ninf": {"type": "texcoordh[2]", "description": "texcoordh2 -Infinity"},
"a_texcoordh2_nan": {"type": "texcoordh[2]", "description": "texcoordh2 NaN"},
"a_texcoordh2_snan": {"type": "texcoordh[2]", "description": "texcoordh2 sNaN"},
"a_texcoordh3_inf": {"type": "texcoordh[3]", "description": "texcoordh3 Infinity"},
"a_texcoordh3_ninf": {"type": "texcoordh[3]", "description": "texcoordh3 -Infinity"},
"a_texcoordh3_nan": {"type": "texcoordh[3]", "description": "texcoordh3 NaN"},
"a_texcoordh3_snan": {"type": "texcoordh[3]", "description": "texcoordh3 sNaN"},
"a_texcoordh2_array_inf": {"type": "texcoordh[2][]", "description": "texcoordh2_array Infinity"},
"a_texcoordh2_array_ninf": {"type": "texcoordh[2][]", "description": "texcoordh2_array -Infinity"},
"a_texcoordh2_array_nan": {"type": "texcoordh[2][]", "description": "texcoordh2_array NaN"},
"a_texcoordh2_array_snan": {"type": "texcoordh[2][]", "description": "texcoordh2_array sNaN"},
"a_texcoordh3_array_inf": {"type": "texcoordh[3][]", "description": "texcoordh3_array Infinity"},
"a_texcoordh3_array_ninf": {"type": "texcoordh[3][]", "description": "texcoordh3_array -Infinity"},
"a_texcoordh3_array_nan": {"type": "texcoordh[3][]", "description": "texcoordh3_array NaN"},
"a_texcoordh3_array_snan": {"type": "texcoordh[3][]", "description": "texcoordh3_array sNaN"},
"a_timecode_inf": {"type": "timecode", "description": "timecode Infinity"},
"a_timecode_ninf": {"type": "timecode", "description": "timecode -Infinity"},
"a_timecode_nan": {"type": "timecode", "description": "timecode NaN"},
"a_timecode_snan": {"type": "timecode", "description": "timecode sNaN"},
"a_timecode_array_inf": {"type": "timecode[]", "description": "timecode_array Infinity"},
"a_timecode_array_ninf": {"type": "timecode[]", "description": "timecode_array -Infinity"},
"a_timecode_array_nan": {"type": "timecode[]", "description": "timecode_array NaN"},
"a_timecode_array_snan": {"type": "timecode[]", "description": "timecode_array sNaN"},
"a_vectord3_inf": {"type": "vectord[3]", "description": "vectord3 Infinity"},
"a_vectord3_ninf": {"type": "vectord[3]", "description": "vectord3 -Infinity"},
"a_vectord3_nan": {"type": "vectord[3]", "description": "vectord3 NaN"},
"a_vectord3_snan": {"type": "vectord[3]", "description": "vectord3 sNaN"},
"a_vectord3_array_inf": {"type": "vectord[3][]", "description": "vectord3_array Infinity"},
"a_vectord3_array_ninf": {"type": "vectord[3][]", "description": "vectord3_array -Infinity"},
"a_vectord3_array_nan": {"type": "vectord[3][]", "description": "vectord3_array NaN"},
"a_vectord3_array_snan": {"type": "vectord[3][]", "description": "vectord3_array sNaN"},
"a_vectorf3_inf": {"type": "vectorf[3]", "description": "vectorf3 Infinity"},
"a_vectorf3_ninf": {"type": "vectorf[3]", "description": "vectorf3 -Infinity"},
"a_vectorf3_nan": {"type": "vectorf[3]", "description": "vectorf3 NaN"},
"a_vectorf3_snan": {"type": "vectorf[3]", "description": "vectorf3 sNaN"},
"a_vectorf3_array_inf": {"type": "vectorf[3][]", "description": "vectorf3_array Infinity"},
"a_vectorf3_array_ninf": {"type": "vectorf[3][]", "description": "vectorf3_array -Infinity"},
"a_vectorf3_array_nan": {"type": "vectorf[3][]", "description": "vectorf3_array NaN"},
"a_vectorf3_array_snan": {"type": "vectorf[3][]", "description": "vectorf3_array sNaN"},
"a_vectorh3_inf": {"type": "vectorh[3]", "description": "vectorh3 Infinity"},
"a_vectorh3_ninf": {"type": "vectorh[3]", "description": "vectorh3 -Infinity"},
"a_vectorh3_nan": {"type": "vectorh[3]", "description": "vectorh3 NaN"},
"a_vectorh3_snan": {"type": "vectorh[3]", "description": "vectorh3 sNaN"},
"a_vectorh3_array_inf": {"type": "vectorh[3][]", "description": "vectorh3_array Infinity"},
"a_vectorh3_array_ninf": {"type": "vectorh[3][]", "description": "vectorh3_array -Infinity"},
"a_vectorh3_array_nan": {"type": "vectorh[3][]", "description": "vectorh3_array NaN"},
"a_vectorh3_array_snan": {"type": "vectorh[3][]", "description": "vectorh3_array sNaN"}
},
"tests": [
{
"inputs:a_colord3_inf": ["-inf", "-inf", "-inf"], "outputs:a_colord3_inf": ["-inf", "-inf", "-inf"],
"inputs:a_colord3_ninf": ["inf", "inf", "inf"], "outputs:a_colord3_ninf": ["inf", "inf", "inf"],
"inputs:a_colord4_inf": ["-inf", "-inf", "-inf", "-inf"], "outputs:a_colord4_inf": ["-inf", "-inf", "-inf", "-inf"],
"inputs:a_colord4_ninf": ["inf", "inf", "inf", "inf"], "outputs:a_colord4_ninf": ["inf", "inf", "inf", "inf"],
"inputs:a_colord3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_colord3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]],
"inputs:a_colord3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_colord3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]],
"inputs:a_colord4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "outputs:a_colord4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]],
"inputs:a_colord4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "outputs:a_colord4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]],
"inputs:a_colorf3_inf": ["-inf", "-inf", "-inf"], "outputs:a_colorf3_inf": ["-inf", "-inf", "-inf"],
"inputs:a_colorf3_ninf": ["inf", "inf", "inf"], "outputs:a_colorf3_ninf": ["inf", "inf", "inf"],
"inputs:a_colorf4_inf": ["-inf", "-inf", "-inf", "-inf"], "outputs:a_colorf4_inf": ["-inf", "-inf", "-inf", "-inf"],
"inputs:a_colorf4_ninf": ["inf", "inf", "inf", "inf"], "outputs:a_colorf4_ninf": ["inf", "inf", "inf", "inf"],
"inputs:a_colorf3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_colorf3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]],
"inputs:a_colorf3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_colorf3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]],
"inputs:a_colorf4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "outputs:a_colorf4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]],
"inputs:a_colorf4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "outputs:a_colorf4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]],
"inputs:a_colorh3_inf": ["-inf", "-inf", "-inf"], "outputs:a_colorh3_inf": ["-inf", "-inf", "-inf"],
"inputs:a_colorh3_ninf": ["inf", "inf", "inf"], "outputs:a_colorh3_ninf": ["inf", "inf", "inf"],
"inputs:a_colorh4_inf": ["-inf", "-inf", "-inf", "-inf"], "outputs:a_colorh4_inf": ["-inf", "-inf", "-inf", "-inf"],
"inputs:a_colorh4_ninf": ["inf", "inf", "inf", "inf"], "outputs:a_colorh4_ninf": ["inf", "inf", "inf", "inf"],
"inputs:a_colorh3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_colorh3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]],
"inputs:a_colorh3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_colorh3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]],
"inputs:a_colorh4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "outputs:a_colorh4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]],
"inputs:a_colorh4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "outputs:a_colorh4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]],
"inputs:a_double_inf": "-inf", "outputs:a_double_inf": "-inf",
"inputs:a_double_ninf": "inf", "outputs:a_double_ninf": "inf",
"inputs:a_double2_inf": ["-inf", "-inf"], "outputs:a_double2_inf": ["-inf", "-inf"],
"inputs:a_double2_ninf": ["inf", "inf"], "outputs:a_double2_ninf": ["inf", "inf"],
"inputs:a_double3_inf": ["-inf", "-inf", "-inf"], "outputs:a_double3_inf": ["-inf", "-inf", "-inf"],
"inputs:a_double3_ninf": ["inf", "inf", "inf"], "outputs:a_double3_ninf": ["inf", "inf", "inf"],
"inputs:a_double4_inf": ["-inf", "-inf", "-inf", "-inf"], "outputs:a_double4_inf": ["-inf", "-inf", "-inf", "-inf"],
"inputs:a_double4_ninf": ["inf", "inf", "inf", "inf"], "outputs:a_double4_ninf": ["inf", "inf", "inf", "inf"],
"inputs:a_double_array_inf": ["-inf", "-inf"], "outputs:a_double_array_inf": ["-inf", "-inf"],
"inputs:a_double_array_ninf": ["inf", "inf"], "outputs:a_double_array_ninf": ["inf", "inf"],
"inputs:a_double2_array_inf": [["-inf", "-inf"], ["-inf", "-inf"]], "outputs:a_double2_array_inf": [["-inf", "-inf"], ["-inf", "-inf"]],
"inputs:a_double2_array_ninf": [["inf", "inf"], ["inf", "inf"]], "outputs:a_double2_array_ninf": [["inf", "inf"], ["inf", "inf"]],
"inputs:a_double3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_double3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]],
"inputs:a_double3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_double3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]],
"inputs:a_double4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "outputs:a_double4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]],
"inputs:a_double4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "outputs:a_double4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]],
"inputs:a_float_inf": "-inf", "outputs:a_float_inf": "-inf",
"inputs:a_float_ninf": "inf", "outputs:a_float_ninf": "inf",
"inputs:a_float2_inf": ["-inf", "-inf"], "outputs:a_float2_inf": ["-inf", "-inf"],
"inputs:a_float2_ninf": ["inf", "inf"], "outputs:a_float2_ninf": ["inf", "inf"],
"inputs:a_float3_inf": ["-inf", "-inf", "-inf"], "outputs:a_float3_inf": ["-inf", "-inf", "-inf"],
"inputs:a_float3_ninf": ["inf", "inf", "inf"], "outputs:a_float3_ninf": ["inf", "inf", "inf"],
"inputs:a_float4_inf": ["-inf", "-inf", "-inf", "-inf"], "outputs:a_float4_inf": ["-inf", "-inf", "-inf", "-inf"],
"inputs:a_float4_ninf": ["inf", "inf", "inf", "inf"], "outputs:a_float4_ninf": ["inf", "inf", "inf", "inf"],
"inputs:a_float_array_inf": ["-inf", "-inf"], "outputs:a_float_array_inf": ["-inf", "-inf"],
"inputs:a_float_array_ninf": ["inf", "inf"], "outputs:a_float_array_ninf": ["inf", "inf"],
"inputs:a_float2_array_inf": [["-inf", "-inf"], ["-inf", "-inf"]], "outputs:a_float2_array_inf": [["-inf", "-inf"], ["-inf", "-inf"]],
"inputs:a_float2_array_ninf": [["inf", "inf"], ["inf", "inf"]], "outputs:a_float2_array_ninf": [["inf", "inf"], ["inf", "inf"]],
"inputs:a_float3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_float3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]],
"inputs:a_float3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_float3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]],
"inputs:a_float4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "outputs:a_float4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]],
"inputs:a_float4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "outputs:a_float4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]],
"inputs:a_frame4_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "outputs:a_frame4_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]],
"inputs:a_frame4_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "outputs:a_frame4_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]],
"inputs:a_frame4_array_inf": [[["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]]], "outputs:a_frame4_array_inf": [[["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]]],
"inputs:a_frame4_array_ninf": [[["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]]], "outputs:a_frame4_array_ninf": [[["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]]],
"inputs:a_half_inf": "-inf", "outputs:a_half_inf": "-inf",
"inputs:a_half_ninf": "inf", "outputs:a_half_ninf": "inf",
"inputs:a_half2_inf": ["-inf", "-inf"], "outputs:a_half2_inf": ["-inf", "-inf"],
"inputs:a_half2_ninf": ["inf", "inf"], "outputs:a_half2_ninf": ["inf", "inf"],
"inputs:a_half3_inf": ["-inf", "-inf", "-inf"], "outputs:a_half3_inf": ["-inf", "-inf", "-inf"],
"inputs:a_half3_ninf": ["inf", "inf", "inf"], "outputs:a_half3_ninf": ["inf", "inf", "inf"],
"inputs:a_half4_inf": ["-inf", "-inf", "-inf", "-inf"], "outputs:a_half4_inf": ["-inf", "-inf", "-inf", "-inf"],
"inputs:a_half4_ninf": ["inf", "inf", "inf", "inf"], "outputs:a_half4_ninf": ["inf", "inf", "inf", "inf"],
"inputs:a_half_array_inf": ["-inf", "-inf"], "outputs:a_half_array_inf": ["-inf", "-inf"],
"inputs:a_half_array_ninf": ["inf", "inf"], "outputs:a_half_array_ninf": ["inf", "inf"],
"inputs:a_half2_array_inf": [["-inf", "-inf"], ["-inf", "-inf"]], "outputs:a_half2_array_inf": [["-inf", "-inf"], ["-inf", "-inf"]],
"inputs:a_half2_array_ninf": [["inf", "inf"], ["inf", "inf"]], "outputs:a_half2_array_ninf": [["inf", "inf"], ["inf", "inf"]],
"inputs:a_half3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_half3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]],
"inputs:a_half3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_half3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]],
"inputs:a_half4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "outputs:a_half4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]],
"inputs:a_half4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "outputs:a_half4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]],
"inputs:a_matrixd2_inf": [["-inf", "-inf"], ["-inf", "-inf"]], "outputs:a_matrixd2_inf": [["-inf", "-inf"], ["-inf", "-inf"]],
"inputs:a_matrixd2_ninf": [["inf", "inf"], ["inf", "inf"]], "outputs:a_matrixd2_ninf": [["inf", "inf"], ["inf", "inf"]],
"inputs:a_matrixd3_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_matrixd3_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]],
"inputs:a_matrixd3_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_matrixd3_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"], ["inf", "inf", "inf"]],
"inputs:a_matrixd4_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "outputs:a_matrixd4_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]],
"inputs:a_matrixd4_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "outputs:a_matrixd4_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]],
"inputs:a_matrixd2_array_inf": [[["-inf", "-inf"], ["-inf", "-inf"]], [["-inf", "-inf"], ["-inf", "-inf"]]], "outputs:a_matrixd2_array_inf": [[["-inf", "-inf"], ["-inf", "-inf"]], [["-inf", "-inf"], ["-inf", "-inf"]]],
"inputs:a_matrixd2_array_ninf": [[["inf", "inf"], ["inf", "inf"]], [["inf", "inf"], ["inf", "inf"]]], "outputs:a_matrixd2_array_ninf": [[["inf", "inf"], ["inf", "inf"]], [["inf", "inf"], ["inf", "inf"]]],
"inputs:a_matrixd3_array_inf": [[["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]]], "outputs:a_matrixd3_array_inf": [[["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]]],
"inputs:a_matrixd3_array_ninf": [[["inf", "inf", "inf"], ["inf", "inf", "inf"], ["inf", "inf", "inf"]], [["inf", "inf", "inf"], ["inf", "inf", "inf"], ["inf", "inf", "inf"]]], "outputs:a_matrixd3_array_ninf": [[["inf", "inf", "inf"], ["inf", "inf", "inf"], ["inf", "inf", "inf"]], [["inf", "inf", "inf"], ["inf", "inf", "inf"], ["inf", "inf", "inf"]]],
"inputs:a_matrixd4_array_inf": [[["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]]], "outputs:a_matrixd4_array_inf": [[["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]]],
"inputs:a_matrixd4_array_ninf": [[["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]]], "outputs:a_matrixd4_array_ninf": [[["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]]],
"inputs:a_normald3_inf": ["-inf", "-inf", "-inf"], "outputs:a_normald3_inf": ["-inf", "-inf", "-inf"],
"inputs:a_normald3_ninf": ["inf", "inf", "inf"], "outputs:a_normald3_ninf": ["inf", "inf", "inf"],
"inputs:a_normald3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_normald3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]],
"inputs:a_normald3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_normald3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]],
"inputs:a_normalf3_inf": ["-inf", "-inf", "-inf"], "outputs:a_normalf3_inf": ["-inf", "-inf", "-inf"],
"inputs:a_normalf3_ninf": ["inf", "inf", "inf"], "outputs:a_normalf3_ninf": ["inf", "inf", "inf"],
"inputs:a_normalf3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_normalf3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]],
"inputs:a_normalf3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_normalf3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]],
"inputs:a_normalh3_inf": ["-inf", "-inf", "-inf"], "outputs:a_normalh3_inf": ["-inf", "-inf", "-inf"],
"inputs:a_normalh3_ninf": ["inf", "inf", "inf"], "outputs:a_normalh3_ninf": ["inf", "inf", "inf"],
"inputs:a_normalh3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_normalh3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]],
"inputs:a_normalh3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_normalh3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]],
"inputs:a_pointd3_inf": ["-inf", "-inf", "-inf"], "outputs:a_pointd3_inf": ["-inf", "-inf", "-inf"],
"inputs:a_pointd3_ninf": ["inf", "inf", "inf"], "outputs:a_pointd3_ninf": ["inf", "inf", "inf"],
"inputs:a_pointd3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_pointd3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]],
"inputs:a_pointd3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_pointd3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]],
"inputs:a_pointf3_inf": ["-inf", "-inf", "-inf"], "outputs:a_pointf3_inf": ["-inf", "-inf", "-inf"],
"inputs:a_pointf3_ninf": ["inf", "inf", "inf"], "outputs:a_pointf3_ninf": ["inf", "inf", "inf"],
"inputs:a_pointf3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_pointf3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]],
"inputs:a_pointf3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_pointf3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]],
"inputs:a_pointh3_inf": ["-inf", "-inf", "-inf"], "outputs:a_pointh3_inf": ["-inf", "-inf", "-inf"],
"inputs:a_pointh3_ninf": ["inf", "inf", "inf"], "outputs:a_pointh3_ninf": ["inf", "inf", "inf"],
"inputs:a_pointh3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_pointh3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]],
"inputs:a_pointh3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_pointh3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]],
"inputs:a_quatd4_inf": ["-inf", "-inf", "-inf", "-inf"], "outputs:a_quatd4_inf": ["-inf", "-inf", "-inf", "-inf"],
"inputs:a_quatd4_ninf": ["inf", "inf", "inf", "inf"], "outputs:a_quatd4_ninf": ["inf", "inf", "inf", "inf"],
"inputs:a_quatd4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "outputs:a_quatd4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]],
"inputs:a_quatd4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "outputs:a_quatd4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]],
"inputs:a_quatf4_inf": ["-inf", "-inf", "-inf", "-inf"], "outputs:a_quatf4_inf": ["-inf", "-inf", "-inf", "-inf"],
"inputs:a_quatf4_ninf": ["inf", "inf", "inf", "inf"], "outputs:a_quatf4_ninf": ["inf", "inf", "inf", "inf"],
"inputs:a_quatf4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "outputs:a_quatf4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]],
"inputs:a_quatf4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "outputs:a_quatf4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]],
"inputs:a_quath4_inf": ["-inf", "-inf", "-inf", "-inf"], "outputs:a_quath4_inf": ["-inf", "-inf", "-inf", "-inf"],
"inputs:a_quath4_ninf": ["inf", "inf", "inf", "inf"], "outputs:a_quath4_ninf": ["inf", "inf", "inf", "inf"],
"inputs:a_quath4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "outputs:a_quath4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]],
"inputs:a_quath4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "outputs:a_quath4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]],
"inputs:a_texcoordd2_inf": ["-inf", "-inf"], "outputs:a_texcoordd2_inf": ["-inf", "-inf"],
"inputs:a_texcoordd2_ninf": ["inf", "inf"], "outputs:a_texcoordd2_ninf": ["inf", "inf"],
"inputs:a_texcoordd3_inf": ["-inf", "-inf", "-inf"], "outputs:a_texcoordd3_inf": ["-inf", "-inf", "-inf"],
"inputs:a_texcoordd3_ninf": ["inf", "inf", "inf"], "outputs:a_texcoordd3_ninf": ["inf", "inf", "inf"],
"inputs:a_texcoordd2_array_inf": [["-inf", "-inf"], ["-inf", "-inf"]], "outputs:a_texcoordd2_array_inf": [["-inf", "-inf"], ["-inf", "-inf"]],
"inputs:a_texcoordd2_array_ninf": [["inf", "inf"], ["inf", "inf"]], "outputs:a_texcoordd2_array_ninf": [["inf", "inf"], ["inf", "inf"]],
"inputs:a_texcoordd3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_texcoordd3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]],
"inputs:a_texcoordd3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_texcoordd3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]],
"inputs:a_texcoordf2_inf": ["-inf", "-inf"], "outputs:a_texcoordf2_inf": ["-inf", "-inf"],
"inputs:a_texcoordf2_ninf": ["inf", "inf"], "outputs:a_texcoordf2_ninf": ["inf", "inf"],
"inputs:a_texcoordf3_inf": ["-inf", "-inf", "-inf"], "outputs:a_texcoordf3_inf": ["-inf", "-inf", "-inf"],
"inputs:a_texcoordf3_ninf": ["inf", "inf", "inf"], "outputs:a_texcoordf3_ninf": ["inf", "inf", "inf"],
"inputs:a_texcoordf2_array_inf": [["-inf", "-inf"], ["-inf", "-inf"]], "outputs:a_texcoordf2_array_inf": [["-inf", "-inf"], ["-inf", "-inf"]],
"inputs:a_texcoordf2_array_ninf": [["inf", "inf"], ["inf", "inf"]], "outputs:a_texcoordf2_array_ninf": [["inf", "inf"], ["inf", "inf"]],
"inputs:a_texcoordf3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_texcoordf3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]],
"inputs:a_texcoordf3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_texcoordf3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]],
"inputs:a_texcoordh2_inf": ["-inf", "-inf"], "outputs:a_texcoordh2_inf": ["-inf", "-inf"],
"inputs:a_texcoordh2_ninf": ["inf", "inf"], "outputs:a_texcoordh2_ninf": ["inf", "inf"],
"inputs:a_texcoordh3_inf": ["-inf", "-inf", "-inf"], "outputs:a_texcoordh3_inf": ["-inf", "-inf", "-inf"],
"inputs:a_texcoordh3_ninf": ["inf", "inf", "inf"], "outputs:a_texcoordh3_ninf": ["inf", "inf", "inf"],
"inputs:a_texcoordh2_array_inf": [["-inf", "-inf"], ["-inf", "-inf"]], "outputs:a_texcoordh2_array_inf": [["-inf", "-inf"], ["-inf", "-inf"]],
"inputs:a_texcoordh2_array_ninf": [["inf", "inf"], ["inf", "inf"]], "outputs:a_texcoordh2_array_ninf": [["inf", "inf"], ["inf", "inf"]],
"inputs:a_texcoordh3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_texcoordh3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]],
"inputs:a_texcoordh3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_texcoordh3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]],
"inputs:a_timecode_inf": "-inf", "outputs:a_timecode_inf": "-inf",
"inputs:a_timecode_ninf": "inf", "outputs:a_timecode_ninf": "inf",
"inputs:a_timecode_array_inf": ["-inf", "-inf"], "outputs:a_timecode_array_inf": ["-inf", "-inf"],
"inputs:a_timecode_array_ninf": ["inf", "inf"], "outputs:a_timecode_array_ninf": ["inf", "inf"],
"inputs:a_vectord3_inf": ["-inf", "-inf", "-inf"], "outputs:a_vectord3_inf": ["-inf", "-inf", "-inf"],
"inputs:a_vectord3_ninf": ["inf", "inf", "inf"], "outputs:a_vectord3_ninf": ["inf", "inf", "inf"],
"inputs:a_vectord3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_vectord3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]],
"inputs:a_vectord3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_vectord3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]],
"inputs:a_vectorf3_inf": ["-inf", "-inf", "-inf"], "outputs:a_vectorf3_inf": ["-inf", "-inf", "-inf"],
"inputs:a_vectorf3_ninf": ["inf", "inf", "inf"], "outputs:a_vectorf3_ninf": ["inf", "inf", "inf"],
"inputs:a_vectorf3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_vectorf3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]],
"inputs:a_vectorf3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_vectorf3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]],
"inputs:a_vectorh3_inf": ["-inf", "-inf", "-inf"], "outputs:a_vectorh3_inf": ["-inf", "-inf", "-inf"],
"inputs:a_vectorh3_ninf": ["inf", "inf", "inf"], "outputs:a_vectorh3_ninf": ["inf", "inf", "inf"],
"inputs:a_vectorh3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_vectorh3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]],
"inputs:a_vectorh3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_vectorh3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]],
"$comment": "Cannot test NaN types as NaN==NaN is always false, so use a test script instead"
}
]
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnPerturbBundlePoints.cpp | // Copyright (c) 2021 NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#include <OgnPerturbBundlePointsDatabase.h>
#include <cstdlib>
namespace omni {
namespace graph {
namespace test {
// This is the implementation of the OGN node defined in OgnPerturbBundlePoints.ogn
class OgnPerturbBundlePoints
{
static auto& copyBundle(OgnPerturbBundlePointsDatabase& db)
{
CARB_PROFILE_ZONE(carb::profiler::kCaptureMaskDefault, "Acquiring Data");
db.outputs.bundle = db.inputs.bundle;
return db.outputs.bundle();
}
public:
// Perturb a bundles of arrays of points by random amounts within the limits of the bounding cube formed by the
// diagonal corners "minimum" and "maximum".
static bool compute(OgnPerturbBundlePointsDatabase& db)
{
const auto& minimum = db.inputs.minimum();
GfVec3f rangeSize = db.inputs.maximum() - minimum;
// No bundle members mean nothing to perturb
const auto& inputBundle = db.inputs.bundle();
if (inputBundle.attributeCount() == 0)
{
db.outputs.bundle().clear();
return true;
}
// How much of the surface should be perturbed
auto percentModified = db.inputs.percentModified();
percentModified = (percentModified > 100.0f ? 100.0f : (percentModified < 0.0f ? 0.0f : percentModified));
// Steal the bundle contents, then walk all of the members and perturb any points arrays found
auto& outputBundle = copyBundle(db);
CARB_PROFILE_ZONE(carb::profiler::kCaptureMaskDefault, "Perturbing Data");
for (auto& bundledAttribute : outputBundle)
{
auto pointArrayData = bundledAttribute.get<float[][3]>();
if (pointArrayData)
{
auto& pointArray = *pointArrayData;
size_t pointsToModify = (size_t)((percentModified * (float)pointArray.size()) / 100.0f);
size_t index{ 0 };
while (index < pointsToModify)
{
auto& point = pointArray[index++];
point[0] += minimum[0] + static_cast<float>(rand()) / (static_cast<float>(RAND_MAX/(rangeSize[0])));
point[1] += minimum[1] + static_cast<float>(rand()) / (static_cast<float>(RAND_MAX/(rangeSize[1])));
point[2] += minimum[2] + static_cast<float>(rand()) / (static_cast<float>(RAND_MAX/(rangeSize[2])));
}
}
}
return true;
}
};
REGISTER_OGN_NODE()
} // namespace test
} // namespace graph
} // namespace omni
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestTupleArrays.py | """
Test node multiplying tuple arrays by a constant
"""
import numpy as np
class OgnTestTupleArrays:
"""Exercise a sample of complex data types through a Python OmniGraph node"""
@staticmethod
def compute(db) -> bool:
"""Multiply every value in a tuple array by a constant."""
multiplier = db.inputs.multiplier
input_array = db.inputs.float3Array
input_array_size = len(db.inputs.float3Array)
db.outputs.float3Array_size = input_array_size
# If the input array is empty then the output is empty and does not need any computing
if input_array.shape[0] == 0:
db.outputs.float3Array = []
assert db.outputs.float3Array.shape == (0, 3)
return True
db.outputs.float3Array = np.multiply(input_array, multiplier)
return True
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnBundleConsumer.ogn | {
"BundleConsumer": {
"version": 1,
"description": "Node that consumes bundle from producer for change tracking",
"categories": "internal:test",
"exclude": [ "usd", "docs" ],
"uiName": "Test Node: Bundle Properties",
"icon": {
"path": "TestNodeIcon.svg"
},
"inputs": {
"bundle": {
"type": "bundle",
"description": [ "Input Bundle" ]
}
},
"outputs": {
"bundle": {
"type": "bundle",
"description": [ "Output Bundle" ]
},
"hasOutputBundleChanged": {
"description": "Flag to detect if output bundle was updated.",
"type": "bool",
"default": false
}
}
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnBundleToTarget.ogn | {
"BundleToTarget": {
"version": 1,
"description": "Node that tests if bundle and target can be connected when read from USD file.",
"categories": "internal:test",
"exclude": [ "usd", "docs" ],
"uiName": "Test Node: Bundle To Target Connection",
"icon": {
"path": "TestNodeIcon.svg"
},
"inputs": {
"bundle": {
"type": "bundle",
"description": [ "Input Bundle" ]
},
"target": {
"type": "target",
"description": [ "Input Target" ]
}
},
"outputs": {
"bundle": {
"type": "bundle",
"description": [ "Output Bundle" ]
},
"target": {
"type": "target",
"description": [ "Output Target" ]
}
}
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestCppKeywords.cpp | // Copyright (c) 2022-2022 NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#include <OgnTestCppKeywordsDatabase.h>
namespace omni {
namespace graph {
namespace test {
// This class does not have to do anything as it only exists to verify that generated
// code is legal.
class OgnTestCppKeywords
{
public:
static bool compute(OgnTestCppKeywordsDatabase& db)
{
db.outputs.verify() = true;
return true;
}
};
REGISTER_OGN_NODE()
} // test
} // namespace graph
} // namespace omni
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestCyclesSerial.cpp | // Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#include <OgnTestCyclesSerialDatabase.h>
namespace omni
{
namespace graph
{
namespace test
{
class OgnTestCyclesSerial
{
public:
static bool compute(OgnTestCyclesSerialDatabase& db)
{
if (db.state.count() > 10000)
{
db.state.count() = 0;
}
else
{
++db.state.count();
}
return true;
}
};
REGISTER_OGN_NODE()
} // test
} // namespace graph
} // namespace omni
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestUsdCasting.ogn | {
"TestUsdCasting": {
"version": 1,
"description": [
"This node is meant to exercise special bundle member casting used by USD types. It just copies members",
"of the input bundle to the output bundle when any of the recognized USD casting types are found."
],
"uiName": "Test Node: USD Casting",
"categories": "internal:test",
"exclude": ["tests", "usd", "docs"],
"icon": {
"path": "TestNodeIcon.svg"
},
"inputs": {
"a_bundle": { "description": "Input Attribute", "type": "bundle" }
},
"outputs": {
"a_bundle": { "description": "Computed Attribute", "type": "bundle" }
},
"state": {
"a_bundle": { "description": "State Attribute", "type": "bundle" }
}
}
} |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnRandomPoints.ogn | {
"RandomPoints": {
"version": 1,
"description": "Generate an array of the specified number of points at random locations within the bounding cube",
"uiName": "Test Node: Generate Random Points",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
"scheduling": ["threadsafe"],
"exclude": ["tests", "usd", "docs"],
"inputs": {
"pointCount": {
"type": "uint64",
"description": "Number of points to generate",
"uiName": "Point Count"
},
"minimum": {
"type": "pointf[3]",
"description": "Lowest X, Y, Z values for the bounding volume",
"uiName": "Bounding Cube Minimum",
"default": [
0.0,
0.0,
0.0
]
},
"maximum": {
"type": "pointf[3]",
"description": "Highest X, Y, Z values for the bounding volume",
"uiName": "Bounding Cube Maximum",
"default": [
1.0,
1.0,
1.0
]
}
},
"outputs": {
"points": {
"type": "pointf[3][]",
"description": "Randomly generated points",
"uiName": "Random Points"
}
}
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnComputeErrorPy.py | """
This node generates compute() errors for testing purposes.
"""
import omni.graph.core as og
class OgnComputeErrorPy:
@staticmethod
def initialize(graph_context, node):
attr = node.get_attribute("inputs:deprecatedInInit")
# We would not normally deprecate an attribute this way. It would be done through the .ogn file.
# This is just for testing purposes.
og._internal.deprecate_attribute(attr, "Use 'dummyIn' instead.") # noqa: PLW0212
@staticmethod
def compute(db) -> bool:
db.outputs.dummyOut = db.inputs.dummyIn
severity = db.inputs.severity
if severity == "warning":
db.log_warning(db.inputs.message)
elif severity == "error":
db.log_error(db.inputs.message)
return not db.inputs.failCompute
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestCyclesParallel.cpp | // Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#include <OgnTestCyclesParallelDatabase.h>
namespace omni
{
namespace graph
{
namespace test
{
class OgnTestCyclesParallel
{
public:
static bool compute(OgnTestCyclesParallelDatabase& db)
{
if (db.state.count() > 10000)
{
db.state.count() = 0;
}
else
{
++db.state.count();
}
return true;
}
};
REGISTER_OGN_NODE()
} // test
} // namespace graph
} // namespace omni
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnBundleProducer.cpp | // Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#include <OgnBundleProducerDatabase.h>
namespace omni::graph::test {
class OgnBundleProducer
{
public:
static bool compute(OgnBundleProducerDatabase& db)
{
db.outputs.bundle.changes().activate();
return true;
}
};
REGISTER_OGN_NODE()
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestCategoryDefinitions.ogn | {
"TestCategoryDefinitions": {
"version": 1,
"categoryDefinitions": "TestCategoryDefinitions.json",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:categoryTest",
"exclude": ["usd", "docs"],
"language": "python",
"description": "Test node that tests custom category definitions",
"uiName": "Test Node: Custom Category Definitions",
"outputs": {
"category": {
"type": "string",
"description": "The custom category assigned to this node for testing",
"default": "internal"
}
},
"tests": [
{
"$onlyTest": "This test leverages node evaluation to test category assignment",
"outputs:category": "internal:categoryTest"
}
]
}
} |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestDataModel.ogn | {
"TestDataModel": {
"version": 1,
"description": "Helper node that allows to test that core features of datamodel are working as expected (CoW, DataStealing, ...)",
"uiName": "Test Node: Exercise DataModel features",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
"exclude": ["tests", "usd", "docs"],
"inputs": {
"refBundle": {
"type": "bundle",
"description": "Reference Bundle used as a point of comparaison",
"uiName": "Ref bundle"
},
"mutBundle": {
"type": "bundle",
"description": "Bundle meant to be mutated (or not)",
"uiName": "In bundle"
},
"attrib": {
"type": "token",
"description": "Attribute to mutate in the bundle",
"uiName": "Attrib to mutate"
},
"bundleShouldMatch": {
"type": "bool",
"description": "Whether or not the input bundles should be the same one",
"uiName": "Bundles should match",
"default": true
},
"bundleArraysThatShouldDiffer": {
"type": "int",
"description": "The number of arrays attribute in the input bundles that should differs",
"uiName": "Number of != arrays in bundles",
"default": 0
},
"refArray": {
"type": "pointf[3][]",
"description": "A reference array used as a point of comparaison",
"uiName": "Ref array"
},
"mutArray": {
"type": "pointf[3][]",
"description": "Array meant to be mutated",
"uiName": "In array"
},
"mutateArray": {
"type": "bool",
"description": "Whether or not to mutate the array or just passthrough",
"uiName": "Mutate array",
"default": false
},
"arrayShouldMatch": {
"type": "bool",
"description": "Whether or not the input arrays should be the same one one",
"uiName": "Array should match",
"default": true
}
},
"outputs": {
"bundle": {
"type": "bundle",
"description": "The outputed bundle",
"uiName": "Output bundle"
},
"array": {
"type": "pointf[3][]",
"description": "The outputed array",
"uiName": "Output array"
}
}
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnAdd2IntArray.cpp | // Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#include <OgnAdd2IntArrayDatabase.h>
#include <algorithm>
#include <numeric>
class OgnAdd2IntArray
{
public:
static bool compute(OgnAdd2IntArrayDatabase& db)
{
const auto& a = db.inputs.a();
const auto& b = db.inputs.b();
auto& output = db.outputs.output();
// If either array has only a single member that value will be added to all members of the other array.
// The case when both have size 1 is handled by the first "if".
if (a.size() == 1)
{
output = b;
std::for_each(output.begin(), output.end(), [a](int& value) { value += a[0]; });
}
else if (b.size() == 1)
{
output = a;
std::for_each(output.begin(), output.end(), [b](int& value) { value += b[0]; });
}
else if (a.size() != b.size())
{
db.logWarning("Attempted to add arrays of different sizes - %zu and %zu", a.size(), b.size());
return false;
}
else if (a.size() > 0)
{
output.resize(a.size());
std::transform(a.begin(), a.end(), b.begin(), output.begin(), std::plus<int>());
}
return true;
}
};
REGISTER_OGN_NODE()
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnBundlePropertiesPy.py | """
This node is designed to test bundle properties.
"""
class OgnBundlePropertiesPy:
@staticmethod
def compute(db) -> bool:
bundle_contents = db.inputs.bundle
db.outputs.valid = bundle_contents.valid
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnSubtractDoubleC.cpp | // Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#include <OgnSubtractDoubleCDatabase.h>
namespace omni
{
namespace graph
{
namespace examples
{
class OgnSubtractDoubleC
{
public:
static bool compute(OgnSubtractDoubleCDatabase& db)
{
db.outputs.out() = db.inputs.a() - db.inputs.b();
return true;
}
};
REGISTER_OGN_NODE()
}
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnPerturbPointsGpu.ogn | {
"PerturbPointsGpu": {
"version": 1,
"description": "Randomly modify positions on a set of points. Same as OgnPerturbPoints.ogn, except written in CUDA.",
"uiName": "Test Node: Randomly Perturb Points - GPU",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
"scheduling": ["threadsafe"],
"exclude": ["tests", "usd", "docs"],
"memoryType": "cuda",
"inputs": {
"points": {
"type": "pointf[3][]",
"description": "Points to be perturbed",
"uiName": "Original Points"
},
"minimum": {
"type": "pointf[3]",
"description": "Minimum values of the perturbation",
"uiName": "Perturb Minimum",
"default": [
0.0,
0.0,
0.0
]
},
"maximum": {
"type": "pointf[3]",
"description": "Maximum values of the perturbation",
"uiName": "Perturb Maximum",
"default": [
1.0,
1.0,
1.0
]
},
"percentModified": {
"type": "float",
"description": [
"Percentage of points to modify, decided by striding across point set.",
"The value will be used to figure out how many threads to launch so it must be on the CPU."
],
"uiName": "Percentage Modified",
"memoryType": "cpu",
"default": 100.0
}
},
"outputs": {
"points": {
"type": "pointf[3][]",
"description": "Points that were perturbed",
"uiName": "Perturbed Points"
}
}
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestCyclesParallel.ogn | {
"TestCyclesParallel": {
"version": 1,
"description": [
"Test node for checking cyclical behavior. Has a bunch of bool attributes from the get-go",
"for convenience (i.e. so that a bunch of attributes don't need to be added at runtime for",
"testing purposes). Scheduled in parallel."
],
"uiName": "Test Node: Parallel Cycles",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
"scheduling": ["threadsafe"],
"exclude": ["tests", "usd", "docs"],
"inputs": {
"a": {
"type": "bool",
"description": "A bool",
"uiName": "a"
},
"b": {
"type": "bool",
"description": "A bool",
"uiName": "b"
},
"c": {
"type": "bool",
"description": "A bool",
"uiName": "c"
},
"d": {
"type": "bool",
"description": "A bool",
"uiName": "d"
}
},
"outputs": {
"a": {
"type": "bool",
"description": "A bool",
"uiName": "a"
},
"b": {
"type": "bool",
"description": "A bool",
"uiName": "b"
},
"c": {
"type": "bool",
"description": "A bool",
"uiName": "c"
},
"d": {
"type": "bool",
"description": "A bool",
"uiName": "d"
}
},
"state": {
"count": {
"type": "int",
"description": "An internal counter",
"default": 0
}
}
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnAdd2IntArray.ogn | {
"Add2IntegerArrays": {
"description": ["Compute the array 'output' as the element-wise sums of the input arrays 'a' and 'b'. ",
"If either of the input arrays have size 1 then that value will be added to every element ",
"of the other to form the output."
],
"metadata" : {
"uiName": "Add Two Arrays of Integers"
},
"categories": "internal:test",
"scheduling": ["threadsafe"],
"exclude": ["usd", "docs"],
"icon": {
"path": "TestNodeIcon.svg"
},
"inputs": {
"a": {
"description": "First array to be added",
"type": "int[]",
"default": []
},
"b": {
"description": "Second array to be added",
"type": "int[]",
"default": []
}
},
"outputs": {
"output": {
"description": "Sum of the two arrays",
"type": "int[]",
"default": []
}
},
"tests": [
{ "inputs:a": [1, 2, 3], "inputs:b": [10, 20, 30], "outputs:output": [11, 22, 33]},
{ "inputs:a": [1], "inputs:b": [10, 20, 30], "outputs:output": [11, 21, 31]},
{ "inputs:a": [1, 2, 3], "inputs:b": [10], "outputs:output": [11, 12, 13]},
{ "inputs:a": [3], "inputs:b": [13], "outputs:output": [16]}
]
}
}
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestReadVariablePy.py | import omni.graph.core as og
class OgnTestReadVariablePy:
"""Python version of OgnWriteVariable"""
@staticmethod
def compute(db) -> bool:
"""Read the given variable and write it to the output"""
value = db.get_variable(db.inputs.variableName)
if value is not None:
db.outputs.value = value
return True
return False
@staticmethod
def initialize(graph_context, node):
function_callback = OgnTestReadVariablePy.on_value_changed_callback
node.get_attribute("inputs:variableName").register_value_changed_callback(function_callback)
@staticmethod
def on_value_changed_callback(attr):
node = attr.get_node()
name = attr.get_attribute_data().get(False)
var = node.get_graph().find_variable(name)
value_attr = node.get_attribute("outputs:value")
old_type = value_attr.get_resolved_type()
if not var:
value_attr.set_resolved_type(og.Type(og.BaseDataType.UNKNOWN))
elif var.type != old_type:
value_attr.set_resolved_type(og.Type(og.BaseDataType.UNKNOWN))
value_attr.set_resolved_type(var.type)
|