file_path
stringlengths 32
153
| content
stringlengths 0
3.14M
|
---|---|
omniverse-code/kit/exts/omni.kit.test_suite.layout/docs/index.rst | omni.kit.test_suite.layout
############################
layout tests
.. toctree::
:maxdepth: 1
CHANGELOG
|
omniverse-code/kit/exts/omni.resourcemonitor/PACKAGE-LICENSES/omni.resourcemonitor-LICENSE.md | 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. |
omniverse-code/kit/exts/omni.resourcemonitor/config/extension.toml | [package]
title = "Resource Monitor"
description = "Monitor utility for device and host memory"
authors = ["NVIDIA"]
changelog = "docs/CHANGELOG.md"
readme = "docs/README.md"
category = "Internal"
preview_image = "data/preview.png"
icon = "data/icon.png"
version = "1.0.0"
[dependencies]
"omni.kit.renderer.core" = {}
"omni.kit.window.preferences" = {}
[[python.module]]
name = "omni.resourcemonitor"
[[native.plugin]]
path = "bin/*.plugin"
# Additional python module with tests, to make them discoverable by test system
[[python.module]]
name = "omni.resourcemonitor.tests"
[[test]]
timeout = 300
|
omniverse-code/kit/exts/omni.resourcemonitor/omni/resourcemonitor/__init__.py | from .scripts.extension import *
|
omniverse-code/kit/exts/omni.resourcemonitor/omni/resourcemonitor/_resourceMonitor.pyi | """pybind11 omni.resourcemonitor bindings"""
from __future__ import annotations
import omni.resourcemonitor._resourceMonitor
import typing
import carb.events._events
__all__ = [
"IResourceMonitor",
"ResourceMonitorEventType",
"acquire_resource_monitor_interface",
"deviceMemoryWarnFractionSettingName",
"deviceMemoryWarnMBSettingName",
"hostMemoryWarnFractionSettingName",
"hostMemoryWarnMBSettingName",
"release_resource_monitor_interface",
"sendDeviceMemoryWarningSettingName",
"sendHostMemoryWarningSettingName",
"timeBetweenQueriesSettingName"
]
class IResourceMonitor():
def get_available_device_memory(self, arg0: int) -> int: ...
def get_available_host_memory(self) -> int: ...
def get_event_stream(self) -> carb.events._events.IEventStream: ...
def get_total_device_memory(self, arg0: int) -> int: ...
def get_total_host_memory(self) -> int: ...
pass
class ResourceMonitorEventType():
"""
ResourceMonitor notification.
Members:
DEVICE_MEMORY
HOST_MEMORY
LOW_DEVICE_MEMORY
LOW_HOST_MEMORY
"""
def __eq__(self, other: object) -> bool: ...
def __getstate__(self) -> int: ...
def __hash__(self) -> int: ...
def __index__(self) -> int: ...
def __init__(self, value: int) -> None: ...
def __int__(self) -> int: ...
def __ne__(self, other: object) -> bool: ...
def __repr__(self) -> str: ...
def __setstate__(self, state: int) -> None: ...
@property
def name(self) -> str:
"""
:type: str
"""
@property
def value(self) -> int:
"""
:type: int
"""
DEVICE_MEMORY: omni.resourcemonitor._resourceMonitor.ResourceMonitorEventType # value = <ResourceMonitorEventType.DEVICE_MEMORY: 0>
HOST_MEMORY: omni.resourcemonitor._resourceMonitor.ResourceMonitorEventType # value = <ResourceMonitorEventType.HOST_MEMORY: 1>
LOW_DEVICE_MEMORY: omni.resourcemonitor._resourceMonitor.ResourceMonitorEventType # value = <ResourceMonitorEventType.LOW_DEVICE_MEMORY: 2>
LOW_HOST_MEMORY: omni.resourcemonitor._resourceMonitor.ResourceMonitorEventType # value = <ResourceMonitorEventType.LOW_HOST_MEMORY: 3>
__members__: dict # value = {'DEVICE_MEMORY': <ResourceMonitorEventType.DEVICE_MEMORY: 0>, 'HOST_MEMORY': <ResourceMonitorEventType.HOST_MEMORY: 1>, 'LOW_DEVICE_MEMORY': <ResourceMonitorEventType.LOW_DEVICE_MEMORY: 2>, 'LOW_HOST_MEMORY': <ResourceMonitorEventType.LOW_HOST_MEMORY: 3>}
pass
def acquire_resource_monitor_interface(plugin_name: str = None, library_path: str = None) -> IResourceMonitor:
pass
def release_resource_monitor_interface(arg0: IResourceMonitor) -> None:
pass
deviceMemoryWarnFractionSettingName = '/persistent/resourcemonitor/deviceMemoryWarnFraction'
deviceMemoryWarnMBSettingName = '/persistent/resourcemonitor/deviceMemoryWarnMB'
hostMemoryWarnFractionSettingName = '/persistent/resourcemonitor/hostMemoryWarnFraction'
hostMemoryWarnMBSettingName = '/persistent/resourcemonitor/hostMemoryWarnMB'
sendDeviceMemoryWarningSettingName = '/persistent/resourcemonitor/sendDeviceMemoryWarning'
sendHostMemoryWarningSettingName = '/persistent/resourcemonitor/sendHostMemoryWarning'
timeBetweenQueriesSettingName = '/persistent/resourcemonitor/timeBetweenQueries'
|
omniverse-code/kit/exts/omni.resourcemonitor/omni/resourcemonitor/__extensions__.py | |
omniverse-code/kit/exts/omni.resourcemonitor/omni/resourcemonitor/scripts/extension.py | import omni.ext
from .._resourceMonitor import *
class PublicExtension(omni.ext.IExt):
def on_startup(self):
self._resourceMonitor = acquire_resource_monitor_interface()
def on_shutdown(self):
release_resource_monitor_interface(self._resourceMonitor)
|
omniverse-code/kit/exts/omni.resourcemonitor/omni/resourcemonitor/scripts/resource_monitor_page.py | import omni.ui as ui
from omni.kit.window.preferences import PreferenceBuilder, SettingType
from .. import _resourceMonitor
class ResourceMonitorPreferences(PreferenceBuilder):
def __init__(self):
super().__init__("Resource Monitor")
def build(self):
""" Resource Monitor """
with ui.VStack(height=0):
with self.add_frame("Resource Monitor"):
with ui.VStack():
self.create_setting_widget(
"Time Between Queries",
_resourceMonitor.timeBetweenQueriesSettingName,
SettingType.FLOAT,
)
self.create_setting_widget(
"Send Device Memory Warnings",
_resourceMonitor.sendDeviceMemoryWarningSettingName,
SettingType.BOOL,
)
self.create_setting_widget(
"Device Memory Warning Threshold (MB)",
_resourceMonitor.deviceMemoryWarnMBSettingName,
SettingType.INT,
)
self.create_setting_widget(
"Device Memory Warning Threshold (Fraction)",
_resourceMonitor.deviceMemoryWarnFractionSettingName,
SettingType.FLOAT,
range_from=0.,
range_to=1.,
)
self.create_setting_widget(
"Send Host Memory Warnings",
_resourceMonitor.sendHostMemoryWarningSettingName,
SettingType.BOOL
)
self.create_setting_widget(
"Host Memory Warning Threshold (MB)",
_resourceMonitor.hostMemoryWarnMBSettingName,
SettingType.INT,
)
self.create_setting_widget(
"Host Memory Warning Threshold (Fraction)",
_resourceMonitor.hostMemoryWarnFractionSettingName,
SettingType.FLOAT,
range_from=0.,
range_to=1.,
)
|
omniverse-code/kit/exts/omni.resourcemonitor/omni/resourcemonitor/tests/__init__.py | """
Presence of this file allows the tests directory to be imported as a module so that all of its contents
can be scanned to automatically add tests that are placed into this directory.
"""
scan_for_test_modules = True
|
omniverse-code/kit/exts/omni.resourcemonitor/omni/resourcemonitor/tests/test_resource_monitor.py | # 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.
#
import numpy as np
import carb.settings
import omni.kit.test
import omni.resourcemonitor as rm
class TestResourceSettings(omni.kit.test.AsyncTestCase):
# Before running each test
async def setUp(self):
self._savedSettings = {}
self._rm_interface = rm.acquire_resource_monitor_interface()
self._settings = carb.settings.get_settings()
# Save current settings
self._savedSettings[rm.timeBetweenQueriesSettingName] = \
self._settings.get_as_float(rm.timeBetweenQueriesSettingName)
self._savedSettings[rm.sendDeviceMemoryWarningSettingName] = \
self._settings.get_as_bool(rm.sendDeviceMemoryWarningSettingName)
self._savedSettings[rm.deviceMemoryWarnMBSettingName] = \
self._settings.get_as_int(rm.deviceMemoryWarnMBSettingName)
self._savedSettings[rm.deviceMemoryWarnFractionSettingName] = \
self._settings.get_as_float(rm.deviceMemoryWarnFractionSettingName)
self._savedSettings[rm.sendHostMemoryWarningSettingName] = \
self._settings.get_as_bool(rm.sendHostMemoryWarningSettingName)
self._savedSettings[rm.hostMemoryWarnMBSettingName] = \
self._settings.get_as_int(rm.hostMemoryWarnMBSettingName)
self._savedSettings[rm.hostMemoryWarnFractionSettingName] = \
self._settings.get_as_float(rm.hostMemoryWarnFractionSettingName)
# After running each test
async def tearDown(self):
# Restore settings
self._settings.set_float(
rm.timeBetweenQueriesSettingName,
self._savedSettings[rm.timeBetweenQueriesSettingName])
self._settings.set_bool(
rm.sendDeviceMemoryWarningSettingName,
self._savedSettings[rm.sendDeviceMemoryWarningSettingName])
self._settings.set_int(
rm.deviceMemoryWarnMBSettingName,
self._savedSettings[rm.deviceMemoryWarnMBSettingName])
self._settings.set_float(
rm.deviceMemoryWarnFractionSettingName,
self._savedSettings[rm.deviceMemoryWarnFractionSettingName])
self._settings.set_bool(
rm.sendHostMemoryWarningSettingName,
self._savedSettings[rm.sendHostMemoryWarningSettingName])
self._settings.set_int(
rm.hostMemoryWarnMBSettingName,
self._savedSettings[rm.hostMemoryWarnMBSettingName])
self._settings.set_float(
rm.hostMemoryWarnFractionSettingName,
self._savedSettings[rm.hostMemoryWarnFractionSettingName])
async def test_resource_monitor(self):
"""
Test host memory warnings by setting the warning threshold to slightly
less than 10 GB below current memory usage then allocating a 10 GB buffer
"""
hostBytesAvail = self._rm_interface.get_available_host_memory()
memoryToAlloc = 10 * 1024 * 1024 * 1024
queryTime = 0.1
fudge = 512 * 1024 * 1024 # make sure we go below the warning threshold
warnHostThresholdBytes = hostBytesAvail - memoryToAlloc + fudge
self._settings.set_float(
rm.timeBetweenQueriesSettingName,
queryTime)
self._settings.set_bool(
rm.sendHostMemoryWarningSettingName,
True)
self._settings.set_int(
rm.hostMemoryWarnMBSettingName,
warnHostThresholdBytes // (1024 * 1024)) # bytes to MB
hostMemoryWarningOccurred = False
def on_rm_update(event):
nonlocal hostMemoryWarningOccurred
hostBytesAvail = self._rm_interface.get_available_host_memory()
if event.type == int(rm.ResourceMonitorEventType.LOW_HOST_MEMORY):
hostMemoryWarningOccurred = True
sub = self._rm_interface.get_event_stream().create_subscription_to_pop(on_rm_update, name='resource monitor update')
self.assertIsNotNone(sub)
# allocate something
numElements = memoryToAlloc // np.dtype(np.int64).itemsize
array = np.zeros(numElements, dtype=np.int64)
array[:] = 1
time = 0.
while time < 2. * queryTime: # give time for a resourcemonitor event to come through
dt = await omni.kit.app.get_app().next_update_async()
time = time + dt
self.assertTrue(hostMemoryWarningOccurred)
|
omniverse-code/kit/exts/omni.resourcemonitor/docs/CHANGELOG.md | # CHANGELOG
## [1.0.0] - 2021-09-14
### Added
- Initial implementation.
- Provide event stream for low memory warnings.
- Provide convenience functions for host and device memory queries.
|
omniverse-code/kit/exts/omni.resourcemonitor/docs/README.md | # [omni.resourcemonitor]
Utility extension for host and device memory updates.
Clients can subscribe to this extension's event stream to receive updates on available memory and/or receive warnings when available memory falls below specified thresholds.
|
omniverse-code/kit/exts/omni.graph.examples.python/ogn/nodes.json | {
"nodes": {
"omni.graph.examples.python.DeformerPy": {
"description": "Example node applying a sine wave deformation to a set of points, written in Python",
"version": 1,
"extension": "omni.graph.examples.python",
"language": "Python"
},
"omni.graph.examples.python.DeformerPyGpu": {
"description": "Example node applying a sine wave deformation to a set of points, written in Python for the GPU",
"version": 1,
"extension": "omni.graph.examples.python",
"language": "Python"
},
"omni.graph.examples.python.VersionedDeformerPy": {
"description": "Test node to confirm version upgrading works. Performs a basic deformation on some points.",
"version": 2,
"extension": "omni.graph.examples.python",
"language": "Python"
},
"omni.graph.examples.python.BouncingCubes": {
"description": "Example of realtime update of nodes using a gathered input",
"version": 1,
"extension": "omni.graph.examples.python",
"language": "Python"
},
"omni.graph.examples.python.BouncingCubesGpu": {
"description": "Example of realtime update of nodes using a gathered input",
"version": 1,
"extension": "omni.graph.examples.python",
"language": "Python"
},
"omni.graph.examples.python.CountTo": {
"description": "Example stateful node that counts to countTo by a certain increment",
"version": 1,
"extension": "omni.graph.examples.python",
"language": "Python"
},
"omni.graph.examples.python.IntCounter": {
"description": "Example stateful node that increments every time it's evaluated",
"version": 1,
"extension": "omni.graph.examples.python",
"language": "Python"
},
"omni.graph.examples.python.TestInitNode": {
"description": "Test Init Node",
"version": 1,
"extension": "omni.graph.examples.python",
"language": "Python"
},
"omni.graph.examples.python.TestSingleton": {
"description": "Example node that showcases the use of singleton nodes (nodes that can have only 1 instance)",
"version": 1,
"extension": "omni.graph.examples.python",
"language": "Python"
},
"omni.graph.examples.python.AbsDouble": {
"description": "Example node that takes the absolute value of a number",
"version": 1,
"extension": "omni.graph.examples.python",
"language": "Python"
},
"omni.graph.examples.python.ClampDouble": {
"description": "Example node that a number to a range",
"version": 1,
"extension": "omni.graph.examples.python",
"language": "Python"
},
"omni.graph.examples.python.ComposeDouble3": {
"description": "Example node that takes in the components of three doubles and outputs a double3",
"version": 1,
"extension": "omni.graph.examples.python",
"language": "Python"
},
"omni.graph.examples.python.DecomposeDouble3": {
"description": "Example node that takes in a double3 and outputs scalars that are its components",
"version": 1,
"extension": "omni.graph.examples.python",
"language": "Python"
},
"omni.graph.examples.python.DeformerYAxis": {
"description": "Example node applying a sine wave deformation to a set of points, written in Python. Deforms along Y-axis instead of Z",
"version": 1,
"extension": "omni.graph.examples.python",
"language": "Python"
},
"omni.graph.examples.python.MultDouble": {
"description": "Example node that multiplies 2 doubles together",
"version": 1,
"extension": "omni.graph.examples.python",
"language": "Python"
},
"omni.graph.examples.python.PositionToColor": {
"description": "This node takes positional data (double3) and converts to a color, and outputs as color3f[] (which seems to be the default color connection in USD)",
"version": 1,
"extension": "omni.graph.examples.python",
"language": "Python"
},
"omni.graph.examples.python.SubtractDouble": {
"description": "Example node that subtracts 2 doubles from each other",
"version": 1,
"extension": "omni.graph.examples.python",
"language": "Python"
},
"omni.graph.examples.python.DynamicSwitch": {
"description": "A switch node that will enable the left side or right side depending on the input. Requires dynamic scheduling to work",
"version": 1,
"extension": "omni.graph.examples.python",
"language": "Python"
},
"omni.graph.examples.python.UniversalAdd": {
"description": "Python-based universal add node for all types. This file is generated using UniversalAddGenerator.py",
"version": 1,
"extension": "omni.graph.examples.python",
"language": "Python"
}
}
}
|
omniverse-code/kit/exts/omni.graph.examples.python/ogn/docs/OgnVersionedDeformerPy.rst | .. _omni_graph_examples_python_VersionedDeformerPy_2:
.. _omni_graph_examples_python_VersionedDeformerPy:
.. ================================================================================
.. THIS PAGE IS AUTO-GENERATED. DO NOT MANUALLY EDIT.
.. ================================================================================
:orphan:
.. meta::
:title: VersionedDeformerPy
:keywords: lang-en omnigraph node examples python versioned-deformer-py
VersionedDeformerPy
===================
.. <description>
Test node to confirm version upgrading works. Performs a basic deformation on some points.
.. </description>
Installation
------------
To use this node enable :ref:`omni.graph.examples.python<ext_omni_graph_examples_python>` in the Extension Manager.
Inputs
------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"inputs:points", "``pointf[3][]``", "Set of points to be deformed", "[]"
"inputs:wavelength", "``float``", "Wavelength of sinusodal deformer function", "50.0"
Outputs
-------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"outputs:points", "``pointf[3][]``", "Set of deformed points", "None"
Metadata
--------
.. csv-table::
:header: "Name", "Value"
:widths: 30,70
"Unique ID", "omni.graph.examples.python.VersionedDeformerPy"
"Version", "2"
"Extension", "omni.graph.examples.python"
"Has State?", "False"
"Implementation Language", "Python"
"Default Memory Type", "cpu"
"Generated Code Exclusions", "None"
"uiName", "VersionedDeformerPy"
"Categories", "examples"
"Generated Class Name", "OgnVersionedDeformerPyDatabase"
"Python Module", "omni.graph.examples.python"
|
omniverse-code/kit/exts/omni.graph.examples.python/ogn/docs/OgnPyUniversalAdd.rst | .. _omni_graph_examples_python_UniversalAdd_1:
.. _omni_graph_examples_python_UniversalAdd:
.. ================================================================================
.. THIS PAGE IS AUTO-GENERATED. DO NOT MANUALLY EDIT.
.. ================================================================================
:orphan:
.. meta::
:title: Universal Add For All Types (Python)
:keywords: lang-en omnigraph node examples python universal-add
Universal Add For All Types (Python)
====================================
.. <description>
Python-based universal add node for all types. This file is generated using UniversalAddGenerator.py
.. </description>
Installation
------------
To use this node enable :ref:`omni.graph.examples.python<ext_omni_graph_examples_python>` in the Extension Manager.
Inputs
------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"inputs:bool_0", "``bool``", "Input of type bool", "False"
"inputs:bool_1", "``bool``", "Input of type bool", "False"
"inputs:bool_arr_0", "``bool[]``", "Input of type bool[]", "[]"
"inputs:bool_arr_1", "``bool[]``", "Input of type bool[]", "[]"
"inputs:colord3_0", "``colord[3]``", "Input of type colord[3]", "[0.0, 0.0, 0.0]"
"inputs:colord3_1", "``colord[3]``", "Input of type colord[3]", "[0.0, 0.0, 0.0]"
"inputs:colord3_arr_0", "``colord[3][]``", "Input of type colord[3][]", "[]"
"inputs:colord3_arr_1", "``colord[3][]``", "Input of type colord[3][]", "[]"
"inputs:colord4_0", "``colord[4]``", "Input of type colord[4]", "[0.0, 0.0, 0.0, 0.0]"
"inputs:colord4_1", "``colord[4]``", "Input of type colord[4]", "[0.0, 0.0, 0.0, 0.0]"
"inputs:colord4_arr_0", "``colord[4][]``", "Input of type colord[4][]", "[]"
"inputs:colord4_arr_1", "``colord[4][]``", "Input of type colord[4][]", "[]"
"inputs:colorf3_0", "``colorf[3]``", "Input of type colorf[3]", "[0.0, 0.0, 0.0]"
"inputs:colorf3_1", "``colorf[3]``", "Input of type colorf[3]", "[0.0, 0.0, 0.0]"
"inputs:colorf3_arr_0", "``colorf[3][]``", "Input of type colorf[3][]", "[]"
"inputs:colorf3_arr_1", "``colorf[3][]``", "Input of type colorf[3][]", "[]"
"inputs:colorf4_0", "``colorf[4]``", "Input of type colorf[4]", "[0.0, 0.0, 0.0, 0.0]"
"inputs:colorf4_1", "``colorf[4]``", "Input of type colorf[4]", "[0.0, 0.0, 0.0, 0.0]"
"inputs:colorf4_arr_0", "``colorf[4][]``", "Input of type colorf[4][]", "[]"
"inputs:colorf4_arr_1", "``colorf[4][]``", "Input of type colorf[4][]", "[]"
"inputs:colorh3_0", "``colorh[3]``", "Input of type colorh[3]", "[0.0, 0.0, 0.0]"
"inputs:colorh3_1", "``colorh[3]``", "Input of type colorh[3]", "[0.0, 0.0, 0.0]"
"inputs:colorh3_arr_0", "``colorh[3][]``", "Input of type colorh[3][]", "[]"
"inputs:colorh3_arr_1", "``colorh[3][]``", "Input of type colorh[3][]", "[]"
"inputs:colorh4_0", "``colorh[4]``", "Input of type colorh[4]", "[0.0, 0.0, 0.0, 0.0]"
"inputs:colorh4_1", "``colorh[4]``", "Input of type colorh[4]", "[0.0, 0.0, 0.0, 0.0]"
"inputs:colorh4_arr_0", "``colorh[4][]``", "Input of type colorh[4][]", "[]"
"inputs:colorh4_arr_1", "``colorh[4][]``", "Input of type colorh[4][]", "[]"
"inputs:double2_0", "``double[2]``", "Input of type double[2]", "[0.0, 0.0]"
"inputs:double2_1", "``double[2]``", "Input of type double[2]", "[0.0, 0.0]"
"inputs:double2_arr_0", "``double[2][]``", "Input of type double[2][]", "[]"
"inputs:double2_arr_1", "``double[2][]``", "Input of type double[2][]", "[]"
"inputs:double3_0", "``double[3]``", "Input of type double[3]", "[0.0, 0.0, 0.0]"
"inputs:double3_1", "``double[3]``", "Input of type double[3]", "[0.0, 0.0, 0.0]"
"inputs:double3_arr_0", "``double[3][]``", "Input of type double[3][]", "[]"
"inputs:double3_arr_1", "``double[3][]``", "Input of type double[3][]", "[]"
"inputs:double4_0", "``double[4]``", "Input of type double[4]", "[0.0, 0.0, 0.0, 0.0]"
"inputs:double4_1", "``double[4]``", "Input of type double[4]", "[0.0, 0.0, 0.0, 0.0]"
"inputs:double4_arr_0", "``double[4][]``", "Input of type double[4][]", "[]"
"inputs:double4_arr_1", "``double[4][]``", "Input of type double[4][]", "[]"
"inputs:double_0", "``double``", "Input of type double", "0.0"
"inputs:double_1", "``double``", "Input of type double", "0.0"
"inputs:double_arr_0", "``double[]``", "Input of type double[]", "[]"
"inputs:double_arr_1", "``double[]``", "Input of type double[]", "[]"
"inputs:float2_0", "``float[2]``", "Input of type float[2]", "[0.0, 0.0]"
"inputs:float2_1", "``float[2]``", "Input of type float[2]", "[0.0, 0.0]"
"inputs:float2_arr_0", "``float[2][]``", "Input of type float[2][]", "[]"
"inputs:float2_arr_1", "``float[2][]``", "Input of type float[2][]", "[]"
"inputs:float3_0", "``float[3]``", "Input of type float[3]", "[0.0, 0.0, 0.0]"
"inputs:float3_1", "``float[3]``", "Input of type float[3]", "[0.0, 0.0, 0.0]"
"inputs:float3_arr_0", "``float[3][]``", "Input of type float[3][]", "[]"
"inputs:float3_arr_1", "``float[3][]``", "Input of type float[3][]", "[]"
"inputs:float4_0", "``float[4]``", "Input of type float[4]", "[0.0, 0.0, 0.0, 0.0]"
"inputs:float4_1", "``float[4]``", "Input of type float[4]", "[0.0, 0.0, 0.0, 0.0]"
"inputs:float4_arr_0", "``float[4][]``", "Input of type float[4][]", "[]"
"inputs:float4_arr_1", "``float[4][]``", "Input of type float[4][]", "[]"
"inputs:float_0", "``float``", "Input of type float", "0.0"
"inputs:float_1", "``float``", "Input of type float", "0.0"
"inputs:float_arr_0", "``float[]``", "Input of type float[]", "[]"
"inputs:float_arr_1", "``float[]``", "Input of type float[]", "[]"
"inputs:frame4_0", "``frame[4]``", "Input of type 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]]"
"inputs:frame4_1", "``frame[4]``", "Input of type 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]]"
"inputs:frame4_arr_0", "``frame[4][]``", "Input of type frame[4][]", "[]"
"inputs:frame4_arr_1", "``frame[4][]``", "Input of type frame[4][]", "[]"
"inputs:half2_0", "``half[2]``", "Input of type half[2]", "[0.0, 0.0]"
"inputs:half2_1", "``half[2]``", "Input of type half[2]", "[0.0, 0.0]"
"inputs:half2_arr_0", "``half[2][]``", "Input of type half[2][]", "[]"
"inputs:half2_arr_1", "``half[2][]``", "Input of type half[2][]", "[]"
"inputs:half3_0", "``half[3]``", "Input of type half[3]", "[0.0, 0.0, 0.0]"
"inputs:half3_1", "``half[3]``", "Input of type half[3]", "[0.0, 0.0, 0.0]"
"inputs:half3_arr_0", "``half[3][]``", "Input of type half[3][]", "[]"
"inputs:half3_arr_1", "``half[3][]``", "Input of type half[3][]", "[]"
"inputs:half4_0", "``half[4]``", "Input of type half[4]", "[0.0, 0.0, 0.0, 0.0]"
"inputs:half4_1", "``half[4]``", "Input of type half[4]", "[0.0, 0.0, 0.0, 0.0]"
"inputs:half4_arr_0", "``half[4][]``", "Input of type half[4][]", "[]"
"inputs:half4_arr_1", "``half[4][]``", "Input of type half[4][]", "[]"
"inputs:half_0", "``half``", "Input of type half", "0.0"
"inputs:half_1", "``half``", "Input of type half", "0.0"
"inputs:half_arr_0", "``half[]``", "Input of type half[]", "[]"
"inputs:half_arr_1", "``half[]``", "Input of type half[]", "[]"
"inputs:int2_0", "``int[2]``", "Input of type int[2]", "[0, 0]"
"inputs:int2_1", "``int[2]``", "Input of type int[2]", "[0, 0]"
"inputs:int2_arr_0", "``int[2][]``", "Input of type int[2][]", "[]"
"inputs:int2_arr_1", "``int[2][]``", "Input of type int[2][]", "[]"
"inputs:int3_0", "``int[3]``", "Input of type int[3]", "[0, 0, 0]"
"inputs:int3_1", "``int[3]``", "Input of type int[3]", "[0, 0, 0]"
"inputs:int3_arr_0", "``int[3][]``", "Input of type int[3][]", "[]"
"inputs:int3_arr_1", "``int[3][]``", "Input of type int[3][]", "[]"
"inputs:int4_0", "``int[4]``", "Input of type int[4]", "[0, 0, 0, 0]"
"inputs:int4_1", "``int[4]``", "Input of type int[4]", "[0, 0, 0, 0]"
"inputs:int4_arr_0", "``int[4][]``", "Input of type int[4][]", "[]"
"inputs:int4_arr_1", "``int[4][]``", "Input of type int[4][]", "[]"
"inputs:int64_0", "``int64``", "Input of type int64", "0"
"inputs:int64_1", "``int64``", "Input of type int64", "0"
"inputs:int64_arr_0", "``int64[]``", "Input of type int64[]", "[]"
"inputs:int64_arr_1", "``int64[]``", "Input of type int64[]", "[]"
"inputs:int_0", "``int``", "Input of type int", "0"
"inputs:int_1", "``int``", "Input of type int", "0"
"inputs:int_arr_0", "``int[]``", "Input of type int[]", "[]"
"inputs:int_arr_1", "``int[]``", "Input of type int[]", "[]"
"inputs:matrixd2_0", "``matrixd[2]``", "Input of type matrixd[2]", "[[0.0, 0.0], [0.0, 0.0]]"
"inputs:matrixd2_1", "``matrixd[2]``", "Input of type matrixd[2]", "[[0.0, 0.0], [0.0, 0.0]]"
"inputs:matrixd2_arr_0", "``matrixd[2][]``", "Input of type matrixd[2][]", "[]"
"inputs:matrixd2_arr_1", "``matrixd[2][]``", "Input of type matrixd[2][]", "[]"
"inputs:matrixd3_0", "``matrixd[3]``", "Input of type matrixd[3]", "[[0.0, 0.0, 0.0], [0.0, 0.0, 0.0], [0.0, 0.0, 0.0]]"
"inputs:matrixd3_1", "``matrixd[3]``", "Input of type matrixd[3]", "[[0.0, 0.0, 0.0], [0.0, 0.0, 0.0], [0.0, 0.0, 0.0]]"
"inputs:matrixd3_arr_0", "``matrixd[3][]``", "Input of type matrixd[3][]", "[]"
"inputs:matrixd3_arr_1", "``matrixd[3][]``", "Input of type matrixd[3][]", "[]"
"inputs:matrixd4_0", "``matrixd[4]``", "Input of type 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]]"
"inputs:matrixd4_1", "``matrixd[4]``", "Input of type 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]]"
"inputs:matrixd4_arr_0", "``matrixd[4][]``", "Input of type matrixd[4][]", "[]"
"inputs:matrixd4_arr_1", "``matrixd[4][]``", "Input of type matrixd[4][]", "[]"
"inputs:normald3_0", "``normald[3]``", "Input of type normald[3]", "[0.0, 0.0, 0.0]"
"inputs:normald3_1", "``normald[3]``", "Input of type normald[3]", "[0.0, 0.0, 0.0]"
"inputs:normald3_arr_0", "``normald[3][]``", "Input of type normald[3][]", "[]"
"inputs:normald3_arr_1", "``normald[3][]``", "Input of type normald[3][]", "[]"
"inputs:normalf3_0", "``normalf[3]``", "Input of type normalf[3]", "[0.0, 0.0, 0.0]"
"inputs:normalf3_1", "``normalf[3]``", "Input of type normalf[3]", "[0.0, 0.0, 0.0]"
"inputs:normalf3_arr_0", "``normalf[3][]``", "Input of type normalf[3][]", "[]"
"inputs:normalf3_arr_1", "``normalf[3][]``", "Input of type normalf[3][]", "[]"
"inputs:normalh3_0", "``normalh[3]``", "Input of type normalh[3]", "[0.0, 0.0, 0.0]"
"inputs:normalh3_1", "``normalh[3]``", "Input of type normalh[3]", "[0.0, 0.0, 0.0]"
"inputs:normalh3_arr_0", "``normalh[3][]``", "Input of type normalh[3][]", "[]"
"inputs:normalh3_arr_1", "``normalh[3][]``", "Input of type normalh[3][]", "[]"
"inputs:pointd3_0", "``pointd[3]``", "Input of type pointd[3]", "[0.0, 0.0, 0.0]"
"inputs:pointd3_1", "``pointd[3]``", "Input of type pointd[3]", "[0.0, 0.0, 0.0]"
"inputs:pointd3_arr_0", "``pointd[3][]``", "Input of type pointd[3][]", "[]"
"inputs:pointd3_arr_1", "``pointd[3][]``", "Input of type pointd[3][]", "[]"
"inputs:pointf3_0", "``pointf[3]``", "Input of type pointf[3]", "[0.0, 0.0, 0.0]"
"inputs:pointf3_1", "``pointf[3]``", "Input of type pointf[3]", "[0.0, 0.0, 0.0]"
"inputs:pointf3_arr_0", "``pointf[3][]``", "Input of type pointf[3][]", "[]"
"inputs:pointf3_arr_1", "``pointf[3][]``", "Input of type pointf[3][]", "[]"
"inputs:pointh3_0", "``pointh[3]``", "Input of type pointh[3]", "[0.0, 0.0, 0.0]"
"inputs:pointh3_1", "``pointh[3]``", "Input of type pointh[3]", "[0.0, 0.0, 0.0]"
"inputs:pointh3_arr_0", "``pointh[3][]``", "Input of type pointh[3][]", "[]"
"inputs:pointh3_arr_1", "``pointh[3][]``", "Input of type pointh[3][]", "[]"
"inputs:quatd4_0", "``quatd[4]``", "Input of type quatd[4]", "[0.0, 0.0, 0.0, 0.0]"
"inputs:quatd4_1", "``quatd[4]``", "Input of type quatd[4]", "[0.0, 0.0, 0.0, 0.0]"
"inputs:quatd4_arr_0", "``quatd[4][]``", "Input of type quatd[4][]", "[]"
"inputs:quatd4_arr_1", "``quatd[4][]``", "Input of type quatd[4][]", "[]"
"inputs:quatf4_0", "``quatf[4]``", "Input of type quatf[4]", "[0.0, 0.0, 0.0, 0.0]"
"inputs:quatf4_1", "``quatf[4]``", "Input of type quatf[4]", "[0.0, 0.0, 0.0, 0.0]"
"inputs:quatf4_arr_0", "``quatf[4][]``", "Input of type quatf[4][]", "[]"
"inputs:quatf4_arr_1", "``quatf[4][]``", "Input of type quatf[4][]", "[]"
"inputs:quath4_0", "``quath[4]``", "Input of type quath[4]", "[0.0, 0.0, 0.0, 0.0]"
"inputs:quath4_1", "``quath[4]``", "Input of type quath[4]", "[0.0, 0.0, 0.0, 0.0]"
"inputs:quath4_arr_0", "``quath[4][]``", "Input of type quath[4][]", "[]"
"inputs:quath4_arr_1", "``quath[4][]``", "Input of type quath[4][]", "[]"
"inputs:texcoordd2_0", "``texcoordd[2]``", "Input of type texcoordd[2]", "[0.0, 0.0]"
"inputs:texcoordd2_1", "``texcoordd[2]``", "Input of type texcoordd[2]", "[0.0, 0.0]"
"inputs:texcoordd2_arr_0", "``texcoordd[2][]``", "Input of type texcoordd[2][]", "[]"
"inputs:texcoordd2_arr_1", "``texcoordd[2][]``", "Input of type texcoordd[2][]", "[]"
"inputs:texcoordd3_0", "``texcoordd[3]``", "Input of type texcoordd[3]", "[0.0, 0.0, 0.0]"
"inputs:texcoordd3_1", "``texcoordd[3]``", "Input of type texcoordd[3]", "[0.0, 0.0, 0.0]"
"inputs:texcoordd3_arr_0", "``texcoordd[3][]``", "Input of type texcoordd[3][]", "[]"
"inputs:texcoordd3_arr_1", "``texcoordd[3][]``", "Input of type texcoordd[3][]", "[]"
"inputs:texcoordf2_0", "``texcoordf[2]``", "Input of type texcoordf[2]", "[0.0, 0.0]"
"inputs:texcoordf2_1", "``texcoordf[2]``", "Input of type texcoordf[2]", "[0.0, 0.0]"
"inputs:texcoordf2_arr_0", "``texcoordf[2][]``", "Input of type texcoordf[2][]", "[]"
"inputs:texcoordf2_arr_1", "``texcoordf[2][]``", "Input of type texcoordf[2][]", "[]"
"inputs:texcoordf3_0", "``texcoordf[3]``", "Input of type texcoordf[3]", "[0.0, 0.0, 0.0]"
"inputs:texcoordf3_1", "``texcoordf[3]``", "Input of type texcoordf[3]", "[0.0, 0.0, 0.0]"
"inputs:texcoordf3_arr_0", "``texcoordf[3][]``", "Input of type texcoordf[3][]", "[]"
"inputs:texcoordf3_arr_1", "``texcoordf[3][]``", "Input of type texcoordf[3][]", "[]"
"inputs:texcoordh2_0", "``texcoordh[2]``", "Input of type texcoordh[2]", "[0.0, 0.0]"
"inputs:texcoordh2_1", "``texcoordh[2]``", "Input of type texcoordh[2]", "[0.0, 0.0]"
"inputs:texcoordh2_arr_0", "``texcoordh[2][]``", "Input of type texcoordh[2][]", "[]"
"inputs:texcoordh2_arr_1", "``texcoordh[2][]``", "Input of type texcoordh[2][]", "[]"
"inputs:texcoordh3_0", "``texcoordh[3]``", "Input of type texcoordh[3]", "[0.0, 0.0, 0.0]"
"inputs:texcoordh3_1", "``texcoordh[3]``", "Input of type texcoordh[3]", "[0.0, 0.0, 0.0]"
"inputs:texcoordh3_arr_0", "``texcoordh[3][]``", "Input of type texcoordh[3][]", "[]"
"inputs:texcoordh3_arr_1", "``texcoordh[3][]``", "Input of type texcoordh[3][]", "[]"
"inputs:timecode_0", "``timecode``", "Input of type timecode", "0.0"
"inputs:timecode_1", "``timecode``", "Input of type timecode", "0.0"
"inputs:timecode_arr_0", "``timecode[]``", "Input of type timecode[]", "[]"
"inputs:timecode_arr_1", "``timecode[]``", "Input of type timecode[]", "[]"
"inputs:token_0", "``token``", "Input of type token", "default_token"
"inputs:token_1", "``token``", "Input of type token", "default_token"
"inputs:token_arr_0", "``token[]``", "Input of type token[]", "[]"
"inputs:token_arr_1", "``token[]``", "Input of type token[]", "[]"
"inputs:transform4_0", "``transform[4]``", "Input of type transform[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]]"
"inputs:transform4_1", "``transform[4]``", "Input of type transform[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]]"
"inputs:transform4_arr_0", "``transform[4][]``", "Input of type transform[4][]", "[]"
"inputs:transform4_arr_1", "``transform[4][]``", "Input of type transform[4][]", "[]"
"inputs:uchar_0", "``uchar``", "Input of type uchar", "0"
"inputs:uchar_1", "``uchar``", "Input of type uchar", "0"
"inputs:uchar_arr_0", "``uchar[]``", "Input of type uchar[]", "[]"
"inputs:uchar_arr_1", "``uchar[]``", "Input of type uchar[]", "[]"
"inputs:uint64_0", "``uint64``", "Input of type uint64", "0"
"inputs:uint64_1", "``uint64``", "Input of type uint64", "0"
"inputs:uint64_arr_0", "``uint64[]``", "Input of type uint64[]", "[]"
"inputs:uint64_arr_1", "``uint64[]``", "Input of type uint64[]", "[]"
"inputs:uint_0", "``uint``", "Input of type uint", "0"
"inputs:uint_1", "``uint``", "Input of type uint", "0"
"inputs:uint_arr_0", "``uint[]``", "Input of type uint[]", "[]"
"inputs:uint_arr_1", "``uint[]``", "Input of type uint[]", "[]"
"inputs:vectord3_0", "``vectord[3]``", "Input of type vectord[3]", "[0.0, 0.0, 0.0]"
"inputs:vectord3_1", "``vectord[3]``", "Input of type vectord[3]", "[0.0, 0.0, 0.0]"
"inputs:vectord3_arr_0", "``vectord[3][]``", "Input of type vectord[3][]", "[]"
"inputs:vectord3_arr_1", "``vectord[3][]``", "Input of type vectord[3][]", "[]"
"inputs:vectorf3_0", "``vectorf[3]``", "Input of type vectorf[3]", "[0.0, 0.0, 0.0]"
"inputs:vectorf3_1", "``vectorf[3]``", "Input of type vectorf[3]", "[0.0, 0.0, 0.0]"
"inputs:vectorf3_arr_0", "``vectorf[3][]``", "Input of type vectorf[3][]", "[]"
"inputs:vectorf3_arr_1", "``vectorf[3][]``", "Input of type vectorf[3][]", "[]"
"inputs:vectorh3_0", "``vectorh[3]``", "Input of type vectorh[3]", "[0.0, 0.0, 0.0]"
"inputs:vectorh3_1", "``vectorh[3]``", "Input of type vectorh[3]", "[0.0, 0.0, 0.0]"
"inputs:vectorh3_arr_0", "``vectorh[3][]``", "Input of type vectorh[3][]", "[]"
"inputs:vectorh3_arr_1", "``vectorh[3][]``", "Input of type vectorh[3][]", "[]"
Outputs
-------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"outputs:bool_0", "``bool``", "Output of type bool", "False"
"outputs:bool_arr_0", "``bool[]``", "Output of type bool[]", "[]"
"outputs:colord3_0", "``colord[3]``", "Output of type colord[3]", "[0.0, 0.0, 0.0]"
"outputs:colord3_arr_0", "``colord[3][]``", "Output of type colord[3][]", "[]"
"outputs:colord4_0", "``colord[4]``", "Output of type colord[4]", "[0.0, 0.0, 0.0, 0.0]"
"outputs:colord4_arr_0", "``colord[4][]``", "Output of type colord[4][]", "[]"
"outputs:colorf3_0", "``colorf[3]``", "Output of type colorf[3]", "[0.0, 0.0, 0.0]"
"outputs:colorf3_arr_0", "``colorf[3][]``", "Output of type colorf[3][]", "[]"
"outputs:colorf4_0", "``colorf[4]``", "Output of type colorf[4]", "[0.0, 0.0, 0.0, 0.0]"
"outputs:colorf4_arr_0", "``colorf[4][]``", "Output of type colorf[4][]", "[]"
"outputs:colorh3_0", "``colorh[3]``", "Output of type colorh[3]", "[0.0, 0.0, 0.0]"
"outputs:colorh3_arr_0", "``colorh[3][]``", "Output of type colorh[3][]", "[]"
"outputs:colorh4_0", "``colorh[4]``", "Output of type colorh[4]", "[0.0, 0.0, 0.0, 0.0]"
"outputs:colorh4_arr_0", "``colorh[4][]``", "Output of type colorh[4][]", "[]"
"outputs:double2_0", "``double[2]``", "Output of type double[2]", "[0.0, 0.0]"
"outputs:double2_arr_0", "``double[2][]``", "Output of type double[2][]", "[]"
"outputs:double3_0", "``double[3]``", "Output of type double[3]", "[0.0, 0.0, 0.0]"
"outputs:double3_arr_0", "``double[3][]``", "Output of type double[3][]", "[]"
"outputs:double4_0", "``double[4]``", "Output of type double[4]", "[0.0, 0.0, 0.0, 0.0]"
"outputs:double4_arr_0", "``double[4][]``", "Output of type double[4][]", "[]"
"outputs:double_0", "``double``", "Output of type double", "0.0"
"outputs:double_arr_0", "``double[]``", "Output of type double[]", "[]"
"outputs:float2_0", "``float[2]``", "Output of type float[2]", "[0.0, 0.0]"
"outputs:float2_arr_0", "``float[2][]``", "Output of type float[2][]", "[]"
"outputs:float3_0", "``float[3]``", "Output of type float[3]", "[0.0, 0.0, 0.0]"
"outputs:float3_arr_0", "``float[3][]``", "Output of type float[3][]", "[]"
"outputs:float4_0", "``float[4]``", "Output of type float[4]", "[0.0, 0.0, 0.0, 0.0]"
"outputs:float4_arr_0", "``float[4][]``", "Output of type float[4][]", "[]"
"outputs:float_0", "``float``", "Output of type float", "0.0"
"outputs:float_arr_0", "``float[]``", "Output of type float[]", "[]"
"outputs:frame4_0", "``frame[4]``", "Output of type 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]]"
"outputs:frame4_arr_0", "``frame[4][]``", "Output of type frame[4][]", "[]"
"outputs:half2_0", "``half[2]``", "Output of type half[2]", "[0.0, 0.0]"
"outputs:half2_arr_0", "``half[2][]``", "Output of type half[2][]", "[]"
"outputs:half3_0", "``half[3]``", "Output of type half[3]", "[0.0, 0.0, 0.0]"
"outputs:half3_arr_0", "``half[3][]``", "Output of type half[3][]", "[]"
"outputs:half4_0", "``half[4]``", "Output of type half[4]", "[0.0, 0.0, 0.0, 0.0]"
"outputs:half4_arr_0", "``half[4][]``", "Output of type half[4][]", "[]"
"outputs:half_0", "``half``", "Output of type half", "0.0"
"outputs:half_arr_0", "``half[]``", "Output of type half[]", "[]"
"outputs:int2_0", "``int[2]``", "Output of type int[2]", "[0, 0]"
"outputs:int2_arr_0", "``int[2][]``", "Output of type int[2][]", "[]"
"outputs:int3_0", "``int[3]``", "Output of type int[3]", "[0, 0, 0]"
"outputs:int3_arr_0", "``int[3][]``", "Output of type int[3][]", "[]"
"outputs:int4_0", "``int[4]``", "Output of type int[4]", "[0, 0, 0, 0]"
"outputs:int4_arr_0", "``int[4][]``", "Output of type int[4][]", "[]"
"outputs:int64_0", "``int64``", "Output of type int64", "0"
"outputs:int64_arr_0", "``int64[]``", "Output of type int64[]", "[]"
"outputs:int_0", "``int``", "Output of type int", "0"
"outputs:int_arr_0", "``int[]``", "Output of type int[]", "[]"
"outputs:matrixd2_0", "``matrixd[2]``", "Output of type matrixd[2]", "[[0.0, 0.0], [0.0, 0.0]]"
"outputs:matrixd2_arr_0", "``matrixd[2][]``", "Output of type matrixd[2][]", "[]"
"outputs:matrixd3_0", "``matrixd[3]``", "Output of type matrixd[3]", "[[0.0, 0.0, 0.0], [0.0, 0.0, 0.0], [0.0, 0.0, 0.0]]"
"outputs:matrixd3_arr_0", "``matrixd[3][]``", "Output of type matrixd[3][]", "[]"
"outputs:matrixd4_0", "``matrixd[4]``", "Output of type 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]]"
"outputs:matrixd4_arr_0", "``matrixd[4][]``", "Output of type matrixd[4][]", "[]"
"outputs:normald3_0", "``normald[3]``", "Output of type normald[3]", "[0.0, 0.0, 0.0]"
"outputs:normald3_arr_0", "``normald[3][]``", "Output of type normald[3][]", "[]"
"outputs:normalf3_0", "``normalf[3]``", "Output of type normalf[3]", "[0.0, 0.0, 0.0]"
"outputs:normalf3_arr_0", "``normalf[3][]``", "Output of type normalf[3][]", "[]"
"outputs:normalh3_0", "``normalh[3]``", "Output of type normalh[3]", "[0.0, 0.0, 0.0]"
"outputs:normalh3_arr_0", "``normalh[3][]``", "Output of type normalh[3][]", "[]"
"outputs:pointd3_0", "``pointd[3]``", "Output of type pointd[3]", "[0.0, 0.0, 0.0]"
"outputs:pointd3_arr_0", "``pointd[3][]``", "Output of type pointd[3][]", "[]"
"outputs:pointf3_0", "``pointf[3]``", "Output of type pointf[3]", "[0.0, 0.0, 0.0]"
"outputs:pointf3_arr_0", "``pointf[3][]``", "Output of type pointf[3][]", "[]"
"outputs:pointh3_0", "``pointh[3]``", "Output of type pointh[3]", "[0.0, 0.0, 0.0]"
"outputs:pointh3_arr_0", "``pointh[3][]``", "Output of type pointh[3][]", "[]"
"outputs:quatd4_0", "``quatd[4]``", "Output of type quatd[4]", "[0.0, 0.0, 0.0, 0.0]"
"outputs:quatd4_arr_0", "``quatd[4][]``", "Output of type quatd[4][]", "[]"
"outputs:quatf4_0", "``quatf[4]``", "Output of type quatf[4]", "[0.0, 0.0, 0.0, 0.0]"
"outputs:quatf4_arr_0", "``quatf[4][]``", "Output of type quatf[4][]", "[]"
"outputs:quath4_0", "``quath[4]``", "Output of type quath[4]", "[0.0, 0.0, 0.0, 0.0]"
"outputs:quath4_arr_0", "``quath[4][]``", "Output of type quath[4][]", "[]"
"outputs:texcoordd2_0", "``texcoordd[2]``", "Output of type texcoordd[2]", "[0.0, 0.0]"
"outputs:texcoordd2_arr_0", "``texcoordd[2][]``", "Output of type texcoordd[2][]", "[]"
"outputs:texcoordd3_0", "``texcoordd[3]``", "Output of type texcoordd[3]", "[0.0, 0.0, 0.0]"
"outputs:texcoordd3_arr_0", "``texcoordd[3][]``", "Output of type texcoordd[3][]", "[]"
"outputs:texcoordf2_0", "``texcoordf[2]``", "Output of type texcoordf[2]", "[0.0, 0.0]"
"outputs:texcoordf2_arr_0", "``texcoordf[2][]``", "Output of type texcoordf[2][]", "[]"
"outputs:texcoordf3_0", "``texcoordf[3]``", "Output of type texcoordf[3]", "[0.0, 0.0, 0.0]"
"outputs:texcoordf3_arr_0", "``texcoordf[3][]``", "Output of type texcoordf[3][]", "[]"
"outputs:texcoordh2_0", "``texcoordh[2]``", "Output of type texcoordh[2]", "[0.0, 0.0]"
"outputs:texcoordh2_arr_0", "``texcoordh[2][]``", "Output of type texcoordh[2][]", "[]"
"outputs:texcoordh3_0", "``texcoordh[3]``", "Output of type texcoordh[3]", "[0.0, 0.0, 0.0]"
"outputs:texcoordh3_arr_0", "``texcoordh[3][]``", "Output of type texcoordh[3][]", "[]"
"outputs:timecode_0", "``timecode``", "Output of type timecode", "0.0"
"outputs:timecode_arr_0", "``timecode[]``", "Output of type timecode[]", "[]"
"outputs:token_0", "``token``", "Output of type token", "default_token"
"outputs:token_arr_0", "``token[]``", "Output of type token[]", "[]"
"outputs:transform4_0", "``transform[4]``", "Output of type transform[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]]"
"outputs:transform4_arr_0", "``transform[4][]``", "Output of type transform[4][]", "[]"
"outputs:uchar_0", "``uchar``", "Output of type uchar", "0"
"outputs:uchar_arr_0", "``uchar[]``", "Output of type uchar[]", "[]"
"outputs:uint64_0", "``uint64``", "Output of type uint64", "0"
"outputs:uint64_arr_0", "``uint64[]``", "Output of type uint64[]", "[]"
"outputs:uint_0", "``uint``", "Output of type uint", "0"
"outputs:uint_arr_0", "``uint[]``", "Output of type uint[]", "[]"
"outputs:vectord3_0", "``vectord[3]``", "Output of type vectord[3]", "[0.0, 0.0, 0.0]"
"outputs:vectord3_arr_0", "``vectord[3][]``", "Output of type vectord[3][]", "[]"
"outputs:vectorf3_0", "``vectorf[3]``", "Output of type vectorf[3]", "[0.0, 0.0, 0.0]"
"outputs:vectorf3_arr_0", "``vectorf[3][]``", "Output of type vectorf[3][]", "[]"
"outputs:vectorh3_0", "``vectorh[3]``", "Output of type vectorh[3]", "[0.0, 0.0, 0.0]"
"outputs:vectorh3_arr_0", "``vectorh[3][]``", "Output of type vectorh[3][]", "[]"
Metadata
--------
.. csv-table::
:header: "Name", "Value"
:widths: 30,70
"Unique ID", "omni.graph.examples.python.UniversalAdd"
"Version", "1"
"Extension", "omni.graph.examples.python"
"Has State?", "False"
"Implementation Language", "Python"
"Default Memory Type", "cpu"
"Generated Code Exclusions", "usd"
"uiName", "Universal Add For All Types (Python)"
"Categories", "examples"
"Generated Class Name", "OgnPyUniversalAddDatabase"
"Python Module", "omni.graph.examples.python"
|
omniverse-code/kit/exts/omni.graph.examples.python/ogn/docs/OgnBouncingCubesGpu.rst | .. _omni_graph_examples_python_BouncingCubesGpu_1:
.. _omni_graph_examples_python_BouncingCubesGpu:
.. ================================================================================
.. THIS PAGE IS AUTO-GENERATED. DO NOT MANUALLY EDIT.
.. ================================================================================
:orphan:
.. meta::
:title: Deprecated Node - Bouncing Cubes (GPU)
:keywords: lang-en omnigraph node examples python bouncing-cubes-gpu
Deprecated Node - Bouncing Cubes (GPU)
======================================
.. <description>
Deprecated node - no longer supported
.. </description>
Installation
------------
To use this node enable :ref:`omni.graph.examples.python<ext_omni_graph_examples_python>` in the Extension Manager.
Metadata
--------
.. csv-table::
:header: "Name", "Value"
:widths: 30,70
"Unique ID", "omni.graph.examples.python.BouncingCubesGpu"
"Version", "1"
"Extension", "omni.graph.examples.python"
"Has State?", "True"
"Implementation Language", "Python"
"Default Memory Type", "cuda"
"Generated Code Exclusions", "usd, test"
"uiName", "Deprecated Node - Bouncing Cubes (GPU)"
"__memoryType", "cuda"
"Categories", "examples"
"Generated Class Name", "OgnBouncingCubesGpuDatabase"
"Python Module", "omni.graph.examples.python"
|
omniverse-code/kit/exts/omni.graph.examples.python/ogn/docs/OgnCountTo.rst | .. _omni_graph_examples_python_CountTo_1:
.. _omni_graph_examples_python_CountTo:
.. ================================================================================
.. THIS PAGE IS AUTO-GENERATED. DO NOT MANUALLY EDIT.
.. ================================================================================
:orphan:
.. meta::
:title: Count To
:keywords: lang-en omnigraph node examples python count-to
Count To
========
.. <description>
Example stateful node that counts to countTo by a certain increment
.. </description>
Installation
------------
To use this node enable :ref:`omni.graph.examples.python<ext_omni_graph_examples_python>` in the Extension Manager.
Inputs
------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"inputs:countTo", "``double``", "The ceiling to count to", "3"
"inputs:increment", "``double``", "Increment to count by", "0.1"
"inputs:reset", "``bool``", "Whether to reset the count", "False"
"inputs:trigger", "``double[3]``", "Position to be used as a trigger for the counting", "[0.0, 0.0, 0.0]"
Outputs
-------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"outputs:count", "``double``", "The current count", "0.0"
Metadata
--------
.. csv-table::
:header: "Name", "Value"
:widths: 30,70
"Unique ID", "omni.graph.examples.python.CountTo"
"Version", "1"
"Extension", "omni.graph.examples.python"
"Has State?", "False"
"Implementation Language", "Python"
"Default Memory Type", "cpu"
"Generated Code Exclusions", "None"
"uiName", "Count To"
"Categories", "examples"
"Generated Class Name", "OgnCountToDatabase"
"Python Module", "omni.graph.examples.python"
|
omniverse-code/kit/exts/omni.graph.examples.python/ogn/docs/OgnPositionToColor.rst | .. _omni_graph_examples_python_PositionToColor_1:
.. _omni_graph_examples_python_PositionToColor:
.. ================================================================================
.. THIS PAGE IS AUTO-GENERATED. DO NOT MANUALLY EDIT.
.. ================================================================================
:orphan:
.. meta::
:title: PositionToColor
:keywords: lang-en omnigraph node examples python position-to-color
PositionToColor
===============
.. <description>
This node takes positional data (double3) and converts to a color, and outputs as color3f[] (which seems to be the default color connection in USD)
.. </description>
Installation
------------
To use this node enable :ref:`omni.graph.examples.python<ext_omni_graph_examples_python>` in the Extension Manager.
Inputs
------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"inputs:color_offset", "``colorf[3]``", "Offset added to the scaled color to get the final result", "[0.0, 0.0, 0.0]"
"inputs:position", "``double[3]``", "Position to be converted to a color", "[0.0, 0.0, 0.0]"
"inputs:scale", "``float``", "Constant by which to multiply the position to get the color", "1.0"
Outputs
-------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"outputs:color", "``colorf[3][]``", "Color value extracted from the position", "None"
Metadata
--------
.. csv-table::
:header: "Name", "Value"
:widths: 30,70
"Unique ID", "omni.graph.examples.python.PositionToColor"
"Version", "1"
"Extension", "omni.graph.examples.python"
"Has State?", "False"
"Implementation Language", "Python"
"Default Memory Type", "cpu"
"Generated Code Exclusions", "None"
"uiName", "PositionToColor"
"Categories", "examples"
"Generated Class Name", "OgnPositionToColorDatabase"
"Python Module", "omni.graph.examples.python"
|
omniverse-code/kit/exts/omni.graph.examples.python/ogn/docs/OgnDeformerYAxis.rst | .. _omni_graph_examples_python_DeformerYAxis_1:
.. _omni_graph_examples_python_DeformerYAxis:
.. ================================================================================
.. THIS PAGE IS AUTO-GENERATED. DO NOT MANUALLY EDIT.
.. ================================================================================
:orphan:
.. meta::
:title: Sine Wave Deformer Y-axis (Python)
:keywords: lang-en omnigraph node examples python deformer-y-axis
Sine Wave Deformer Y-axis (Python)
==================================
.. <description>
Example node applying a sine wave deformation to a set of points, written in Python. Deforms along Y-axis instead of Z
.. </description>
Installation
------------
To use this node enable :ref:`omni.graph.examples.python<ext_omni_graph_examples_python>` in the Extension Manager.
Inputs
------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"inputs:multiplier", "``double``", "The multiplier for the amplitude of the sine wave", "1"
"inputs:offset", "``double``", "The offset of the sine wave", "0"
"inputs:points", "``pointf[3][]``", "The input points to be deformed", "[]"
"inputs:wavelength", "``double``", "The wavelength of the sine wave", "1"
Outputs
-------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"outputs:points", "``pointf[3][]``", "The deformed output points", "None"
Metadata
--------
.. csv-table::
:header: "Name", "Value"
:widths: 30,70
"Unique ID", "omni.graph.examples.python.DeformerYAxis"
"Version", "1"
"Extension", "omni.graph.examples.python"
"Has State?", "False"
"Implementation Language", "Python"
"Default Memory Type", "cpu"
"Generated Code Exclusions", "None"
"uiName", "Sine Wave Deformer Y-axis (Python)"
"Categories", "examples"
"Generated Class Name", "OgnDeformerYAxisDatabase"
"Python Module", "omni.graph.examples.python"
|
omniverse-code/kit/exts/omni.graph.examples.python/ogn/docs/OgnComposeDouble3.rst | .. _omni_graph_examples_python_ComposeDouble3_1:
.. _omni_graph_examples_python_ComposeDouble3:
.. ================================================================================
.. THIS PAGE IS AUTO-GENERATED. DO NOT MANUALLY EDIT.
.. ================================================================================
:orphan:
.. meta::
:title: Compose Double3 (Python)
:keywords: lang-en omnigraph node examples python compose-double3
Compose Double3 (Python)
========================
.. <description>
Example node that takes in the components of three doubles and outputs a double3
.. </description>
Installation
------------
To use this node enable :ref:`omni.graph.examples.python<ext_omni_graph_examples_python>` in the Extension Manager.
Inputs
------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"inputs:x", "``double``", "The x component of the input double3", "0"
"inputs:y", "``double``", "The y component of the input double3", "0"
"inputs:z", "``double``", "The z component of the input double3", "0"
Outputs
-------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"outputs:double3", "``double[3]``", "Output double3", "None"
Metadata
--------
.. csv-table::
:header: "Name", "Value"
:widths: 30,70
"Unique ID", "omni.graph.examples.python.ComposeDouble3"
"Version", "1"
"Extension", "omni.graph.examples.python"
"Has State?", "False"
"Implementation Language", "Python"
"Default Memory Type", "cpu"
"Generated Code Exclusions", "None"
"uiName", "Compose Double3 (Python)"
"Categories", "examples"
"Generated Class Name", "OgnComposeDouble3Database"
"Python Module", "omni.graph.examples.python"
|
omniverse-code/kit/exts/omni.graph.examples.python/ogn/docs/OgnMultDouble.rst | .. _omni_graph_examples_python_MultDouble_1:
.. _omni_graph_examples_python_MultDouble:
.. ================================================================================
.. THIS PAGE IS AUTO-GENERATED. DO NOT MANUALLY EDIT.
.. ================================================================================
:orphan:
.. meta::
:title: Multiply Double (Python)
:keywords: lang-en omnigraph node examples python mult-double
Multiply Double (Python)
========================
.. <description>
Example node that multiplies 2 doubles together
.. </description>
Installation
------------
To use this node enable :ref:`omni.graph.examples.python<ext_omni_graph_examples_python>` in the Extension Manager.
Inputs
------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"inputs:a", "``double``", "Input a", "0"
"inputs:b", "``double``", "Input b", "0"
Outputs
-------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"outputs:out", "``double``", "The result of a * b", "None"
Metadata
--------
.. csv-table::
:header: "Name", "Value"
:widths: 30,70
"Unique ID", "omni.graph.examples.python.MultDouble"
"Version", "1"
"Extension", "omni.graph.examples.python"
"Has State?", "False"
"Implementation Language", "Python"
"Default Memory Type", "cpu"
"Generated Code Exclusions", "None"
"uiName", "Multiply Double (Python)"
"Categories", "examples"
"Generated Class Name", "OgnMultDoubleDatabase"
"Python Module", "omni.graph.examples.python"
|
omniverse-code/kit/exts/omni.graph.examples.python/ogn/docs/OgnDecomposeDouble3.rst | .. _omni_graph_examples_python_DecomposeDouble3_1:
.. _omni_graph_examples_python_DecomposeDouble3:
.. ================================================================================
.. THIS PAGE IS AUTO-GENERATED. DO NOT MANUALLY EDIT.
.. ================================================================================
:orphan:
.. meta::
:title: Decompose Double3 (Python)
:keywords: lang-en omnigraph node examples python decompose-double3
Decompose Double3 (Python)
==========================
.. <description>
Example node that takes in a double3 and outputs scalars that are its components
.. </description>
Installation
------------
To use this node enable :ref:`omni.graph.examples.python<ext_omni_graph_examples_python>` in the Extension Manager.
Inputs
------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"inputs:double3", "``double[3]``", "Input double3", "[0, 0, 0]"
Outputs
-------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"outputs:x", "``double``", "The x component of the input double3", "None"
"outputs:y", "``double``", "The y component of the input double3", "None"
"outputs:z", "``double``", "The z component of the input double3", "None"
Metadata
--------
.. csv-table::
:header: "Name", "Value"
:widths: 30,70
"Unique ID", "omni.graph.examples.python.DecomposeDouble3"
"Version", "1"
"Extension", "omni.graph.examples.python"
"Has State?", "False"
"Implementation Language", "Python"
"Default Memory Type", "cpu"
"Generated Code Exclusions", "None"
"uiName", "Decompose Double3 (Python)"
"Categories", "examples"
"Generated Class Name", "OgnDecomposeDouble3Database"
"Python Module", "omni.graph.examples.python"
|
omniverse-code/kit/exts/omni.graph.examples.python/ogn/docs/OgnDynamicSwitch.rst | .. _omni_graph_examples_python_DynamicSwitch_1:
.. _omni_graph_examples_python_DynamicSwitch:
.. ================================================================================
.. THIS PAGE IS AUTO-GENERATED. DO NOT MANUALLY EDIT.
.. ================================================================================
:orphan:
.. meta::
:title: Dynamic Switch
:keywords: lang-en omnigraph node examples python dynamic-switch
Dynamic Switch
==============
.. <description>
A switch node that will enable the left side or right side depending on the input. Requires dynamic scheduling to work
.. </description>
Installation
------------
To use this node enable :ref:`omni.graph.examples.python<ext_omni_graph_examples_python>` in the Extension Manager.
Inputs
------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"inputs:left_value", "``int``", "Left value to output", "-1"
"inputs:right_value", "``int``", "Right value to output", "1"
"inputs:switch", "``int``", "Enables right value if greater than 0, else left value", "0"
Outputs
-------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"outputs:left_out", "``int``", "Left side output", "0"
"outputs:right_out", "``int``", "Right side output", "0"
Metadata
--------
.. csv-table::
:header: "Name", "Value"
:widths: 30,70
"Unique ID", "omni.graph.examples.python.DynamicSwitch"
"Version", "1"
"Extension", "omni.graph.examples.python"
"Has State?", "False"
"Implementation Language", "Python"
"Default Memory Type", "cpu"
"Generated Code Exclusions", "usd"
"uiName", "Dynamic Switch"
"Categories", "examples"
"Generated Class Name", "OgnDynamicSwitchDatabase"
"Python Module", "omni.graph.examples.python"
|
omniverse-code/kit/exts/omni.graph.examples.python/ogn/docs/OgnClampDouble.rst | .. _omni_graph_examples_python_ClampDouble_1:
.. _omni_graph_examples_python_ClampDouble:
.. ================================================================================
.. THIS PAGE IS AUTO-GENERATED. DO NOT MANUALLY EDIT.
.. ================================================================================
:orphan:
.. meta::
:title: Clamp Double (Python)
:keywords: lang-en omnigraph node examples python clamp-double
Clamp Double (Python)
=====================
.. <description>
Example node that a number to a range
.. </description>
Installation
------------
To use this node enable :ref:`omni.graph.examples.python<ext_omni_graph_examples_python>` in the Extension Manager.
Inputs
------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"inputs:max", "``double``", "Maximum value", "0"
"inputs:min", "``double``", "Mininum value", "0"
"inputs:num", "``double``", "Input number", "0"
Outputs
-------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"outputs:out", "``double``", "The result of the number, having been clamped to the range min,max", "None"
Metadata
--------
.. csv-table::
:header: "Name", "Value"
:widths: 30,70
"Unique ID", "omni.graph.examples.python.ClampDouble"
"Version", "1"
"Extension", "omni.graph.examples.python"
"Has State?", "False"
"Implementation Language", "Python"
"Default Memory Type", "cpu"
"Generated Code Exclusions", "None"
"uiName", "Clamp Double (Python)"
"Categories", "examples"
"Generated Class Name", "OgnClampDoubleDatabase"
"Python Module", "omni.graph.examples.python"
|
omniverse-code/kit/exts/omni.graph.examples.python/ogn/docs/OgnBouncingCubesCpu.rst | .. _omni_graph_examples_python_BouncingCubes_1:
.. _omni_graph_examples_python_BouncingCubes:
.. ================================================================================
.. THIS PAGE IS AUTO-GENERATED. DO NOT MANUALLY EDIT.
.. ================================================================================
:orphan:
.. meta::
:title: Deprecated Node - Bouncing Cubes (GPU)
:keywords: lang-en omnigraph node examples python bouncing-cubes
Deprecated Node - Bouncing Cubes (GPU)
======================================
.. <description>
Deprecated node - no longer supported
.. </description>
Installation
------------
To use this node enable :ref:`omni.graph.examples.python<ext_omni_graph_examples_python>` in the Extension Manager.
State
-----
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"Translations (*state:translations*)", "``float[3][]``", "Set of translation attributes gathered from the inputs. Translations have velocities applied to them each evaluation.", "None"
"Velocities (*state:velocities*)", "``float[]``", "Set of velocity attributes gathered from the inputs", "None"
Metadata
--------
.. csv-table::
:header: "Name", "Value"
:widths: 30,70
"Unique ID", "omni.graph.examples.python.BouncingCubes"
"Version", "1"
"Extension", "omni.graph.examples.python"
"Has State?", "True"
"Implementation Language", "Python"
"Default Memory Type", "cpu"
"Generated Code Exclusions", "None"
"uiName", "Deprecated Node - Bouncing Cubes (GPU)"
"Categories", "examples"
"Generated Class Name", "OgnBouncingCubesCpuDatabase"
"Python Module", "omni.graph.examples.python"
|
omniverse-code/kit/exts/omni.graph.examples.python/ogn/docs/OgnExecSwitch.rst | .. _omni_graph_examples_python_ExecSwitch_1:
.. _omni_graph_examples_python_ExecSwitch:
.. ================================================================================
.. THIS PAGE IS AUTO-GENERATED. DO NOT MANUALLY EDIT.
.. ================================================================================
:orphan:
.. meta::
:title: Exec Switch
:keywords: lang-en omnigraph node examples python exec-switch
Exec Switch
===========
.. <description>
A switch node that will enable the left side or right side depending on the input
.. </description>
Installation
------------
To use this node enable :ref:`omni.graph.examples.python<ext_omni_graph_examples_python>` in the Extension Manager.
Inputs
------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"Exec In (*inputs:execIn*)", "``execution``", "Trigger the output", "None"
"inputs:switch", "``bool``", "Enables right value if greater than 0, else left value", "False"
Outputs
-------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"outputs:execLeftOut", "``execution``", "Left execution", "None"
"outputs:execRightOut", "``execution``", "Right execution", "None"
Metadata
--------
.. csv-table::
:header: "Name", "Value"
:widths: 30,70
"Unique ID", "omni.graph.examples.python.ExecSwitch"
"Version", "1"
"Extension", "omni.graph.examples.python"
"Has State?", "False"
"Implementation Language", "Python"
"Default Memory Type", "cpu"
"Generated Code Exclusions", "usd"
"uiName", "Exec Switch"
"Categories", "examples"
"Generated Class Name", "OgnExecSwitchDatabase"
"Python Module", "omni.graph.examples.python"
|
omniverse-code/kit/exts/omni.graph.examples.python/ogn/docs/OgnDeformerCpu.rst | .. _omni_graph_examples_python_DeformerPy_1:
.. _omni_graph_examples_python_DeformerPy:
.. ================================================================================
.. THIS PAGE IS AUTO-GENERATED. DO NOT MANUALLY EDIT.
.. ================================================================================
:orphan:
.. meta::
:title: Sine Wave Deformer Z-axis (Python)
:keywords: lang-en omnigraph node examples python deformer-py
Sine Wave Deformer Z-axis (Python)
==================================
.. <description>
Example node applying a sine wave deformation to a set of points, written in Python
.. </description>
Installation
------------
To use this node enable :ref:`omni.graph.examples.python<ext_omni_graph_examples_python>` in the Extension Manager.
Inputs
------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"inputs:multiplier", "``float``", "The multiplier for the amplitude of the sine wave", "1.0"
"inputs:points", "``pointf[3][]``", "The input points to be deformed", "[]"
Outputs
-------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"outputs:points", "``pointf[3][]``", "The deformed output points", "None"
Metadata
--------
.. csv-table::
:header: "Name", "Value"
:widths: 30,70
"Unique ID", "omni.graph.examples.python.DeformerPy"
"Version", "1"
"Extension", "omni.graph.examples.python"
"Has State?", "False"
"Implementation Language", "Python"
"Default Memory Type", "cpu"
"Generated Code Exclusions", "None"
"uiName", "Sine Wave Deformer Z-axis (Python)"
"Categories", "examples"
"Generated Class Name", "OgnDeformerCpuDatabase"
"Python Module", "omni.graph.examples.python"
|
omniverse-code/kit/exts/omni.graph.examples.python/ogn/docs/OgnAbsDouble.rst | .. _omni_graph_examples_python_AbsDouble_1:
.. _omni_graph_examples_python_AbsDouble:
.. ================================================================================
.. THIS PAGE IS AUTO-GENERATED. DO NOT MANUALLY EDIT.
.. ================================================================================
:orphan:
.. meta::
:title: Abs Double (Python)
:keywords: lang-en omnigraph node examples python abs-double
Abs Double (Python)
===================
.. <description>
Example node that takes the absolute value of a number
.. </description>
Installation
------------
To use this node enable :ref:`omni.graph.examples.python<ext_omni_graph_examples_python>` in the Extension Manager.
Inputs
------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"inputs:num", "``double``", "Input number", "0"
Outputs
-------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"outputs:out", "``double``", "The absolute value of input number", "None"
Metadata
--------
.. csv-table::
:header: "Name", "Value"
:widths: 30,70
"Unique ID", "omni.graph.examples.python.AbsDouble"
"Version", "1"
"Extension", "omni.graph.examples.python"
"Has State?", "False"
"Implementation Language", "Python"
"Default Memory Type", "cpu"
"Generated Code Exclusions", "None"
"uiName", "Abs Double (Python)"
"Categories", "examples"
"Generated Class Name", "OgnAbsDoubleDatabase"
"Python Module", "omni.graph.examples.python"
|
omniverse-code/kit/exts/omni.graph.examples.python/ogn/docs/OgnTestInitNode.rst | .. _omni_graph_examples_python_TestInitNode_1:
.. _omni_graph_examples_python_TestInitNode:
.. ================================================================================
.. THIS PAGE IS AUTO-GENERATED. DO NOT MANUALLY EDIT.
.. ================================================================================
:orphan:
.. meta::
:title: TestInitNode
:keywords: lang-en omnigraph node examples python test-init-node
TestInitNode
============
.. <description>
Test Init Node
.. </description>
Installation
------------
To use this node enable :ref:`omni.graph.examples.python<ext_omni_graph_examples_python>` in the Extension Manager.
Outputs
-------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"outputs:value", "``float``", "Value", "None"
Metadata
--------
.. csv-table::
:header: "Name", "Value"
:widths: 30,70
"Unique ID", "omni.graph.examples.python.TestInitNode"
"Version", "1"
"Extension", "omni.graph.examples.python"
"Has State?", "False"
"Implementation Language", "Python"
"Default Memory Type", "cpu"
"Generated Code Exclusions", "None"
"uiName", "TestInitNode"
"Categories", "examples"
"Generated Class Name", "OgnTestInitNodeDatabase"
"Python Module", "omni.graph.examples.python"
|
omniverse-code/kit/exts/omni.graph.examples.python/ogn/docs/OgnSubtractDouble.rst | .. _omni_graph_examples_python_SubtractDouble_1:
.. _omni_graph_examples_python_SubtractDouble:
.. ================================================================================
.. THIS PAGE IS AUTO-GENERATED. DO NOT MANUALLY EDIT.
.. ================================================================================
:orphan:
.. meta::
:title: Subtract Double (Python)
:keywords: lang-en omnigraph node examples python subtract-double
Subtract Double (Python)
========================
.. <description>
Example node that subtracts 2 doubles from each other
.. </description>
Installation
------------
To use this node enable :ref:`omni.graph.examples.python<ext_omni_graph_examples_python>` in the Extension Manager.
Inputs
------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"inputs:a", "``double``", "Input a", "0"
"inputs:b", "``double``", "Input b", "0"
Outputs
-------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"outputs:out", "``double``", "The result of a - b", "None"
Metadata
--------
.. csv-table::
:header: "Name", "Value"
:widths: 30,70
"Unique ID", "omni.graph.examples.python.SubtractDouble"
"Version", "1"
"Extension", "omni.graph.examples.python"
"Has State?", "False"
"Implementation Language", "Python"
"Default Memory Type", "cpu"
"Generated Code Exclusions", "None"
"uiName", "Subtract Double (Python)"
"Categories", "examples"
"Generated Class Name", "OgnSubtractDoubleDatabase"
"Python Module", "omni.graph.examples.python"
|
omniverse-code/kit/exts/omni.graph.examples.python/ogn/docs/OgnIntCounter.rst | .. _omni_graph_examples_python_IntCounter_1:
.. _omni_graph_examples_python_IntCounter:
.. ================================================================================
.. THIS PAGE IS AUTO-GENERATED. DO NOT MANUALLY EDIT.
.. ================================================================================
:orphan:
.. meta::
:title: Int Counter
:keywords: lang-en omnigraph node examples python int-counter
Int Counter
===========
.. <description>
Example stateful node that increments every time it's evaluated
.. </description>
Installation
------------
To use this node enable :ref:`omni.graph.examples.python<ext_omni_graph_examples_python>` in the Extension Manager.
Inputs
------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"inputs:increment", "``int``", "Increment to count by", "1"
"inputs:reset", "``bool``", "Whether to reset the count", "False"
Outputs
-------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"outputs:count", "``int``", "The current count", "0"
Metadata
--------
.. csv-table::
:header: "Name", "Value"
:widths: 30,70
"Unique ID", "omni.graph.examples.python.IntCounter"
"Version", "1"
"Extension", "omni.graph.examples.python"
"Has State?", "False"
"Implementation Language", "Python"
"Default Memory Type", "cpu"
"Generated Code Exclusions", "None"
"uiName", "Int Counter"
"Categories", "examples"
"Generated Class Name", "OgnIntCounterDatabase"
"Python Module", "omni.graph.examples.python"
|
omniverse-code/kit/exts/omni.graph.examples.python/ogn/docs/OgnDeformerGpu.rst | .. _omni_graph_examples_python_DeformerPyGpu_1:
.. _omni_graph_examples_python_DeformerPyGpu:
.. ================================================================================
.. THIS PAGE IS AUTO-GENERATED. DO NOT MANUALLY EDIT.
.. ================================================================================
:orphan:
.. meta::
:title: Sine Wave Deformer Z-axis (Python GPU)
:keywords: lang-en omnigraph node examples python deformer-py-gpu
Sine Wave Deformer Z-axis (Python GPU)
======================================
.. <description>
Example node applying a sine wave deformation to a set of points, written in Python for the GPU
.. </description>
Installation
------------
To use this node enable :ref:`omni.graph.examples.python<ext_omni_graph_examples_python>` in the Extension Manager.
Inputs
------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"inputs:multiplier", "``float``", "The multiplier for the amplitude of the sine wave", "1"
"inputs:points", "``pointf[3][]``", "The input points to be deformed", "[]"
Outputs
-------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"outputs:points", "``pointf[3][]``", "The deformed output points", "None"
Metadata
--------
.. csv-table::
:header: "Name", "Value"
:widths: 30,70
"Unique ID", "omni.graph.examples.python.DeformerPyGpu"
"Version", "1"
"Extension", "omni.graph.examples.python"
"Has State?", "False"
"Implementation Language", "Python"
"Default Memory Type", "cuda"
"Generated Code Exclusions", "None"
"uiName", "Sine Wave Deformer Z-axis (Python GPU)"
"__memoryType", "cuda"
"Categories", "examples"
"Generated Class Name", "OgnDeformerGpuDatabase"
"Python Module", "omni.graph.examples.python"
|
omniverse-code/kit/exts/omni.graph.examples.python/ogn/docs/OgnTestSingleton.rst | .. _omni_graph_examples_python_TestSingleton_1:
.. _omni_graph_examples_python_TestSingleton:
.. ================================================================================
.. THIS PAGE IS AUTO-GENERATED. DO NOT MANUALLY EDIT.
.. ================================================================================
:orphan:
.. meta::
:title: Test Singleton
:keywords: lang-en omnigraph node examples python test-singleton
Test Singleton
==============
.. <description>
Example node that showcases the use of singleton nodes (nodes that can have only 1 instance)
.. </description>
Installation
------------
To use this node enable :ref:`omni.graph.examples.python<ext_omni_graph_examples_python>` in the Extension Manager.
Outputs
-------
.. csv-table::
:header: "Name", "Type", "Descripton", "Default"
:widths: 20, 20, 50, 10
"outputs:out", "``double``", "The unique output of the only instance of this node", "None"
Metadata
--------
.. csv-table::
:header: "Name", "Value"
:widths: 30,70
"Unique ID", "omni.graph.examples.python.TestSingleton"
"Version", "1"
"Extension", "omni.graph.examples.python"
"Has State?", "False"
"Implementation Language", "Python"
"Default Memory Type", "cpu"
"Generated Code Exclusions", "None"
"singleton", "1"
"uiName", "Test Singleton"
"Categories", "examples"
"Generated Class Name", "OgnTestSingletonDatabase"
"Python Module", "omni.graph.examples.python"
|
omniverse-code/kit/exts/omni.graph.examples.python/PACKAGE-LICENSES/omni.graph.examples.python-LICENSE.md | 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. |
omniverse-code/kit/exts/omni.graph.examples.python/config/extension.toml | [package]
title = "OmniGraph Python Examples"
version = "1.3.2"
category = "Graph"
readme = "docs/README.md"
changelog = "docs/CHANGELOG.md"
description = "Contains a set of sample OmniGraph nodes implemented in Python."
repository = ""
keywords = ["kit", "omnigraph", "nodes", "python"]
# Main module for the Python interface
[[python.module]]
name = "omni.graph.examples.python"
# Watch the .ogn files for hot reloading (only works for Python files)
[fswatcher.patterns]
include = ["*.ogn", "*.py"]
exclude = ["Ogn*Database.py"]
# Python array data uses numpy as its format
[python.pipapi]
requirements = ["numpy"] # SWIPAT filed under: http://nvbugs/3193231
# Other extensions that need to load in order for this one to work
[dependencies]
"omni.graph" = {}
"omni.graph.tools" = {}
"omni.kit.test" = {}
"omni.kit.pipapi" = {}
[[test]]
stdoutFailPatterns.exclude = [
"*[omni.graph.core.plugin] getTypes called on non-existent path*",
"*Trying to create multiple instances of singleton*"
]
[documentation]
deps = [
["kit-sdk", "_build/docs/kit-sdk/latest"], # WAR to include omni.graph refs until that workflow is moved
]
pages = [
"docs/Overview.md",
"docs/CHANGELOG.md",
]
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/__init__.py | """Module containing example nodes written in pure Python.
There is no public API to this module.
"""
__all__ = []
from ._impl.extension import _PublicExtension # noqa: F401
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/OgnSubtractDoubleDatabase.py | """Support for simplified access to data on nodes of type omni.graph.examples.python.SubtractDouble
Example node that subtracts 2 doubles from each other
"""
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 OgnSubtractDoubleDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.examples.python.SubtractDouble
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 = {"a", "b", "_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.a, self._attributes.b]
self._batchedReadValues = [0, 0]
@property
def a(self):
return self._batchedReadValues[0]
@a.setter
def a(self, value):
self._batchedReadValues[0] = value
@property
def b(self):
return self._batchedReadValues[1]
@b.setter
def b(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 = {"out", "_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 out(self):
value = self._batchedWriteValues.get(self._attributes.out)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.out)
return data_view.get()
@out.setter
def out(self, value):
self._batchedWriteValues[self._attributes.out] = 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 = OgnSubtractDoubleDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnSubtractDoubleDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnSubtractDoubleDatabase.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(OgnSubtractDoubleDatabase.NODE_TYPE_CLASS, 'get_node_type', None)
if callable(get_node_type_function):
return get_node_type_function()
return 'omni.graph.examples.python.SubtractDouble'
@staticmethod
def compute(context, node):
def database_valid():
return True
try:
per_node_data = OgnSubtractDoubleDatabase.PER_NODE_DATA[node.node_id()]
db = per_node_data.get('_db')
if db is None:
db = OgnSubtractDoubleDatabase(node)
per_node_data['_db'] = db
if not database_valid():
per_node_data['_db'] = None
return False
except:
db = OgnSubtractDoubleDatabase(node)
try:
compute_function = getattr(OgnSubtractDoubleDatabase.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 OgnSubtractDoubleDatabase.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):
OgnSubtractDoubleDatabase._initialize_per_node_data(node)
initialize_function = getattr(OgnSubtractDoubleDatabase.NODE_TYPE_CLASS, 'initialize', None)
if callable(initialize_function):
initialize_function(context, node)
per_node_data = OgnSubtractDoubleDatabase.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(OgnSubtractDoubleDatabase.NODE_TYPE_CLASS, 'release', None)
if callable(release_function):
release_function(node)
OgnSubtractDoubleDatabase._release_per_node_data(node)
@staticmethod
def release_instance(node, target):
OgnSubtractDoubleDatabase._release_per_node_instance_data(node, target)
@staticmethod
def update_node_version(context, node, old_version, new_version):
update_node_version_function = getattr(OgnSubtractDoubleDatabase.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(OgnSubtractDoubleDatabase.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.examples.python")
node_type.set_metadata(ogn.MetadataKeys.UI_NAME, "Subtract Double (Python)")
node_type.set_metadata(ogn.MetadataKeys.CATEGORIES, "examples")
node_type.set_metadata(ogn.MetadataKeys.DESCRIPTION, "Example node that subtracts 2 doubles from each other")
node_type.set_metadata(ogn.MetadataKeys.LANGUAGE, "Python")
OgnSubtractDoubleDatabase.INTERFACE.add_to_node_type(node_type)
@staticmethod
def on_connection_type_resolve(node):
on_connection_type_resolve_function = getattr(OgnSubtractDoubleDatabase.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):
OgnSubtractDoubleDatabase.NODE_TYPE_CLASS = node_type_class
og.register_node_type(OgnSubtractDoubleDatabase.abi, 1)
@staticmethod
def deregister():
og.deregister_node_type("omni.graph.examples.python.SubtractDouble")
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/OgnAbsDoubleDatabase.py | """Support for simplified access to data on nodes of type omni.graph.examples.python.AbsDouble
Example node that takes the absolute value of a number
"""
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 OgnAbsDoubleDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.examples.python.AbsDouble
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.num
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:num', 'double', 0, None, 'Input number', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
('outputs:out', 'double', 0, None, 'The absolute value of input number', {}, True, None, False, ''),
])
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = {"num", "_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.num]
self._batchedReadValues = [0]
@property
def num(self):
return self._batchedReadValues[0]
@num.setter
def num(self, value):
self._batchedReadValues[0] = 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 = {"out", "_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 out(self):
value = self._batchedWriteValues.get(self._attributes.out)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.out)
return data_view.get()
@out.setter
def out(self, value):
self._batchedWriteValues[self._attributes.out] = 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 = OgnAbsDoubleDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnAbsDoubleDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnAbsDoubleDatabase.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(OgnAbsDoubleDatabase.NODE_TYPE_CLASS, 'get_node_type', None)
if callable(get_node_type_function):
return get_node_type_function()
return 'omni.graph.examples.python.AbsDouble'
@staticmethod
def compute(context, node):
def database_valid():
return True
try:
per_node_data = OgnAbsDoubleDatabase.PER_NODE_DATA[node.node_id()]
db = per_node_data.get('_db')
if db is None:
db = OgnAbsDoubleDatabase(node)
per_node_data['_db'] = db
if not database_valid():
per_node_data['_db'] = None
return False
except:
db = OgnAbsDoubleDatabase(node)
try:
compute_function = getattr(OgnAbsDoubleDatabase.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 OgnAbsDoubleDatabase.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):
OgnAbsDoubleDatabase._initialize_per_node_data(node)
initialize_function = getattr(OgnAbsDoubleDatabase.NODE_TYPE_CLASS, 'initialize', None)
if callable(initialize_function):
initialize_function(context, node)
per_node_data = OgnAbsDoubleDatabase.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(OgnAbsDoubleDatabase.NODE_TYPE_CLASS, 'release', None)
if callable(release_function):
release_function(node)
OgnAbsDoubleDatabase._release_per_node_data(node)
@staticmethod
def release_instance(node, target):
OgnAbsDoubleDatabase._release_per_node_instance_data(node, target)
@staticmethod
def update_node_version(context, node, old_version, new_version):
update_node_version_function = getattr(OgnAbsDoubleDatabase.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(OgnAbsDoubleDatabase.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.examples.python")
node_type.set_metadata(ogn.MetadataKeys.UI_NAME, "Abs Double (Python)")
node_type.set_metadata(ogn.MetadataKeys.CATEGORIES, "examples")
node_type.set_metadata(ogn.MetadataKeys.DESCRIPTION, "Example node that takes the absolute value of a number")
node_type.set_metadata(ogn.MetadataKeys.LANGUAGE, "Python")
OgnAbsDoubleDatabase.INTERFACE.add_to_node_type(node_type)
@staticmethod
def on_connection_type_resolve(node):
on_connection_type_resolve_function = getattr(OgnAbsDoubleDatabase.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):
OgnAbsDoubleDatabase.NODE_TYPE_CLASS = node_type_class
og.register_node_type(OgnAbsDoubleDatabase.abi, 1)
@staticmethod
def deregister():
og.deregister_node_type("omni.graph.examples.python.AbsDouble")
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/OgnCountToDatabase.py | """Support for simplified access to data on nodes of type omni.graph.examples.python.CountTo
Example stateful node that counts to countTo by a certain increment
"""
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 OgnCountToDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.examples.python.CountTo
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.countTo
inputs.increment
inputs.reset
inputs.trigger
Outputs:
outputs.count
"""
# 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:countTo', 'double', 0, None, 'The ceiling to count to', {ogn.MetadataKeys.DEFAULT: '3'}, True, 3, False, ''),
('inputs:increment', 'double', 0, None, 'Increment to count by', {ogn.MetadataKeys.DEFAULT: '0.1'}, True, 0.1, False, ''),
('inputs:reset', 'bool', 0, None, 'Whether to reset the count', {ogn.MetadataKeys.DEFAULT: 'false'}, True, False, False, ''),
('inputs:trigger', 'double3', 0, None, 'Position to be used as a trigger for the counting', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('outputs:count', 'double', 0, None, 'The current count', {ogn.MetadataKeys.DEFAULT: '0.0'}, True, 0.0, False, ''),
])
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = {"countTo", "increment", "reset", "trigger", "_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.countTo, self._attributes.increment, self._attributes.reset, self._attributes.trigger]
self._batchedReadValues = [3, 0.1, False, [0.0, 0.0, 0.0]]
@property
def countTo(self):
return self._batchedReadValues[0]
@countTo.setter
def countTo(self, value):
self._batchedReadValues[0] = value
@property
def increment(self):
return self._batchedReadValues[1]
@increment.setter
def increment(self, value):
self._batchedReadValues[1] = value
@property
def reset(self):
return self._batchedReadValues[2]
@reset.setter
def reset(self, value):
self._batchedReadValues[2] = value
@property
def trigger(self):
return self._batchedReadValues[3]
@trigger.setter
def trigger(self, value):
self._batchedReadValues[3] = 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 = {"count", "_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 count(self):
value = self._batchedWriteValues.get(self._attributes.count)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.count)
return data_view.get()
@count.setter
def count(self, value):
self._batchedWriteValues[self._attributes.count] = 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 = OgnCountToDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnCountToDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnCountToDatabase.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(OgnCountToDatabase.NODE_TYPE_CLASS, 'get_node_type', None)
if callable(get_node_type_function):
return get_node_type_function()
return 'omni.graph.examples.python.CountTo'
@staticmethod
def compute(context, node):
def database_valid():
return True
try:
per_node_data = OgnCountToDatabase.PER_NODE_DATA[node.node_id()]
db = per_node_data.get('_db')
if db is None:
db = OgnCountToDatabase(node)
per_node_data['_db'] = db
if not database_valid():
per_node_data['_db'] = None
return False
except:
db = OgnCountToDatabase(node)
try:
compute_function = getattr(OgnCountToDatabase.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 OgnCountToDatabase.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):
OgnCountToDatabase._initialize_per_node_data(node)
initialize_function = getattr(OgnCountToDatabase.NODE_TYPE_CLASS, 'initialize', None)
if callable(initialize_function):
initialize_function(context, node)
per_node_data = OgnCountToDatabase.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(OgnCountToDatabase.NODE_TYPE_CLASS, 'release', None)
if callable(release_function):
release_function(node)
OgnCountToDatabase._release_per_node_data(node)
@staticmethod
def release_instance(node, target):
OgnCountToDatabase._release_per_node_instance_data(node, target)
@staticmethod
def update_node_version(context, node, old_version, new_version):
update_node_version_function = getattr(OgnCountToDatabase.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(OgnCountToDatabase.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.examples.python")
node_type.set_metadata(ogn.MetadataKeys.UI_NAME, "Count To")
node_type.set_metadata(ogn.MetadataKeys.CATEGORIES, "examples")
node_type.set_metadata(ogn.MetadataKeys.DESCRIPTION, "Example stateful node that counts to countTo by a certain increment")
node_type.set_metadata(ogn.MetadataKeys.LANGUAGE, "Python")
OgnCountToDatabase.INTERFACE.add_to_node_type(node_type)
@staticmethod
def on_connection_type_resolve(node):
on_connection_type_resolve_function = getattr(OgnCountToDatabase.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):
OgnCountToDatabase.NODE_TYPE_CLASS = node_type_class
og.register_node_type(OgnCountToDatabase.abi, 1)
@staticmethod
def deregister():
og.deregister_node_type("omni.graph.examples.python.CountTo")
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/OgnVersionedDeformerPyDatabase.py | """Support for simplified access to data on nodes of type omni.graph.examples.python.VersionedDeformerPy
Test node to confirm version upgrading works. Performs a basic deformation on some points.
"""
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 OgnVersionedDeformerPyDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.examples.python.VersionedDeformerPy
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
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:points', 'point3f[]', 0, None, 'Set of points to be deformed', {ogn.MetadataKeys.DEFAULT: '[]'}, 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 = {"wavelength", "_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.wavelength]
self._batchedReadValues = [50.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 wavelength(self):
return self._batchedReadValues[0]
@wavelength.setter
def wavelength(self, value):
self._batchedReadValues[0] = 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 = OgnVersionedDeformerPyDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnVersionedDeformerPyDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnVersionedDeformerPyDatabase.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(OgnVersionedDeformerPyDatabase.NODE_TYPE_CLASS, 'get_node_type', None)
if callable(get_node_type_function):
return get_node_type_function()
return 'omni.graph.examples.python.VersionedDeformerPy'
@staticmethod
def compute(context, node):
def database_valid():
return True
try:
per_node_data = OgnVersionedDeformerPyDatabase.PER_NODE_DATA[node.node_id()]
db = per_node_data.get('_db')
if db is None:
db = OgnVersionedDeformerPyDatabase(node)
per_node_data['_db'] = db
if not database_valid():
per_node_data['_db'] = None
return False
except:
db = OgnVersionedDeformerPyDatabase(node)
try:
compute_function = getattr(OgnVersionedDeformerPyDatabase.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 OgnVersionedDeformerPyDatabase.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):
OgnVersionedDeformerPyDatabase._initialize_per_node_data(node)
initialize_function = getattr(OgnVersionedDeformerPyDatabase.NODE_TYPE_CLASS, 'initialize', None)
if callable(initialize_function):
initialize_function(context, node)
per_node_data = OgnVersionedDeformerPyDatabase.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(OgnVersionedDeformerPyDatabase.NODE_TYPE_CLASS, 'release', None)
if callable(release_function):
release_function(node)
OgnVersionedDeformerPyDatabase._release_per_node_data(node)
@staticmethod
def release_instance(node, target):
OgnVersionedDeformerPyDatabase._release_per_node_instance_data(node, target)
@staticmethod
def update_node_version(context, node, old_version, new_version):
update_node_version_function = getattr(OgnVersionedDeformerPyDatabase.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(OgnVersionedDeformerPyDatabase.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.examples.python")
node_type.set_metadata(ogn.MetadataKeys.UI_NAME, "VersionedDeformerPy")
node_type.set_metadata(ogn.MetadataKeys.CATEGORIES, "examples")
node_type.set_metadata(ogn.MetadataKeys.DESCRIPTION, "Test node to confirm version upgrading works. Performs a basic deformation on some points.")
node_type.set_metadata(ogn.MetadataKeys.LANGUAGE, "Python")
OgnVersionedDeformerPyDatabase.INTERFACE.add_to_node_type(node_type)
@staticmethod
def on_connection_type_resolve(node):
on_connection_type_resolve_function = getattr(OgnVersionedDeformerPyDatabase.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):
OgnVersionedDeformerPyDatabase.NODE_TYPE_CLASS = node_type_class
og.register_node_type(OgnVersionedDeformerPyDatabase.abi, 2)
@staticmethod
def deregister():
og.deregister_node_type("omni.graph.examples.python.VersionedDeformerPy")
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/OgnDecomposeDouble3Database.py | """Support for simplified access to data on nodes of type omni.graph.examples.python.DecomposeDouble3
Example node that takes in a double3 and outputs scalars that are its components
"""
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 OgnDecomposeDouble3Database(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.examples.python.DecomposeDouble3
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.double3
Outputs:
outputs.x
outputs.y
outputs.z
"""
# 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:double3', 'double3', 0, None, 'Input double3', {ogn.MetadataKeys.DEFAULT: '[0, 0, 0]'}, True, [0, 0, 0], False, ''),
('outputs:x', 'double', 0, None, 'The x component of the input double3', {}, True, None, False, ''),
('outputs:y', 'double', 0, None, 'The y component of the input double3', {}, True, None, False, ''),
('outputs:z', 'double', 0, None, 'The z component of the input double3', {}, True, None, False, ''),
])
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = {"double3", "_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.double3]
self._batchedReadValues = [[0, 0, 0]]
@property
def double3(self):
return self._batchedReadValues[0]
@double3.setter
def double3(self, value):
self._batchedReadValues[0] = 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 = {"x", "y", "z", "_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 x(self):
value = self._batchedWriteValues.get(self._attributes.x)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.x)
return data_view.get()
@x.setter
def x(self, value):
self._batchedWriteValues[self._attributes.x] = value
@property
def y(self):
value = self._batchedWriteValues.get(self._attributes.y)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.y)
return data_view.get()
@y.setter
def y(self, value):
self._batchedWriteValues[self._attributes.y] = value
@property
def z(self):
value = self._batchedWriteValues.get(self._attributes.z)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.z)
return data_view.get()
@z.setter
def z(self, value):
self._batchedWriteValues[self._attributes.z] = 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 = OgnDecomposeDouble3Database.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnDecomposeDouble3Database.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnDecomposeDouble3Database.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(OgnDecomposeDouble3Database.NODE_TYPE_CLASS, 'get_node_type', None)
if callable(get_node_type_function):
return get_node_type_function()
return 'omni.graph.examples.python.DecomposeDouble3'
@staticmethod
def compute(context, node):
def database_valid():
return True
try:
per_node_data = OgnDecomposeDouble3Database.PER_NODE_DATA[node.node_id()]
db = per_node_data.get('_db')
if db is None:
db = OgnDecomposeDouble3Database(node)
per_node_data['_db'] = db
if not database_valid():
per_node_data['_db'] = None
return False
except:
db = OgnDecomposeDouble3Database(node)
try:
compute_function = getattr(OgnDecomposeDouble3Database.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 OgnDecomposeDouble3Database.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):
OgnDecomposeDouble3Database._initialize_per_node_data(node)
initialize_function = getattr(OgnDecomposeDouble3Database.NODE_TYPE_CLASS, 'initialize', None)
if callable(initialize_function):
initialize_function(context, node)
per_node_data = OgnDecomposeDouble3Database.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(OgnDecomposeDouble3Database.NODE_TYPE_CLASS, 'release', None)
if callable(release_function):
release_function(node)
OgnDecomposeDouble3Database._release_per_node_data(node)
@staticmethod
def release_instance(node, target):
OgnDecomposeDouble3Database._release_per_node_instance_data(node, target)
@staticmethod
def update_node_version(context, node, old_version, new_version):
update_node_version_function = getattr(OgnDecomposeDouble3Database.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(OgnDecomposeDouble3Database.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.examples.python")
node_type.set_metadata(ogn.MetadataKeys.UI_NAME, "Decompose Double3 (Python)")
node_type.set_metadata(ogn.MetadataKeys.CATEGORIES, "examples")
node_type.set_metadata(ogn.MetadataKeys.DESCRIPTION, "Example node that takes in a double3 and outputs scalars that are its components")
node_type.set_metadata(ogn.MetadataKeys.LANGUAGE, "Python")
OgnDecomposeDouble3Database.INTERFACE.add_to_node_type(node_type)
@staticmethod
def on_connection_type_resolve(node):
on_connection_type_resolve_function = getattr(OgnDecomposeDouble3Database.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):
OgnDecomposeDouble3Database.NODE_TYPE_CLASS = node_type_class
og.register_node_type(OgnDecomposeDouble3Database.abi, 1)
@staticmethod
def deregister():
og.deregister_node_type("omni.graph.examples.python.DecomposeDouble3")
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/OgnDeformerCpuDatabase.py | """Support for simplified access to data on nodes of type omni.graph.examples.python.DeformerPy
Example node applying a sine wave deformation to a set of points, written in Python
"""
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 OgnDeformerCpuDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.examples.python.DeformerPy
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.multiplier
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:multiplier', 'float', 0, None, 'The multiplier for the amplitude of the sine wave', {ogn.MetadataKeys.DEFAULT: '1.0'}, True, 1.0, False, ''),
('inputs:points', 'point3f[]', 0, None, 'The input points to be deformed', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:points', 'point3f[]', 0, None, 'The deformed output 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 = {"multiplier", "_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.multiplier]
self._batchedReadValues = [1.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 multiplier(self):
return self._batchedReadValues[0]
@multiplier.setter
def multiplier(self, value):
self._batchedReadValues[0] = 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 = OgnDeformerCpuDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnDeformerCpuDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnDeformerCpuDatabase.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(OgnDeformerCpuDatabase.NODE_TYPE_CLASS, 'get_node_type', None)
if callable(get_node_type_function):
return get_node_type_function()
return 'omni.graph.examples.python.DeformerPy'
@staticmethod
def compute(context, node):
def database_valid():
return True
try:
per_node_data = OgnDeformerCpuDatabase.PER_NODE_DATA[node.node_id()]
db = per_node_data.get('_db')
if db is None:
db = OgnDeformerCpuDatabase(node)
per_node_data['_db'] = db
if not database_valid():
per_node_data['_db'] = None
return False
except:
db = OgnDeformerCpuDatabase(node)
try:
compute_function = getattr(OgnDeformerCpuDatabase.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 OgnDeformerCpuDatabase.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):
OgnDeformerCpuDatabase._initialize_per_node_data(node)
initialize_function = getattr(OgnDeformerCpuDatabase.NODE_TYPE_CLASS, 'initialize', None)
if callable(initialize_function):
initialize_function(context, node)
per_node_data = OgnDeformerCpuDatabase.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(OgnDeformerCpuDatabase.NODE_TYPE_CLASS, 'release', None)
if callable(release_function):
release_function(node)
OgnDeformerCpuDatabase._release_per_node_data(node)
@staticmethod
def release_instance(node, target):
OgnDeformerCpuDatabase._release_per_node_instance_data(node, target)
@staticmethod
def update_node_version(context, node, old_version, new_version):
update_node_version_function = getattr(OgnDeformerCpuDatabase.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(OgnDeformerCpuDatabase.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.examples.python")
node_type.set_metadata(ogn.MetadataKeys.UI_NAME, "Sine Wave Deformer Z-axis (Python)")
node_type.set_metadata(ogn.MetadataKeys.CATEGORIES, "examples")
node_type.set_metadata(ogn.MetadataKeys.DESCRIPTION, "Example node applying a sine wave deformation to a set of points, written in Python")
node_type.set_metadata(ogn.MetadataKeys.LANGUAGE, "Python")
OgnDeformerCpuDatabase.INTERFACE.add_to_node_type(node_type)
@staticmethod
def on_connection_type_resolve(node):
on_connection_type_resolve_function = getattr(OgnDeformerCpuDatabase.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):
OgnDeformerCpuDatabase.NODE_TYPE_CLASS = node_type_class
og.register_node_type(OgnDeformerCpuDatabase.abi, 1)
@staticmethod
def deregister():
og.deregister_node_type("omni.graph.examples.python.DeformerPy")
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/OgnExecSwitchDatabase.py | """Support for simplified access to data on nodes of type omni.graph.examples.python.ExecSwitch
A switch node that will enable the left side or right side depending on the input
"""
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 OgnExecSwitchDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.examples.python.ExecSwitch
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.execIn
inputs.switch
Outputs:
outputs.execLeftOut
outputs.execRightOut
"""
# 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, 'Exec In', 'Trigger the output', {}, True, None, False, ''),
('inputs:switch', 'bool', 0, None, 'Enables right value if greater than 0, else left value', {ogn.MetadataKeys.DEFAULT: 'false'}, True, False, False, ''),
('outputs:execLeftOut', 'execution', 0, None, 'Left execution', {}, True, None, False, ''),
('outputs:execRightOut', 'execution', 0, None, 'Right execution', {}, 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.execLeftOut = og.AttributeRole.EXECUTION
role_data.outputs.execRightOut = og.AttributeRole.EXECUTION
return role_data
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = {"execIn", "switch", "_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.switch]
self._batchedReadValues = [None, False]
@property
def execIn(self):
return self._batchedReadValues[0]
@execIn.setter
def execIn(self, value):
self._batchedReadValues[0] = value
@property
def switch(self):
return self._batchedReadValues[1]
@switch.setter
def switch(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 = {"execLeftOut", "execRightOut", "_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 execLeftOut(self):
value = self._batchedWriteValues.get(self._attributes.execLeftOut)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.execLeftOut)
return data_view.get()
@execLeftOut.setter
def execLeftOut(self, value):
self._batchedWriteValues[self._attributes.execLeftOut] = value
@property
def execRightOut(self):
value = self._batchedWriteValues.get(self._attributes.execRightOut)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.execRightOut)
return data_view.get()
@execRightOut.setter
def execRightOut(self, value):
self._batchedWriteValues[self._attributes.execRightOut] = 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 = OgnExecSwitchDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnExecSwitchDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnExecSwitchDatabase.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(OgnExecSwitchDatabase.NODE_TYPE_CLASS, 'get_node_type', None)
if callable(get_node_type_function):
return get_node_type_function()
return 'omni.graph.examples.python.ExecSwitch'
@staticmethod
def compute(context, node):
def database_valid():
return True
try:
per_node_data = OgnExecSwitchDatabase.PER_NODE_DATA[node.node_id()]
db = per_node_data.get('_db')
if db is None:
db = OgnExecSwitchDatabase(node)
per_node_data['_db'] = db
if not database_valid():
per_node_data['_db'] = None
return False
except:
db = OgnExecSwitchDatabase(node)
try:
compute_function = getattr(OgnExecSwitchDatabase.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 OgnExecSwitchDatabase.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):
OgnExecSwitchDatabase._initialize_per_node_data(node)
initialize_function = getattr(OgnExecSwitchDatabase.NODE_TYPE_CLASS, 'initialize', None)
if callable(initialize_function):
initialize_function(context, node)
per_node_data = OgnExecSwitchDatabase.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(OgnExecSwitchDatabase.NODE_TYPE_CLASS, 'release', None)
if callable(release_function):
release_function(node)
OgnExecSwitchDatabase._release_per_node_data(node)
@staticmethod
def release_instance(node, target):
OgnExecSwitchDatabase._release_per_node_instance_data(node, target)
@staticmethod
def update_node_version(context, node, old_version, new_version):
update_node_version_function = getattr(OgnExecSwitchDatabase.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(OgnExecSwitchDatabase.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.examples.python")
node_type.set_metadata(ogn.MetadataKeys.UI_NAME, "Exec Switch")
node_type.set_metadata(ogn.MetadataKeys.CATEGORIES, "examples")
node_type.set_metadata(ogn.MetadataKeys.DESCRIPTION, "A switch node that will enable the left side or right side depending on the input")
node_type.set_metadata(ogn.MetadataKeys.EXCLUSIONS, "usd")
node_type.set_metadata(ogn.MetadataKeys.LANGUAGE, "Python")
OgnExecSwitchDatabase.INTERFACE.add_to_node_type(node_type)
@staticmethod
def on_connection_type_resolve(node):
on_connection_type_resolve_function = getattr(OgnExecSwitchDatabase.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):
OgnExecSwitchDatabase.NODE_TYPE_CLASS = node_type_class
og.register_node_type(OgnExecSwitchDatabase.abi, 1)
@staticmethod
def deregister():
og.deregister_node_type("omni.graph.examples.python.ExecSwitch")
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/OgnIntCounterDatabase.py | """Support for simplified access to data on nodes of type omni.graph.examples.python.IntCounter
Example stateful node that increments every time it's evaluated
"""
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 OgnIntCounterDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.examples.python.IntCounter
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.increment
inputs.reset
Outputs:
outputs.count
"""
# 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:increment', 'int', 0, None, 'Increment to count by', {ogn.MetadataKeys.DEFAULT: '1'}, True, 1, False, ''),
('inputs:reset', 'bool', 0, None, 'Whether to reset the count', {ogn.MetadataKeys.DEFAULT: 'false'}, True, False, False, ''),
('outputs:count', 'int', 0, None, 'The current count', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
])
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = {"increment", "reset", "_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.increment, self._attributes.reset]
self._batchedReadValues = [1, False]
@property
def increment(self):
return self._batchedReadValues[0]
@increment.setter
def increment(self, value):
self._batchedReadValues[0] = value
@property
def reset(self):
return self._batchedReadValues[1]
@reset.setter
def reset(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 = {"count", "_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 count(self):
value = self._batchedWriteValues.get(self._attributes.count)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.count)
return data_view.get()
@count.setter
def count(self, value):
self._batchedWriteValues[self._attributes.count] = 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 = OgnIntCounterDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnIntCounterDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnIntCounterDatabase.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(OgnIntCounterDatabase.NODE_TYPE_CLASS, 'get_node_type', None)
if callable(get_node_type_function):
return get_node_type_function()
return 'omni.graph.examples.python.IntCounter'
@staticmethod
def compute(context, node):
def database_valid():
return True
try:
per_node_data = OgnIntCounterDatabase.PER_NODE_DATA[node.node_id()]
db = per_node_data.get('_db')
if db is None:
db = OgnIntCounterDatabase(node)
per_node_data['_db'] = db
if not database_valid():
per_node_data['_db'] = None
return False
except:
db = OgnIntCounterDatabase(node)
try:
compute_function = getattr(OgnIntCounterDatabase.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 OgnIntCounterDatabase.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):
OgnIntCounterDatabase._initialize_per_node_data(node)
initialize_function = getattr(OgnIntCounterDatabase.NODE_TYPE_CLASS, 'initialize', None)
if callable(initialize_function):
initialize_function(context, node)
per_node_data = OgnIntCounterDatabase.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(OgnIntCounterDatabase.NODE_TYPE_CLASS, 'release', None)
if callable(release_function):
release_function(node)
OgnIntCounterDatabase._release_per_node_data(node)
@staticmethod
def release_instance(node, target):
OgnIntCounterDatabase._release_per_node_instance_data(node, target)
@staticmethod
def update_node_version(context, node, old_version, new_version):
update_node_version_function = getattr(OgnIntCounterDatabase.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(OgnIntCounterDatabase.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.examples.python")
node_type.set_metadata(ogn.MetadataKeys.UI_NAME, "Int Counter")
node_type.set_metadata(ogn.MetadataKeys.CATEGORIES, "examples")
node_type.set_metadata(ogn.MetadataKeys.DESCRIPTION, "Example stateful node that increments every time it's evaluated")
node_type.set_metadata(ogn.MetadataKeys.LANGUAGE, "Python")
OgnIntCounterDatabase.INTERFACE.add_to_node_type(node_type)
@staticmethod
def on_connection_type_resolve(node):
on_connection_type_resolve_function = getattr(OgnIntCounterDatabase.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):
OgnIntCounterDatabase.NODE_TYPE_CLASS = node_type_class
og.register_node_type(OgnIntCounterDatabase.abi, 1)
@staticmethod
def deregister():
og.deregister_node_type("omni.graph.examples.python.IntCounter")
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/OgnBouncingCubesGpuDatabase.py | """Support for simplified access to data on nodes of type omni.graph.examples.python.BouncingCubesGpu
Deprecated node - no longer supported
"""
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 OgnBouncingCubesGpuDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.examples.python.BouncingCubesGpu
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 = OgnBouncingCubesGpuDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnBouncingCubesGpuDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnBouncingCubesGpuDatabase.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(OgnBouncingCubesGpuDatabase.NODE_TYPE_CLASS, 'get_node_type', None)
if callable(get_node_type_function):
return get_node_type_function()
return 'omni.graph.examples.python.BouncingCubesGpu'
@staticmethod
def compute(context, node):
def database_valid():
return True
try:
per_node_data = OgnBouncingCubesGpuDatabase.PER_NODE_DATA[node.node_id()]
db = per_node_data.get('_db')
if db is None:
db = OgnBouncingCubesGpuDatabase(node)
per_node_data['_db'] = db
if not database_valid():
per_node_data['_db'] = None
return False
except:
db = OgnBouncingCubesGpuDatabase(node)
try:
compute_function = getattr(OgnBouncingCubesGpuDatabase.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 OgnBouncingCubesGpuDatabase.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):
OgnBouncingCubesGpuDatabase._initialize_per_node_data(node)
initialize_function = getattr(OgnBouncingCubesGpuDatabase.NODE_TYPE_CLASS, 'initialize', None)
if callable(initialize_function):
initialize_function(context, node)
per_node_data = OgnBouncingCubesGpuDatabase.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(OgnBouncingCubesGpuDatabase.NODE_TYPE_CLASS, 'release', None)
if callable(release_function):
release_function(node)
OgnBouncingCubesGpuDatabase._release_per_node_data(node)
@staticmethod
def release_instance(node, target):
OgnBouncingCubesGpuDatabase._release_per_node_instance_data(node, target)
@staticmethod
def update_node_version(context, node, old_version, new_version):
update_node_version_function = getattr(OgnBouncingCubesGpuDatabase.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(OgnBouncingCubesGpuDatabase.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.examples.python")
node_type.set_metadata(ogn.MetadataKeys.UI_NAME, "Deprecated Node - Bouncing Cubes (GPU)")
node_type.set_metadata(ogn.MetadataKeys.MEMORY_TYPE, "cuda")
node_type.set_metadata(ogn.MetadataKeys.CATEGORIES, "examples")
node_type.set_metadata(ogn.MetadataKeys.DESCRIPTION, "Deprecated node - no longer supported")
node_type.set_metadata(ogn.MetadataKeys.EXCLUSIONS, "usd,test")
node_type.set_metadata(ogn.MetadataKeys.LANGUAGE, "Python")
node_type.set_metadata(ogn.MetadataKeys.MEMORY_TYPE, "cuda")
node_type.set_has_state(True)
@staticmethod
def on_connection_type_resolve(node):
on_connection_type_resolve_function = getattr(OgnBouncingCubesGpuDatabase.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):
OgnBouncingCubesGpuDatabase.NODE_TYPE_CLASS = node_type_class
og.register_node_type(OgnBouncingCubesGpuDatabase.abi, 1)
@staticmethod
def deregister():
og.deregister_node_type("omni.graph.examples.python.BouncingCubesGpu")
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/OgnMultDoubleDatabase.py | """Support for simplified access to data on nodes of type omni.graph.examples.python.MultDouble
Example node that multiplies 2 doubles together
"""
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 OgnMultDoubleDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.examples.python.MultDouble
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 = {"a", "b", "_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.a, self._attributes.b]
self._batchedReadValues = [0, 0]
@property
def a(self):
return self._batchedReadValues[0]
@a.setter
def a(self, value):
self._batchedReadValues[0] = value
@property
def b(self):
return self._batchedReadValues[1]
@b.setter
def b(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 = {"out", "_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 out(self):
value = self._batchedWriteValues.get(self._attributes.out)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.out)
return data_view.get()
@out.setter
def out(self, value):
self._batchedWriteValues[self._attributes.out] = 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 = OgnMultDoubleDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnMultDoubleDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnMultDoubleDatabase.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(OgnMultDoubleDatabase.NODE_TYPE_CLASS, 'get_node_type', None)
if callable(get_node_type_function):
return get_node_type_function()
return 'omni.graph.examples.python.MultDouble'
@staticmethod
def compute(context, node):
def database_valid():
return True
try:
per_node_data = OgnMultDoubleDatabase.PER_NODE_DATA[node.node_id()]
db = per_node_data.get('_db')
if db is None:
db = OgnMultDoubleDatabase(node)
per_node_data['_db'] = db
if not database_valid():
per_node_data['_db'] = None
return False
except:
db = OgnMultDoubleDatabase(node)
try:
compute_function = getattr(OgnMultDoubleDatabase.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 OgnMultDoubleDatabase.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):
OgnMultDoubleDatabase._initialize_per_node_data(node)
initialize_function = getattr(OgnMultDoubleDatabase.NODE_TYPE_CLASS, 'initialize', None)
if callable(initialize_function):
initialize_function(context, node)
per_node_data = OgnMultDoubleDatabase.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(OgnMultDoubleDatabase.NODE_TYPE_CLASS, 'release', None)
if callable(release_function):
release_function(node)
OgnMultDoubleDatabase._release_per_node_data(node)
@staticmethod
def release_instance(node, target):
OgnMultDoubleDatabase._release_per_node_instance_data(node, target)
@staticmethod
def update_node_version(context, node, old_version, new_version):
update_node_version_function = getattr(OgnMultDoubleDatabase.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(OgnMultDoubleDatabase.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.examples.python")
node_type.set_metadata(ogn.MetadataKeys.UI_NAME, "Multiply Double (Python)")
node_type.set_metadata(ogn.MetadataKeys.CATEGORIES, "examples")
node_type.set_metadata(ogn.MetadataKeys.DESCRIPTION, "Example node that multiplies 2 doubles together")
node_type.set_metadata(ogn.MetadataKeys.LANGUAGE, "Python")
OgnMultDoubleDatabase.INTERFACE.add_to_node_type(node_type)
@staticmethod
def on_connection_type_resolve(node):
on_connection_type_resolve_function = getattr(OgnMultDoubleDatabase.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):
OgnMultDoubleDatabase.NODE_TYPE_CLASS = node_type_class
og.register_node_type(OgnMultDoubleDatabase.abi, 1)
@staticmethod
def deregister():
og.deregister_node_type("omni.graph.examples.python.MultDouble")
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/OgnComposeDouble3Database.py | """Support for simplified access to data on nodes of type omni.graph.examples.python.ComposeDouble3
Example node that takes in the components of three doubles and outputs a double3
"""
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 OgnComposeDouble3Database(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.examples.python.ComposeDouble3
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 = {"x", "y", "z", "_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.x, self._attributes.y, self._attributes.z]
self._batchedReadValues = [0, 0, 0]
@property
def x(self):
return self._batchedReadValues[0]
@x.setter
def x(self, value):
self._batchedReadValues[0] = value
@property
def y(self):
return self._batchedReadValues[1]
@y.setter
def y(self, value):
self._batchedReadValues[1] = value
@property
def z(self):
return self._batchedReadValues[2]
@z.setter
def z(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 = {"double3", "_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 double3(self):
value = self._batchedWriteValues.get(self._attributes.double3)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.double3)
return data_view.get()
@double3.setter
def double3(self, value):
self._batchedWriteValues[self._attributes.double3] = 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 = OgnComposeDouble3Database.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnComposeDouble3Database.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnComposeDouble3Database.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(OgnComposeDouble3Database.NODE_TYPE_CLASS, 'get_node_type', None)
if callable(get_node_type_function):
return get_node_type_function()
return 'omni.graph.examples.python.ComposeDouble3'
@staticmethod
def compute(context, node):
def database_valid():
return True
try:
per_node_data = OgnComposeDouble3Database.PER_NODE_DATA[node.node_id()]
db = per_node_data.get('_db')
if db is None:
db = OgnComposeDouble3Database(node)
per_node_data['_db'] = db
if not database_valid():
per_node_data['_db'] = None
return False
except:
db = OgnComposeDouble3Database(node)
try:
compute_function = getattr(OgnComposeDouble3Database.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 OgnComposeDouble3Database.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):
OgnComposeDouble3Database._initialize_per_node_data(node)
initialize_function = getattr(OgnComposeDouble3Database.NODE_TYPE_CLASS, 'initialize', None)
if callable(initialize_function):
initialize_function(context, node)
per_node_data = OgnComposeDouble3Database.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(OgnComposeDouble3Database.NODE_TYPE_CLASS, 'release', None)
if callable(release_function):
release_function(node)
OgnComposeDouble3Database._release_per_node_data(node)
@staticmethod
def release_instance(node, target):
OgnComposeDouble3Database._release_per_node_instance_data(node, target)
@staticmethod
def update_node_version(context, node, old_version, new_version):
update_node_version_function = getattr(OgnComposeDouble3Database.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(OgnComposeDouble3Database.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.examples.python")
node_type.set_metadata(ogn.MetadataKeys.UI_NAME, "Compose Double3 (Python)")
node_type.set_metadata(ogn.MetadataKeys.CATEGORIES, "examples")
node_type.set_metadata(ogn.MetadataKeys.DESCRIPTION, "Example node that takes in the components of three doubles and outputs a double3")
node_type.set_metadata(ogn.MetadataKeys.LANGUAGE, "Python")
OgnComposeDouble3Database.INTERFACE.add_to_node_type(node_type)
@staticmethod
def on_connection_type_resolve(node):
on_connection_type_resolve_function = getattr(OgnComposeDouble3Database.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):
OgnComposeDouble3Database.NODE_TYPE_CLASS = node_type_class
og.register_node_type(OgnComposeDouble3Database.abi, 1)
@staticmethod
def deregister():
og.deregister_node_type("omni.graph.examples.python.ComposeDouble3")
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/OgnTestInitNodeDatabase.py | """Support for simplified access to data on nodes of type omni.graph.examples.python.TestInitNode
Test Init Node
"""
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 OgnTestInitNodeDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.examples.python.TestInitNode
Class Members:
node: Node being evaluated
Attribute Value Properties:
Outputs:
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([
('outputs:value', 'float', 0, None, 'Value', {}, 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 = {"value", "_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):
value = self._batchedWriteValues.get(self._attributes.value)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.value)
return data_view.get()
@value.setter
def value(self, value):
self._batchedWriteValues[self._attributes.value] = 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 = OgnTestInitNodeDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnTestInitNodeDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnTestInitNodeDatabase.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(OgnTestInitNodeDatabase.NODE_TYPE_CLASS, 'get_node_type', None)
if callable(get_node_type_function):
return get_node_type_function()
return 'omni.graph.examples.python.TestInitNode'
@staticmethod
def compute(context, node):
def database_valid():
return True
try:
per_node_data = OgnTestInitNodeDatabase.PER_NODE_DATA[node.node_id()]
db = per_node_data.get('_db')
if db is None:
db = OgnTestInitNodeDatabase(node)
per_node_data['_db'] = db
if not database_valid():
per_node_data['_db'] = None
return False
except:
db = OgnTestInitNodeDatabase(node)
try:
compute_function = getattr(OgnTestInitNodeDatabase.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 OgnTestInitNodeDatabase.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):
OgnTestInitNodeDatabase._initialize_per_node_data(node)
initialize_function = getattr(OgnTestInitNodeDatabase.NODE_TYPE_CLASS, 'initialize', None)
if callable(initialize_function):
initialize_function(context, node)
per_node_data = OgnTestInitNodeDatabase.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(OgnTestInitNodeDatabase.NODE_TYPE_CLASS, 'release', None)
if callable(release_function):
release_function(node)
OgnTestInitNodeDatabase._release_per_node_data(node)
@staticmethod
def release_instance(node, target):
OgnTestInitNodeDatabase._release_per_node_instance_data(node, target)
@staticmethod
def update_node_version(context, node, old_version, new_version):
update_node_version_function = getattr(OgnTestInitNodeDatabase.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(OgnTestInitNodeDatabase.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.examples.python")
node_type.set_metadata(ogn.MetadataKeys.UI_NAME, "TestInitNode")
node_type.set_metadata(ogn.MetadataKeys.CATEGORIES, "examples")
node_type.set_metadata(ogn.MetadataKeys.DESCRIPTION, "Test Init Node")
node_type.set_metadata(ogn.MetadataKeys.LANGUAGE, "Python")
OgnTestInitNodeDatabase.INTERFACE.add_to_node_type(node_type)
@staticmethod
def on_connection_type_resolve(node):
on_connection_type_resolve_function = getattr(OgnTestInitNodeDatabase.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):
OgnTestInitNodeDatabase.NODE_TYPE_CLASS = node_type_class
og.register_node_type(OgnTestInitNodeDatabase.abi, 1)
@staticmethod
def deregister():
og.deregister_node_type("omni.graph.examples.python.TestInitNode")
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/OgnDeformerYAxisDatabase.py | """Support for simplified access to data on nodes of type omni.graph.examples.python.DeformerYAxis
Example node applying a sine wave deformation to a set of points, written in Python. Deforms along Y-axis instead of Z
"""
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 OgnDeformerYAxisDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.examples.python.DeformerYAxis
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.multiplier
inputs.offset
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', 'double', 0, None, 'The multiplier for the amplitude of the sine wave', {ogn.MetadataKeys.DEFAULT: '1'}, True, 1, False, ''),
('inputs:offset', 'double', 0, None, 'The offset of the sine wave', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
('inputs:points', 'point3f[]', 0, None, 'The input points to be deformed', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:wavelength', 'double', 0, None, 'The wavelength of the sine wave', {ogn.MetadataKeys.DEFAULT: '1'}, True, 1, False, ''),
('outputs:points', 'point3f[]', 0, None, 'The deformed output 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 = {"multiplier", "offset", "wavelength", "_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.multiplier, self._attributes.offset, self._attributes.wavelength]
self._batchedReadValues = [1, 0, 1]
@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 multiplier(self):
return self._batchedReadValues[0]
@multiplier.setter
def multiplier(self, value):
self._batchedReadValues[0] = value
@property
def offset(self):
return self._batchedReadValues[1]
@offset.setter
def offset(self, value):
self._batchedReadValues[1] = value
@property
def wavelength(self):
return self._batchedReadValues[2]
@wavelength.setter
def wavelength(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 = OgnDeformerYAxisDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnDeformerYAxisDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnDeformerYAxisDatabase.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(OgnDeformerYAxisDatabase.NODE_TYPE_CLASS, 'get_node_type', None)
if callable(get_node_type_function):
return get_node_type_function()
return 'omni.graph.examples.python.DeformerYAxis'
@staticmethod
def compute(context, node):
def database_valid():
return True
try:
per_node_data = OgnDeformerYAxisDatabase.PER_NODE_DATA[node.node_id()]
db = per_node_data.get('_db')
if db is None:
db = OgnDeformerYAxisDatabase(node)
per_node_data['_db'] = db
if not database_valid():
per_node_data['_db'] = None
return False
except:
db = OgnDeformerYAxisDatabase(node)
try:
compute_function = getattr(OgnDeformerYAxisDatabase.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 OgnDeformerYAxisDatabase.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):
OgnDeformerYAxisDatabase._initialize_per_node_data(node)
initialize_function = getattr(OgnDeformerYAxisDatabase.NODE_TYPE_CLASS, 'initialize', None)
if callable(initialize_function):
initialize_function(context, node)
per_node_data = OgnDeformerYAxisDatabase.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(OgnDeformerYAxisDatabase.NODE_TYPE_CLASS, 'release', None)
if callable(release_function):
release_function(node)
OgnDeformerYAxisDatabase._release_per_node_data(node)
@staticmethod
def release_instance(node, target):
OgnDeformerYAxisDatabase._release_per_node_instance_data(node, target)
@staticmethod
def update_node_version(context, node, old_version, new_version):
update_node_version_function = getattr(OgnDeformerYAxisDatabase.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(OgnDeformerYAxisDatabase.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.examples.python")
node_type.set_metadata(ogn.MetadataKeys.UI_NAME, "Sine Wave Deformer Y-axis (Python)")
node_type.set_metadata(ogn.MetadataKeys.CATEGORIES, "examples")
node_type.set_metadata(ogn.MetadataKeys.DESCRIPTION, "Example node applying a sine wave deformation to a set of points, written in Python. Deforms along Y-axis instead of Z")
node_type.set_metadata(ogn.MetadataKeys.LANGUAGE, "Python")
OgnDeformerYAxisDatabase.INTERFACE.add_to_node_type(node_type)
@staticmethod
def on_connection_type_resolve(node):
on_connection_type_resolve_function = getattr(OgnDeformerYAxisDatabase.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):
OgnDeformerYAxisDatabase.NODE_TYPE_CLASS = node_type_class
og.register_node_type(OgnDeformerYAxisDatabase.abi, 1)
@staticmethod
def deregister():
og.deregister_node_type("omni.graph.examples.python.DeformerYAxis")
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/OgnDynamicSwitchDatabase.py | """Support for simplified access to data on nodes of type omni.graph.examples.python.DynamicSwitch
A switch node that will enable the left side or right side depending on the input. Requires dynamic scheduling to work
"""
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 OgnDynamicSwitchDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.examples.python.DynamicSwitch
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.left_value
inputs.right_value
inputs.switch
Outputs:
outputs.left_out
outputs.right_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:left_value', 'int', 0, None, 'Left value to output', {ogn.MetadataKeys.DEFAULT: '-1'}, True, -1, False, ''),
('inputs:right_value', 'int', 0, None, 'Right value to output', {ogn.MetadataKeys.DEFAULT: '1'}, True, 1, False, ''),
('inputs:switch', 'int', 0, None, 'Enables right value if greater than 0, else left value', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
('outputs:left_out', 'int', 0, None, 'Left side output', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
('outputs:right_out', 'int', 0, None, 'Right side output', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
])
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = {"left_value", "right_value", "switch", "_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.left_value, self._attributes.right_value, self._attributes.switch]
self._batchedReadValues = [-1, 1, 0]
@property
def left_value(self):
return self._batchedReadValues[0]
@left_value.setter
def left_value(self, value):
self._batchedReadValues[0] = value
@property
def right_value(self):
return self._batchedReadValues[1]
@right_value.setter
def right_value(self, value):
self._batchedReadValues[1] = value
@property
def switch(self):
return self._batchedReadValues[2]
@switch.setter
def switch(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 = {"left_out", "right_out", "_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 left_out(self):
value = self._batchedWriteValues.get(self._attributes.left_out)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.left_out)
return data_view.get()
@left_out.setter
def left_out(self, value):
self._batchedWriteValues[self._attributes.left_out] = value
@property
def right_out(self):
value = self._batchedWriteValues.get(self._attributes.right_out)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.right_out)
return data_view.get()
@right_out.setter
def right_out(self, value):
self._batchedWriteValues[self._attributes.right_out] = 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 = OgnDynamicSwitchDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnDynamicSwitchDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnDynamicSwitchDatabase.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(OgnDynamicSwitchDatabase.NODE_TYPE_CLASS, 'get_node_type', None)
if callable(get_node_type_function):
return get_node_type_function()
return 'omni.graph.examples.python.DynamicSwitch'
@staticmethod
def compute(context, node):
def database_valid():
return True
try:
per_node_data = OgnDynamicSwitchDatabase.PER_NODE_DATA[node.node_id()]
db = per_node_data.get('_db')
if db is None:
db = OgnDynamicSwitchDatabase(node)
per_node_data['_db'] = db
if not database_valid():
per_node_data['_db'] = None
return False
except:
db = OgnDynamicSwitchDatabase(node)
try:
compute_function = getattr(OgnDynamicSwitchDatabase.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 OgnDynamicSwitchDatabase.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):
OgnDynamicSwitchDatabase._initialize_per_node_data(node)
initialize_function = getattr(OgnDynamicSwitchDatabase.NODE_TYPE_CLASS, 'initialize', None)
if callable(initialize_function):
initialize_function(context, node)
per_node_data = OgnDynamicSwitchDatabase.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(OgnDynamicSwitchDatabase.NODE_TYPE_CLASS, 'release', None)
if callable(release_function):
release_function(node)
OgnDynamicSwitchDatabase._release_per_node_data(node)
@staticmethod
def release_instance(node, target):
OgnDynamicSwitchDatabase._release_per_node_instance_data(node, target)
@staticmethod
def update_node_version(context, node, old_version, new_version):
update_node_version_function = getattr(OgnDynamicSwitchDatabase.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(OgnDynamicSwitchDatabase.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.examples.python")
node_type.set_metadata(ogn.MetadataKeys.UI_NAME, "Dynamic Switch")
node_type.set_metadata(ogn.MetadataKeys.CATEGORIES, "examples")
node_type.set_metadata(ogn.MetadataKeys.DESCRIPTION, "A switch node that will enable the left side or right side depending on the input. Requires dynamic scheduling to work")
node_type.set_metadata(ogn.MetadataKeys.EXCLUSIONS, "usd")
node_type.set_metadata(ogn.MetadataKeys.LANGUAGE, "Python")
OgnDynamicSwitchDatabase.INTERFACE.add_to_node_type(node_type)
@staticmethod
def on_connection_type_resolve(node):
on_connection_type_resolve_function = getattr(OgnDynamicSwitchDatabase.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):
OgnDynamicSwitchDatabase.NODE_TYPE_CLASS = node_type_class
og.register_node_type(OgnDynamicSwitchDatabase.abi, 1)
@staticmethod
def deregister():
og.deregister_node_type("omni.graph.examples.python.DynamicSwitch")
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/OgnBouncingCubesCpuDatabase.py | """Support for simplified access to data on nodes of type omni.graph.examples.python.BouncingCubes
Deprecated node - no longer supported
"""
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 OgnBouncingCubesCpuDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.examples.python.BouncingCubes
Class Members:
node: Node being evaluated
Attribute Value Properties:
State:
state.translations
state.velocities
"""
# 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([
('state:translations', 'float3[]', 0, 'Translations', 'Set of translation attributes gathered from the inputs.\nTranslations have velocities applied to them each evaluation.', {}, True, None, False, ''),
('state:velocities', 'float[]', 0, 'Velocities', 'Set of velocity attributes gathered from the inputs', {}, 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 = { }
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.translations_size = None
self.velocities_size = None
@property
def translations(self):
data_view = og.AttributeValueHelper(self._attributes.translations)
self.translations_size = data_view.get_array_size()
return data_view.get()
@translations.setter
def translations(self, value):
data_view = og.AttributeValueHelper(self._attributes.translations)
data_view.set(value)
self.translations_size = data_view.get_array_size()
@property
def velocities(self):
data_view = og.AttributeValueHelper(self._attributes.velocities)
self.velocities_size = data_view.get_array_size()
return data_view.get()
@velocities.setter
def velocities(self, value):
data_view = og.AttributeValueHelper(self._attributes.velocities)
data_view.set(value)
self.velocities_size = data_view.get_array_size()
def __init__(self, node):
super().__init__(node)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT)
self.inputs = OgnBouncingCubesCpuDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnBouncingCubesCpuDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnBouncingCubesCpuDatabase.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(OgnBouncingCubesCpuDatabase.NODE_TYPE_CLASS, 'get_node_type', None)
if callable(get_node_type_function):
return get_node_type_function()
return 'omni.graph.examples.python.BouncingCubes'
@staticmethod
def compute(context, node):
def database_valid():
return True
try:
per_node_data = OgnBouncingCubesCpuDatabase.PER_NODE_DATA[node.node_id()]
db = per_node_data.get('_db')
if db is None:
db = OgnBouncingCubesCpuDatabase(node)
per_node_data['_db'] = db
if not database_valid():
per_node_data['_db'] = None
return False
except:
db = OgnBouncingCubesCpuDatabase(node)
try:
compute_function = getattr(OgnBouncingCubesCpuDatabase.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 OgnBouncingCubesCpuDatabase.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):
OgnBouncingCubesCpuDatabase._initialize_per_node_data(node)
initialize_function = getattr(OgnBouncingCubesCpuDatabase.NODE_TYPE_CLASS, 'initialize', None)
if callable(initialize_function):
initialize_function(context, node)
per_node_data = OgnBouncingCubesCpuDatabase.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(OgnBouncingCubesCpuDatabase.NODE_TYPE_CLASS, 'release', None)
if callable(release_function):
release_function(node)
OgnBouncingCubesCpuDatabase._release_per_node_data(node)
@staticmethod
def release_instance(node, target):
OgnBouncingCubesCpuDatabase._release_per_node_instance_data(node, target)
@staticmethod
def update_node_version(context, node, old_version, new_version):
update_node_version_function = getattr(OgnBouncingCubesCpuDatabase.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(OgnBouncingCubesCpuDatabase.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.examples.python")
node_type.set_metadata(ogn.MetadataKeys.UI_NAME, "Deprecated Node - Bouncing Cubes (GPU)")
node_type.set_metadata(ogn.MetadataKeys.CATEGORIES, "examples")
node_type.set_metadata(ogn.MetadataKeys.DESCRIPTION, "Deprecated node - no longer supported")
node_type.set_metadata(ogn.MetadataKeys.LANGUAGE, "Python")
OgnBouncingCubesCpuDatabase.INTERFACE.add_to_node_type(node_type)
node_type.set_has_state(True)
@staticmethod
def on_connection_type_resolve(node):
on_connection_type_resolve_function = getattr(OgnBouncingCubesCpuDatabase.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):
OgnBouncingCubesCpuDatabase.NODE_TYPE_CLASS = node_type_class
og.register_node_type(OgnBouncingCubesCpuDatabase.abi, 1)
@staticmethod
def deregister():
og.deregister_node_type("omni.graph.examples.python.BouncingCubes")
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/OgnDeformerGpuDatabase.py | """Support for simplified access to data on nodes of type omni.graph.examples.python.DeformerPyGpu
Example node applying a sine wave deformation to a set of points, written in Python for the GPU
"""
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 OgnDeformerGpuDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.examples.python.DeformerPyGpu
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.multiplier
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:multiplier', 'float', 0, None, 'The multiplier for the amplitude of the sine wave', {ogn.MetadataKeys.DEFAULT: '1'}, True, 1, False, ''),
('inputs:points', 'point3f[]', 0, None, 'The input points to be deformed', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:points', 'point3f[]', 0, None, 'The deformed output 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)
data_view.gpu_ptr_kind = og.PtrToPtrKind.CPU
return data_view.get(on_gpu=True)
@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.gpu_ptr_kind = og.PtrToPtrKind.CPU
data_view.set(value, on_gpu=True)
@property
def points(self):
data_view = og.AttributeValueHelper(self._attributes.points)
data_view.gpu_ptr_kind = og.PtrToPtrKind.CPU
return data_view.get(on_gpu=True)
@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.gpu_ptr_kind = og.PtrToPtrKind.CPU
data_view.set(value, on_gpu=True)
self.points_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.points_size = None
self._batchedWriteValues = { }
@property
def points(self):
data_view = og.AttributeValueHelper(self._attributes.points)
data_view.gpu_ptr_kind = og.PtrToPtrKind.CPU
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.gpu_ptr_kind = og.PtrToPtrKind.CPU
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 = OgnDeformerGpuDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnDeformerGpuDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnDeformerGpuDatabase.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(OgnDeformerGpuDatabase.NODE_TYPE_CLASS, 'get_node_type', None)
if callable(get_node_type_function):
return get_node_type_function()
return 'omni.graph.examples.python.DeformerPyGpu'
@staticmethod
def compute(context, node):
def database_valid():
return True
try:
per_node_data = OgnDeformerGpuDatabase.PER_NODE_DATA[node.node_id()]
db = per_node_data.get('_db')
if db is None:
db = OgnDeformerGpuDatabase(node)
per_node_data['_db'] = db
if not database_valid():
per_node_data['_db'] = None
return False
except:
db = OgnDeformerGpuDatabase(node)
try:
compute_function = getattr(OgnDeformerGpuDatabase.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 OgnDeformerGpuDatabase.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):
OgnDeformerGpuDatabase._initialize_per_node_data(node)
initialize_function = getattr(OgnDeformerGpuDatabase.NODE_TYPE_CLASS, 'initialize', None)
if callable(initialize_function):
initialize_function(context, node)
per_node_data = OgnDeformerGpuDatabase.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(OgnDeformerGpuDatabase.NODE_TYPE_CLASS, 'release', None)
if callable(release_function):
release_function(node)
OgnDeformerGpuDatabase._release_per_node_data(node)
@staticmethod
def release_instance(node, target):
OgnDeformerGpuDatabase._release_per_node_instance_data(node, target)
@staticmethod
def update_node_version(context, node, old_version, new_version):
update_node_version_function = getattr(OgnDeformerGpuDatabase.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(OgnDeformerGpuDatabase.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.examples.python")
node_type.set_metadata(ogn.MetadataKeys.UI_NAME, "Sine Wave Deformer Z-axis (Python GPU)")
node_type.set_metadata(ogn.MetadataKeys.MEMORY_TYPE, "cuda")
node_type.set_metadata(ogn.MetadataKeys.CATEGORIES, "examples")
node_type.set_metadata(ogn.MetadataKeys.DESCRIPTION, "Example node applying a sine wave deformation to a set of points, written in Python for the GPU")
node_type.set_metadata(ogn.MetadataKeys.LANGUAGE, "Python")
node_type.set_metadata(ogn.MetadataKeys.MEMORY_TYPE, "cuda")
OgnDeformerGpuDatabase.INTERFACE.add_to_node_type(node_type)
@staticmethod
def on_connection_type_resolve(node):
on_connection_type_resolve_function = getattr(OgnDeformerGpuDatabase.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):
OgnDeformerGpuDatabase.NODE_TYPE_CLASS = node_type_class
og.register_node_type(OgnDeformerGpuDatabase.abi, 1)
@staticmethod
def deregister():
og.deregister_node_type("omni.graph.examples.python.DeformerPyGpu")
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/OgnTestSingletonDatabase.py | """Support for simplified access to data on nodes of type omni.graph.examples.python.TestSingleton
Example node that showcases the use of singleton nodes (nodes that can have only 1 instance)
"""
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 OgnTestSingletonDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.examples.python.TestSingleton
Class Members:
node: Node being evaluated
Attribute Value Properties:
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([
('outputs:out', 'double', 0, None, 'The unique output of the only instance of this node', {}, 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 = {"out", "_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 out(self):
value = self._batchedWriteValues.get(self._attributes.out)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.out)
return data_view.get()
@out.setter
def out(self, value):
self._batchedWriteValues[self._attributes.out] = 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 = OgnTestSingletonDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnTestSingletonDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnTestSingletonDatabase.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(OgnTestSingletonDatabase.NODE_TYPE_CLASS, 'get_node_type', None)
if callable(get_node_type_function):
return get_node_type_function()
return 'omni.graph.examples.python.TestSingleton'
@staticmethod
def compute(context, node):
def database_valid():
return True
try:
per_node_data = OgnTestSingletonDatabase.PER_NODE_DATA[node.node_id()]
db = per_node_data.get('_db')
if db is None:
db = OgnTestSingletonDatabase(node)
per_node_data['_db'] = db
if not database_valid():
per_node_data['_db'] = None
return False
except:
db = OgnTestSingletonDatabase(node)
try:
compute_function = getattr(OgnTestSingletonDatabase.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 OgnTestSingletonDatabase.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):
OgnTestSingletonDatabase._initialize_per_node_data(node)
initialize_function = getattr(OgnTestSingletonDatabase.NODE_TYPE_CLASS, 'initialize', None)
if callable(initialize_function):
initialize_function(context, node)
per_node_data = OgnTestSingletonDatabase.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(OgnTestSingletonDatabase.NODE_TYPE_CLASS, 'release', None)
if callable(release_function):
release_function(node)
OgnTestSingletonDatabase._release_per_node_data(node)
@staticmethod
def release_instance(node, target):
OgnTestSingletonDatabase._release_per_node_instance_data(node, target)
@staticmethod
def update_node_version(context, node, old_version, new_version):
update_node_version_function = getattr(OgnTestSingletonDatabase.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(OgnTestSingletonDatabase.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.examples.python")
node_type.set_metadata(ogn.MetadataKeys.SINGLETON, "1")
node_type.set_metadata(ogn.MetadataKeys.UI_NAME, "Test Singleton")
node_type.set_metadata(ogn.MetadataKeys.CATEGORIES, "examples")
node_type.set_metadata(ogn.MetadataKeys.DESCRIPTION, "Example node that showcases the use of singleton nodes (nodes that can have only 1 instance)")
node_type.set_metadata(ogn.MetadataKeys.LANGUAGE, "Python")
OgnTestSingletonDatabase.INTERFACE.add_to_node_type(node_type)
@staticmethod
def on_connection_type_resolve(node):
on_connection_type_resolve_function = getattr(OgnTestSingletonDatabase.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):
OgnTestSingletonDatabase.NODE_TYPE_CLASS = node_type_class
og.register_node_type(OgnTestSingletonDatabase.abi, 1)
@staticmethod
def deregister():
og.deregister_node_type("omni.graph.examples.python.TestSingleton")
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/OgnPositionToColorDatabase.py | """Support for simplified access to data on nodes of type omni.graph.examples.python.PositionToColor
This node takes positional data (double3) and converts to a color, and outputs as color3f[] (which seems to be the default
color connection in USD)
"""
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 OgnPositionToColorDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.examples.python.PositionToColor
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.color_offset
inputs.position
inputs.scale
Outputs:
outputs.color
"""
# 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:color_offset', 'color3f', 0, None, 'Offset added to the scaled color to get the final result', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:position', 'double3', 0, None, 'Position to be converted to a color', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:scale', 'float', 0, None, 'Constant by which to multiply the position to get the color', {ogn.MetadataKeys.DEFAULT: '1.0'}, True, 1.0, False, ''),
('outputs:color', 'color3f[]', 0, None, 'Color value extracted from the position', {}, 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.color_offset = og.AttributeRole.COLOR
role_data.outputs.color = og.AttributeRole.COLOR
return role_data
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = {"color_offset", "position", "scale", "_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.color_offset, self._attributes.position, self._attributes.scale]
self._batchedReadValues = [[0.0, 0.0, 0.0], [0.0, 0.0, 0.0], 1.0]
@property
def color_offset(self):
return self._batchedReadValues[0]
@color_offset.setter
def color_offset(self, value):
self._batchedReadValues[0] = value
@property
def position(self):
return self._batchedReadValues[1]
@position.setter
def position(self, value):
self._batchedReadValues[1] = value
@property
def scale(self):
return self._batchedReadValues[2]
@scale.setter
def scale(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.color_size = None
self._batchedWriteValues = { }
@property
def color(self):
data_view = og.AttributeValueHelper(self._attributes.color)
return data_view.get(reserved_element_count=self.color_size)
@color.setter
def color(self, value):
data_view = og.AttributeValueHelper(self._attributes.color)
data_view.set(value)
self.color_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 = OgnPositionToColorDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnPositionToColorDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnPositionToColorDatabase.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(OgnPositionToColorDatabase.NODE_TYPE_CLASS, 'get_node_type', None)
if callable(get_node_type_function):
return get_node_type_function()
return 'omni.graph.examples.python.PositionToColor'
@staticmethod
def compute(context, node):
def database_valid():
return True
try:
per_node_data = OgnPositionToColorDatabase.PER_NODE_DATA[node.node_id()]
db = per_node_data.get('_db')
if db is None:
db = OgnPositionToColorDatabase(node)
per_node_data['_db'] = db
if not database_valid():
per_node_data['_db'] = None
return False
except:
db = OgnPositionToColorDatabase(node)
try:
compute_function = getattr(OgnPositionToColorDatabase.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 OgnPositionToColorDatabase.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):
OgnPositionToColorDatabase._initialize_per_node_data(node)
initialize_function = getattr(OgnPositionToColorDatabase.NODE_TYPE_CLASS, 'initialize', None)
if callable(initialize_function):
initialize_function(context, node)
per_node_data = OgnPositionToColorDatabase.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(OgnPositionToColorDatabase.NODE_TYPE_CLASS, 'release', None)
if callable(release_function):
release_function(node)
OgnPositionToColorDatabase._release_per_node_data(node)
@staticmethod
def release_instance(node, target):
OgnPositionToColorDatabase._release_per_node_instance_data(node, target)
@staticmethod
def update_node_version(context, node, old_version, new_version):
update_node_version_function = getattr(OgnPositionToColorDatabase.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(OgnPositionToColorDatabase.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.examples.python")
node_type.set_metadata(ogn.MetadataKeys.UI_NAME, "PositionToColor")
node_type.set_metadata(ogn.MetadataKeys.CATEGORIES, "examples")
node_type.set_metadata(ogn.MetadataKeys.DESCRIPTION, "This node takes positional data (double3) and converts to a color, and outputs as color3f[] (which seems to be the default color connection in USD)")
node_type.set_metadata(ogn.MetadataKeys.LANGUAGE, "Python")
OgnPositionToColorDatabase.INTERFACE.add_to_node_type(node_type)
@staticmethod
def on_connection_type_resolve(node):
on_connection_type_resolve_function = getattr(OgnPositionToColorDatabase.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):
OgnPositionToColorDatabase.NODE_TYPE_CLASS = node_type_class
og.register_node_type(OgnPositionToColorDatabase.abi, 1)
@staticmethod
def deregister():
og.deregister_node_type("omni.graph.examples.python.PositionToColor")
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/OgnClampDoubleDatabase.py | """Support for simplified access to data on nodes of type omni.graph.examples.python.ClampDouble
Example node that a number to a range
"""
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 OgnClampDoubleDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.examples.python.ClampDouble
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.max
inputs.min
inputs.num
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:max', 'double', 0, None, 'Maximum value', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
('inputs:min', 'double', 0, None, 'Mininum value', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
('inputs:num', 'double', 0, None, 'Input number', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
('outputs:out', 'double', 0, None, 'The result of the number, having been clamped to the range min,max', {}, True, None, False, ''),
])
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = {"max", "min", "num", "_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.max, self._attributes.min, self._attributes.num]
self._batchedReadValues = [0, 0, 0]
@property
def max(self):
return self._batchedReadValues[0]
@max.setter
def max(self, value):
self._batchedReadValues[0] = value
@property
def min(self):
return self._batchedReadValues[1]
@min.setter
def min(self, value):
self._batchedReadValues[1] = value
@property
def num(self):
return self._batchedReadValues[2]
@num.setter
def num(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 = {"out", "_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 out(self):
value = self._batchedWriteValues.get(self._attributes.out)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.out)
return data_view.get()
@out.setter
def out(self, value):
self._batchedWriteValues[self._attributes.out] = 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 = OgnClampDoubleDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnClampDoubleDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnClampDoubleDatabase.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(OgnClampDoubleDatabase.NODE_TYPE_CLASS, 'get_node_type', None)
if callable(get_node_type_function):
return get_node_type_function()
return 'omni.graph.examples.python.ClampDouble'
@staticmethod
def compute(context, node):
def database_valid():
return True
try:
per_node_data = OgnClampDoubleDatabase.PER_NODE_DATA[node.node_id()]
db = per_node_data.get('_db')
if db is None:
db = OgnClampDoubleDatabase(node)
per_node_data['_db'] = db
if not database_valid():
per_node_data['_db'] = None
return False
except:
db = OgnClampDoubleDatabase(node)
try:
compute_function = getattr(OgnClampDoubleDatabase.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 OgnClampDoubleDatabase.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):
OgnClampDoubleDatabase._initialize_per_node_data(node)
initialize_function = getattr(OgnClampDoubleDatabase.NODE_TYPE_CLASS, 'initialize', None)
if callable(initialize_function):
initialize_function(context, node)
per_node_data = OgnClampDoubleDatabase.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(OgnClampDoubleDatabase.NODE_TYPE_CLASS, 'release', None)
if callable(release_function):
release_function(node)
OgnClampDoubleDatabase._release_per_node_data(node)
@staticmethod
def release_instance(node, target):
OgnClampDoubleDatabase._release_per_node_instance_data(node, target)
@staticmethod
def update_node_version(context, node, old_version, new_version):
update_node_version_function = getattr(OgnClampDoubleDatabase.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(OgnClampDoubleDatabase.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.examples.python")
node_type.set_metadata(ogn.MetadataKeys.UI_NAME, "Clamp Double (Python)")
node_type.set_metadata(ogn.MetadataKeys.CATEGORIES, "examples")
node_type.set_metadata(ogn.MetadataKeys.DESCRIPTION, "Example node that a number to a range")
node_type.set_metadata(ogn.MetadataKeys.LANGUAGE, "Python")
OgnClampDoubleDatabase.INTERFACE.add_to_node_type(node_type)
@staticmethod
def on_connection_type_resolve(node):
on_connection_type_resolve_function = getattr(OgnClampDoubleDatabase.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):
OgnClampDoubleDatabase.NODE_TYPE_CLASS = node_type_class
og.register_node_type(OgnClampDoubleDatabase.abi, 1)
@staticmethod
def deregister():
og.deregister_node_type("omni.graph.examples.python.ClampDouble")
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/OgnPyUniversalAddDatabase.py | """Support for simplified access to data on nodes of type omni.graph.examples.python.UniversalAdd
Python-based universal add node for all types. This file is generated using UniversalAddGenerator.py
"""
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 OgnPyUniversalAddDatabase(og.Database):
"""Helper class providing simplified access to data on nodes of type omni.graph.examples.python.UniversalAdd
Class Members:
node: Node being evaluated
Attribute Value Properties:
Inputs:
inputs.bool_0
inputs.bool_1
inputs.bool_arr_0
inputs.bool_arr_1
inputs.colord3_0
inputs.colord3_1
inputs.colord3_arr_0
inputs.colord3_arr_1
inputs.colord4_0
inputs.colord4_1
inputs.colord4_arr_0
inputs.colord4_arr_1
inputs.colorf3_0
inputs.colorf3_1
inputs.colorf3_arr_0
inputs.colorf3_arr_1
inputs.colorf4_0
inputs.colorf4_1
inputs.colorf4_arr_0
inputs.colorf4_arr_1
inputs.colorh3_0
inputs.colorh3_1
inputs.colorh3_arr_0
inputs.colorh3_arr_1
inputs.colorh4_0
inputs.colorh4_1
inputs.colorh4_arr_0
inputs.colorh4_arr_1
inputs.double2_0
inputs.double2_1
inputs.double2_arr_0
inputs.double2_arr_1
inputs.double3_0
inputs.double3_1
inputs.double3_arr_0
inputs.double3_arr_1
inputs.double4_0
inputs.double4_1
inputs.double4_arr_0
inputs.double4_arr_1
inputs.double_0
inputs.double_1
inputs.double_arr_0
inputs.double_arr_1
inputs.float2_0
inputs.float2_1
inputs.float2_arr_0
inputs.float2_arr_1
inputs.float3_0
inputs.float3_1
inputs.float3_arr_0
inputs.float3_arr_1
inputs.float4_0
inputs.float4_1
inputs.float4_arr_0
inputs.float4_arr_1
inputs.float_0
inputs.float_1
inputs.float_arr_0
inputs.float_arr_1
inputs.frame4_0
inputs.frame4_1
inputs.frame4_arr_0
inputs.frame4_arr_1
inputs.half2_0
inputs.half2_1
inputs.half2_arr_0
inputs.half2_arr_1
inputs.half3_0
inputs.half3_1
inputs.half3_arr_0
inputs.half3_arr_1
inputs.half4_0
inputs.half4_1
inputs.half4_arr_0
inputs.half4_arr_1
inputs.half_0
inputs.half_1
inputs.half_arr_0
inputs.half_arr_1
inputs.int2_0
inputs.int2_1
inputs.int2_arr_0
inputs.int2_arr_1
inputs.int3_0
inputs.int3_1
inputs.int3_arr_0
inputs.int3_arr_1
inputs.int4_0
inputs.int4_1
inputs.int4_arr_0
inputs.int4_arr_1
inputs.int64_0
inputs.int64_1
inputs.int64_arr_0
inputs.int64_arr_1
inputs.int_0
inputs.int_1
inputs.int_arr_0
inputs.int_arr_1
inputs.matrixd2_0
inputs.matrixd2_1
inputs.matrixd2_arr_0
inputs.matrixd2_arr_1
inputs.matrixd3_0
inputs.matrixd3_1
inputs.matrixd3_arr_0
inputs.matrixd3_arr_1
inputs.matrixd4_0
inputs.matrixd4_1
inputs.matrixd4_arr_0
inputs.matrixd4_arr_1
inputs.normald3_0
inputs.normald3_1
inputs.normald3_arr_0
inputs.normald3_arr_1
inputs.normalf3_0
inputs.normalf3_1
inputs.normalf3_arr_0
inputs.normalf3_arr_1
inputs.normalh3_0
inputs.normalh3_1
inputs.normalh3_arr_0
inputs.normalh3_arr_1
inputs.pointd3_0
inputs.pointd3_1
inputs.pointd3_arr_0
inputs.pointd3_arr_1
inputs.pointf3_0
inputs.pointf3_1
inputs.pointf3_arr_0
inputs.pointf3_arr_1
inputs.pointh3_0
inputs.pointh3_1
inputs.pointh3_arr_0
inputs.pointh3_arr_1
inputs.quatd4_0
inputs.quatd4_1
inputs.quatd4_arr_0
inputs.quatd4_arr_1
inputs.quatf4_0
inputs.quatf4_1
inputs.quatf4_arr_0
inputs.quatf4_arr_1
inputs.quath4_0
inputs.quath4_1
inputs.quath4_arr_0
inputs.quath4_arr_1
inputs.texcoordd2_0
inputs.texcoordd2_1
inputs.texcoordd2_arr_0
inputs.texcoordd2_arr_1
inputs.texcoordd3_0
inputs.texcoordd3_1
inputs.texcoordd3_arr_0
inputs.texcoordd3_arr_1
inputs.texcoordf2_0
inputs.texcoordf2_1
inputs.texcoordf2_arr_0
inputs.texcoordf2_arr_1
inputs.texcoordf3_0
inputs.texcoordf3_1
inputs.texcoordf3_arr_0
inputs.texcoordf3_arr_1
inputs.texcoordh2_0
inputs.texcoordh2_1
inputs.texcoordh2_arr_0
inputs.texcoordh2_arr_1
inputs.texcoordh3_0
inputs.texcoordh3_1
inputs.texcoordh3_arr_0
inputs.texcoordh3_arr_1
inputs.timecode_0
inputs.timecode_1
inputs.timecode_arr_0
inputs.timecode_arr_1
inputs.token_0
inputs.token_1
inputs.token_arr_0
inputs.token_arr_1
inputs.transform4_0
inputs.transform4_1
inputs.transform4_arr_0
inputs.transform4_arr_1
inputs.uchar_0
inputs.uchar_1
inputs.uchar_arr_0
inputs.uchar_arr_1
inputs.uint64_0
inputs.uint64_1
inputs.uint64_arr_0
inputs.uint64_arr_1
inputs.uint_0
inputs.uint_1
inputs.uint_arr_0
inputs.uint_arr_1
inputs.vectord3_0
inputs.vectord3_1
inputs.vectord3_arr_0
inputs.vectord3_arr_1
inputs.vectorf3_0
inputs.vectorf3_1
inputs.vectorf3_arr_0
inputs.vectorf3_arr_1
inputs.vectorh3_0
inputs.vectorh3_1
inputs.vectorh3_arr_0
inputs.vectorh3_arr_1
Outputs:
outputs.bool_0
outputs.bool_arr_0
outputs.colord3_0
outputs.colord3_arr_0
outputs.colord4_0
outputs.colord4_arr_0
outputs.colorf3_0
outputs.colorf3_arr_0
outputs.colorf4_0
outputs.colorf4_arr_0
outputs.colorh3_0
outputs.colorh3_arr_0
outputs.colorh4_0
outputs.colorh4_arr_0
outputs.double2_0
outputs.double2_arr_0
outputs.double3_0
outputs.double3_arr_0
outputs.double4_0
outputs.double4_arr_0
outputs.double_0
outputs.double_arr_0
outputs.float2_0
outputs.float2_arr_0
outputs.float3_0
outputs.float3_arr_0
outputs.float4_0
outputs.float4_arr_0
outputs.float_0
outputs.float_arr_0
outputs.frame4_0
outputs.frame4_arr_0
outputs.half2_0
outputs.half2_arr_0
outputs.half3_0
outputs.half3_arr_0
outputs.half4_0
outputs.half4_arr_0
outputs.half_0
outputs.half_arr_0
outputs.int2_0
outputs.int2_arr_0
outputs.int3_0
outputs.int3_arr_0
outputs.int4_0
outputs.int4_arr_0
outputs.int64_0
outputs.int64_arr_0
outputs.int_0
outputs.int_arr_0
outputs.matrixd2_0
outputs.matrixd2_arr_0
outputs.matrixd3_0
outputs.matrixd3_arr_0
outputs.matrixd4_0
outputs.matrixd4_arr_0
outputs.normald3_0
outputs.normald3_arr_0
outputs.normalf3_0
outputs.normalf3_arr_0
outputs.normalh3_0
outputs.normalh3_arr_0
outputs.pointd3_0
outputs.pointd3_arr_0
outputs.pointf3_0
outputs.pointf3_arr_0
outputs.pointh3_0
outputs.pointh3_arr_0
outputs.quatd4_0
outputs.quatd4_arr_0
outputs.quatf4_0
outputs.quatf4_arr_0
outputs.quath4_0
outputs.quath4_arr_0
outputs.texcoordd2_0
outputs.texcoordd2_arr_0
outputs.texcoordd3_0
outputs.texcoordd3_arr_0
outputs.texcoordf2_0
outputs.texcoordf2_arr_0
outputs.texcoordf3_0
outputs.texcoordf3_arr_0
outputs.texcoordh2_0
outputs.texcoordh2_arr_0
outputs.texcoordh3_0
outputs.texcoordh3_arr_0
outputs.timecode_0
outputs.timecode_arr_0
outputs.token_0
outputs.token_arr_0
outputs.transform4_0
outputs.transform4_arr_0
outputs.uchar_0
outputs.uchar_arr_0
outputs.uint64_0
outputs.uint64_arr_0
outputs.uint_0
outputs.uint_arr_0
outputs.vectord3_0
outputs.vectord3_arr_0
outputs.vectorf3_0
outputs.vectorf3_arr_0
outputs.vectorh3_0
outputs.vectorh3_arr_0
"""
# 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:bool_0', 'bool', 0, None, 'Input of type bool', {ogn.MetadataKeys.DEFAULT: 'false'}, True, False, False, ''),
('inputs:bool_1', 'bool', 0, None, 'Input of type bool', {ogn.MetadataKeys.DEFAULT: 'false'}, True, False, False, ''),
('inputs:bool_arr_0', 'bool[]', 0, None, 'Input of type bool[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:bool_arr_1', 'bool[]', 0, None, 'Input of type bool[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:colord3_0', 'color3d', 0, None, 'Input of type colord[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:colord3_1', 'color3d', 0, None, 'Input of type colord[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:colord3_arr_0', 'color3d[]', 0, None, 'Input of type colord[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:colord3_arr_1', 'color3d[]', 0, None, 'Input of type colord[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:colord4_0', 'color4d', 0, None, 'Input of type colord[4]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0, 0.0], False, ''),
('inputs:colord4_1', 'color4d', 0, None, 'Input of type colord[4]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0, 0.0], False, ''),
('inputs:colord4_arr_0', 'color4d[]', 0, None, 'Input of type colord[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:colord4_arr_1', 'color4d[]', 0, None, 'Input of type colord[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:colorf3_0', 'color3f', 0, None, 'Input of type colorf[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:colorf3_1', 'color3f', 0, None, 'Input of type colorf[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:colorf3_arr_0', 'color3f[]', 0, None, 'Input of type colorf[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:colorf3_arr_1', 'color3f[]', 0, None, 'Input of type colorf[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:colorf4_0', 'color4f', 0, None, 'Input of type colorf[4]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0, 0.0], False, ''),
('inputs:colorf4_1', 'color4f', 0, None, 'Input of type colorf[4]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0, 0.0], False, ''),
('inputs:colorf4_arr_0', 'color4f[]', 0, None, 'Input of type colorf[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:colorf4_arr_1', 'color4f[]', 0, None, 'Input of type colorf[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:colorh3_0', 'color3h', 0, None, 'Input of type colorh[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:colorh3_1', 'color3h', 0, None, 'Input of type colorh[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:colorh3_arr_0', 'color3h[]', 0, None, 'Input of type colorh[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:colorh3_arr_1', 'color3h[]', 0, None, 'Input of type colorh[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:colorh4_0', 'color4h', 0, None, 'Input of type colorh[4]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0, 0.0], False, ''),
('inputs:colorh4_1', 'color4h', 0, None, 'Input of type colorh[4]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0, 0.0], False, ''),
('inputs:colorh4_arr_0', 'color4h[]', 0, None, 'Input of type colorh[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:colorh4_arr_1', 'color4h[]', 0, None, 'Input of type colorh[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:double2_0', 'double2', 0, None, 'Input of type double[2]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0]'}, True, [0.0, 0.0], False, ''),
('inputs:double2_1', 'double2', 0, None, 'Input of type double[2]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0]'}, True, [0.0, 0.0], False, ''),
('inputs:double2_arr_0', 'double2[]', 0, None, 'Input of type double[2][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:double2_arr_1', 'double2[]', 0, None, 'Input of type double[2][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:double3_0', 'double3', 0, None, 'Input of type double[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:double3_1', 'double3', 0, None, 'Input of type double[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:double3_arr_0', 'double3[]', 0, None, 'Input of type double[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:double3_arr_1', 'double3[]', 0, None, 'Input of type double[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:double4_0', 'double4', 0, None, 'Input of type double[4]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0, 0.0], False, ''),
('inputs:double4_1', 'double4', 0, None, 'Input of type double[4]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0, 0.0], False, ''),
('inputs:double4_arr_0', 'double4[]', 0, None, 'Input of type double[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:double4_arr_1', 'double4[]', 0, None, 'Input of type double[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:double_0', 'double', 0, None, 'Input of type double', {ogn.MetadataKeys.DEFAULT: '0.0'}, True, 0.0, False, ''),
('inputs:double_1', 'double', 0, None, 'Input of type double', {ogn.MetadataKeys.DEFAULT: '0.0'}, True, 0.0, False, ''),
('inputs:double_arr_0', 'double[]', 0, None, 'Input of type double[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:double_arr_1', 'double[]', 0, None, 'Input of type double[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:float2_0', 'float2', 0, None, 'Input of type float[2]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0]'}, True, [0.0, 0.0], False, ''),
('inputs:float2_1', 'float2', 0, None, 'Input of type float[2]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0]'}, True, [0.0, 0.0], False, ''),
('inputs:float2_arr_0', 'float2[]', 0, None, 'Input of type float[2][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:float2_arr_1', 'float2[]', 0, None, 'Input of type float[2][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:float3_0', 'float3', 0, None, 'Input of type float[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:float3_1', 'float3', 0, None, 'Input of type float[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:float3_arr_0', 'float3[]', 0, None, 'Input of type float[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:float3_arr_1', 'float3[]', 0, None, 'Input of type float[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:float4_0', 'float4', 0, None, 'Input of type float[4]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0, 0.0], False, ''),
('inputs:float4_1', 'float4', 0, None, 'Input of type float[4]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0, 0.0], False, ''),
('inputs:float4_arr_0', 'float4[]', 0, None, 'Input of type float[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:float4_arr_1', 'float4[]', 0, None, 'Input of type float[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:float_0', 'float', 0, None, 'Input of type float', {ogn.MetadataKeys.DEFAULT: '0.0'}, True, 0.0, False, ''),
('inputs:float_1', 'float', 0, None, 'Input of type float', {ogn.MetadataKeys.DEFAULT: '0.0'}, True, 0.0, False, ''),
('inputs:float_arr_0', 'float[]', 0, None, 'Input of type float[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:float_arr_1', 'float[]', 0, None, 'Input of type float[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:frame4_0', 'frame4d', 0, None, 'Input of type frame[4]', {ogn.MetadataKeys.DEFAULT: '[[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]]'}, True, [[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]], False, ''),
('inputs:frame4_1', 'frame4d', 0, None, 'Input of type frame[4]', {ogn.MetadataKeys.DEFAULT: '[[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]]'}, True, [[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]], False, ''),
('inputs:frame4_arr_0', 'frame4d[]', 0, None, 'Input of type frame[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:frame4_arr_1', 'frame4d[]', 0, None, 'Input of type frame[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:half2_0', 'half2', 0, None, 'Input of type half[2]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0]'}, True, [0.0, 0.0], False, ''),
('inputs:half2_1', 'half2', 0, None, 'Input of type half[2]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0]'}, True, [0.0, 0.0], False, ''),
('inputs:half2_arr_0', 'half2[]', 0, None, 'Input of type half[2][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:half2_arr_1', 'half2[]', 0, None, 'Input of type half[2][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:half3_0', 'half3', 0, None, 'Input of type half[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:half3_1', 'half3', 0, None, 'Input of type half[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:half3_arr_0', 'half3[]', 0, None, 'Input of type half[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:half3_arr_1', 'half3[]', 0, None, 'Input of type half[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:half4_0', 'half4', 0, None, 'Input of type half[4]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0, 0.0], False, ''),
('inputs:half4_1', 'half4', 0, None, 'Input of type half[4]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0, 0.0], False, ''),
('inputs:half4_arr_0', 'half4[]', 0, None, 'Input of type half[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:half4_arr_1', 'half4[]', 0, None, 'Input of type half[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:half_0', 'half', 0, None, 'Input of type half', {ogn.MetadataKeys.DEFAULT: '0.0'}, True, 0.0, False, ''),
('inputs:half_1', 'half', 0, None, 'Input of type half', {ogn.MetadataKeys.DEFAULT: '0.0'}, True, 0.0, False, ''),
('inputs:half_arr_0', 'half[]', 0, None, 'Input of type half[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:half_arr_1', 'half[]', 0, None, 'Input of type half[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:int2_0', 'int2', 0, None, 'Input of type int[2]', {ogn.MetadataKeys.DEFAULT: '[0, 0]'}, True, [0, 0], False, ''),
('inputs:int2_1', 'int2', 0, None, 'Input of type int[2]', {ogn.MetadataKeys.DEFAULT: '[0, 0]'}, True, [0, 0], False, ''),
('inputs:int2_arr_0', 'int2[]', 0, None, 'Input of type int[2][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:int2_arr_1', 'int2[]', 0, None, 'Input of type int[2][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:int3_0', 'int3', 0, None, 'Input of type int[3]', {ogn.MetadataKeys.DEFAULT: '[0, 0, 0]'}, True, [0, 0, 0], False, ''),
('inputs:int3_1', 'int3', 0, None, 'Input of type int[3]', {ogn.MetadataKeys.DEFAULT: '[0, 0, 0]'}, True, [0, 0, 0], False, ''),
('inputs:int3_arr_0', 'int3[]', 0, None, 'Input of type int[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:int3_arr_1', 'int3[]', 0, None, 'Input of type int[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:int4_0', 'int4', 0, None, 'Input of type int[4]', {ogn.MetadataKeys.DEFAULT: '[0, 0, 0, 0]'}, True, [0, 0, 0, 0], False, ''),
('inputs:int4_1', 'int4', 0, None, 'Input of type int[4]', {ogn.MetadataKeys.DEFAULT: '[0, 0, 0, 0]'}, True, [0, 0, 0, 0], False, ''),
('inputs:int4_arr_0', 'int4[]', 0, None, 'Input of type int[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:int4_arr_1', 'int4[]', 0, None, 'Input of type int[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:int64_0', 'int64', 0, None, 'Input of type int64', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
('inputs:int64_1', 'int64', 0, None, 'Input of type int64', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
('inputs:int64_arr_0', 'int64[]', 0, None, 'Input of type int64[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:int64_arr_1', 'int64[]', 0, None, 'Input of type int64[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:int_0', 'int', 0, None, 'Input of type int', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
('inputs:int_1', 'int', 0, None, 'Input of type int', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
('inputs:int_arr_0', 'int[]', 0, None, 'Input of type int[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:int_arr_1', 'int[]', 0, None, 'Input of type int[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:matrixd2_0', 'matrix2d', 0, None, 'Input of type matrixd[2]', {ogn.MetadataKeys.DEFAULT: '[[0.0, 0.0], [0.0, 0.0]]'}, True, [[0.0, 0.0], [0.0, 0.0]], False, ''),
('inputs:matrixd2_1', 'matrix2d', 0, None, 'Input of type matrixd[2]', {ogn.MetadataKeys.DEFAULT: '[[0.0, 0.0], [0.0, 0.0]]'}, True, [[0.0, 0.0], [0.0, 0.0]], False, ''),
('inputs:matrixd2_arr_0', 'matrix2d[]', 0, None, 'Input of type matrixd[2][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:matrixd2_arr_1', 'matrix2d[]', 0, None, 'Input of type matrixd[2][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:matrixd3_0', 'matrix3d', 0, None, 'Input of type matrixd[3]', {ogn.MetadataKeys.DEFAULT: '[[0.0, 0.0, 0.0], [0.0, 0.0, 0.0], [0.0, 0.0, 0.0]]'}, True, [[0.0, 0.0, 0.0], [0.0, 0.0, 0.0], [0.0, 0.0, 0.0]], False, ''),
('inputs:matrixd3_1', 'matrix3d', 0, None, 'Input of type matrixd[3]', {ogn.MetadataKeys.DEFAULT: '[[0.0, 0.0, 0.0], [0.0, 0.0, 0.0], [0.0, 0.0, 0.0]]'}, True, [[0.0, 0.0, 0.0], [0.0, 0.0, 0.0], [0.0, 0.0, 0.0]], False, ''),
('inputs:matrixd3_arr_0', 'matrix3d[]', 0, None, 'Input of type matrixd[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:matrixd3_arr_1', 'matrix3d[]', 0, None, 'Input of type matrixd[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:matrixd4_0', 'matrix4d', 0, None, 'Input of type matrixd[4]', {ogn.MetadataKeys.DEFAULT: '[[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]]'}, True, [[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]], False, ''),
('inputs:matrixd4_1', 'matrix4d', 0, None, 'Input of type matrixd[4]', {ogn.MetadataKeys.DEFAULT: '[[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]]'}, True, [[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]], False, ''),
('inputs:matrixd4_arr_0', 'matrix4d[]', 0, None, 'Input of type matrixd[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:matrixd4_arr_1', 'matrix4d[]', 0, None, 'Input of type matrixd[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:normald3_0', 'normal3d', 0, None, 'Input of type normald[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:normald3_1', 'normal3d', 0, None, 'Input of type normald[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:normald3_arr_0', 'normal3d[]', 0, None, 'Input of type normald[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:normald3_arr_1', 'normal3d[]', 0, None, 'Input of type normald[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:normalf3_0', 'normal3f', 0, None, 'Input of type normalf[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:normalf3_1', 'normal3f', 0, None, 'Input of type normalf[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:normalf3_arr_0', 'normal3f[]', 0, None, 'Input of type normalf[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:normalf3_arr_1', 'normal3f[]', 0, None, 'Input of type normalf[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:normalh3_0', 'normal3h', 0, None, 'Input of type normalh[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:normalh3_1', 'normal3h', 0, None, 'Input of type normalh[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:normalh3_arr_0', 'normal3h[]', 0, None, 'Input of type normalh[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:normalh3_arr_1', 'normal3h[]', 0, None, 'Input of type normalh[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:pointd3_0', 'point3d', 0, None, 'Input of type pointd[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:pointd3_1', 'point3d', 0, None, 'Input of type pointd[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:pointd3_arr_0', 'point3d[]', 0, None, 'Input of type pointd[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:pointd3_arr_1', 'point3d[]', 0, None, 'Input of type pointd[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:pointf3_0', 'point3f', 0, None, 'Input of type pointf[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:pointf3_1', 'point3f', 0, None, 'Input of type pointf[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:pointf3_arr_0', 'point3f[]', 0, None, 'Input of type pointf[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:pointf3_arr_1', 'point3f[]', 0, None, 'Input of type pointf[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:pointh3_0', 'point3h', 0, None, 'Input of type pointh[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:pointh3_1', 'point3h', 0, None, 'Input of type pointh[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:pointh3_arr_0', 'point3h[]', 0, None, 'Input of type pointh[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:pointh3_arr_1', 'point3h[]', 0, None, 'Input of type pointh[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:quatd4_0', 'quatd', 0, None, 'Input of type quatd[4]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0, 0.0], False, ''),
('inputs:quatd4_1', 'quatd', 0, None, 'Input of type quatd[4]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0, 0.0], False, ''),
('inputs:quatd4_arr_0', 'quatd[]', 0, None, 'Input of type quatd[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:quatd4_arr_1', 'quatd[]', 0, None, 'Input of type quatd[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:quatf4_0', 'quatf', 0, None, 'Input of type quatf[4]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0, 0.0], False, ''),
('inputs:quatf4_1', 'quatf', 0, None, 'Input of type quatf[4]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0, 0.0], False, ''),
('inputs:quatf4_arr_0', 'quatf[]', 0, None, 'Input of type quatf[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:quatf4_arr_1', 'quatf[]', 0, None, 'Input of type quatf[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:quath4_0', 'quath', 0, None, 'Input of type quath[4]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0, 0.0], False, ''),
('inputs:quath4_1', 'quath', 0, None, 'Input of type quath[4]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0, 0.0], False, ''),
('inputs:quath4_arr_0', 'quath[]', 0, None, 'Input of type quath[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:quath4_arr_1', 'quath[]', 0, None, 'Input of type quath[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:texcoordd2_0', 'texCoord2d', 0, None, 'Input of type texcoordd[2]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0]'}, True, [0.0, 0.0], False, ''),
('inputs:texcoordd2_1', 'texCoord2d', 0, None, 'Input of type texcoordd[2]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0]'}, True, [0.0, 0.0], False, ''),
('inputs:texcoordd2_arr_0', 'texCoord2d[]', 0, None, 'Input of type texcoordd[2][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:texcoordd2_arr_1', 'texCoord2d[]', 0, None, 'Input of type texcoordd[2][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:texcoordd3_0', 'texCoord3d', 0, None, 'Input of type texcoordd[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:texcoordd3_1', 'texCoord3d', 0, None, 'Input of type texcoordd[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:texcoordd3_arr_0', 'texCoord3d[]', 0, None, 'Input of type texcoordd[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:texcoordd3_arr_1', 'texCoord3d[]', 0, None, 'Input of type texcoordd[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:texcoordf2_0', 'texCoord2f', 0, None, 'Input of type texcoordf[2]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0]'}, True, [0.0, 0.0], False, ''),
('inputs:texcoordf2_1', 'texCoord2f', 0, None, 'Input of type texcoordf[2]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0]'}, True, [0.0, 0.0], False, ''),
('inputs:texcoordf2_arr_0', 'texCoord2f[]', 0, None, 'Input of type texcoordf[2][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:texcoordf2_arr_1', 'texCoord2f[]', 0, None, 'Input of type texcoordf[2][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:texcoordf3_0', 'texCoord3f', 0, None, 'Input of type texcoordf[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:texcoordf3_1', 'texCoord3f', 0, None, 'Input of type texcoordf[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:texcoordf3_arr_0', 'texCoord3f[]', 0, None, 'Input of type texcoordf[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:texcoordf3_arr_1', 'texCoord3f[]', 0, None, 'Input of type texcoordf[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:texcoordh2_0', 'texCoord2h', 0, None, 'Input of type texcoordh[2]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0]'}, True, [0.0, 0.0], False, ''),
('inputs:texcoordh2_1', 'texCoord2h', 0, None, 'Input of type texcoordh[2]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0]'}, True, [0.0, 0.0], False, ''),
('inputs:texcoordh2_arr_0', 'texCoord2h[]', 0, None, 'Input of type texcoordh[2][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:texcoordh2_arr_1', 'texCoord2h[]', 0, None, 'Input of type texcoordh[2][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:texcoordh3_0', 'texCoord3h', 0, None, 'Input of type texcoordh[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:texcoordh3_1', 'texCoord3h', 0, None, 'Input of type texcoordh[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:texcoordh3_arr_0', 'texCoord3h[]', 0, None, 'Input of type texcoordh[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:texcoordh3_arr_1', 'texCoord3h[]', 0, None, 'Input of type texcoordh[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:timecode_0', 'timecode', 0, None, 'Input of type timecode', {ogn.MetadataKeys.DEFAULT: '0.0'}, True, 0.0, False, ''),
('inputs:timecode_1', 'timecode', 0, None, 'Input of type timecode', {ogn.MetadataKeys.DEFAULT: '0.0'}, True, 0.0, False, ''),
('inputs:timecode_arr_0', 'timecode[]', 0, None, 'Input of type timecode[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:timecode_arr_1', 'timecode[]', 0, None, 'Input of type timecode[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:token_0', 'token', 0, None, 'Input of type token', {ogn.MetadataKeys.DEFAULT: '"default_token"'}, True, "default_token", False, ''),
('inputs:token_1', 'token', 0, None, 'Input of type token', {ogn.MetadataKeys.DEFAULT: '"default_token"'}, True, "default_token", False, ''),
('inputs:token_arr_0', 'token[]', 0, None, 'Input of type token[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:token_arr_1', 'token[]', 0, None, 'Input of type token[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:transform4_0', 'frame4d', 0, None, 'Input of type transform[4]', {ogn.MetadataKeys.DEFAULT: '[[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]]'}, True, [[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]], False, ''),
('inputs:transform4_1', 'frame4d', 0, None, 'Input of type transform[4]', {ogn.MetadataKeys.DEFAULT: '[[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]]'}, True, [[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]], False, ''),
('inputs:transform4_arr_0', 'frame4d[]', 0, None, 'Input of type transform[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:transform4_arr_1', 'frame4d[]', 0, None, 'Input of type transform[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:uchar_0', 'uchar', 0, None, 'Input of type uchar', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
('inputs:uchar_1', 'uchar', 0, None, 'Input of type uchar', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
('inputs:uchar_arr_0', 'uchar[]', 0, None, 'Input of type uchar[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:uchar_arr_1', 'uchar[]', 0, None, 'Input of type uchar[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:uint64_0', 'uint64', 0, None, 'Input of type uint64', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
('inputs:uint64_1', 'uint64', 0, None, 'Input of type uint64', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
('inputs:uint64_arr_0', 'uint64[]', 0, None, 'Input of type uint64[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:uint64_arr_1', 'uint64[]', 0, None, 'Input of type uint64[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:uint_0', 'uint', 0, None, 'Input of type uint', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
('inputs:uint_1', 'uint', 0, None, 'Input of type uint', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
('inputs:uint_arr_0', 'uint[]', 0, None, 'Input of type uint[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:uint_arr_1', 'uint[]', 0, None, 'Input of type uint[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:vectord3_0', 'vector3d', 0, None, 'Input of type vectord[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:vectord3_1', 'vector3d', 0, None, 'Input of type vectord[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:vectord3_arr_0', 'vector3d[]', 0, None, 'Input of type vectord[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:vectord3_arr_1', 'vector3d[]', 0, None, 'Input of type vectord[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:vectorf3_0', 'vector3f', 0, None, 'Input of type vectorf[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:vectorf3_1', 'vector3f', 0, None, 'Input of type vectorf[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:vectorf3_arr_0', 'vector3f[]', 0, None, 'Input of type vectorf[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:vectorf3_arr_1', 'vector3f[]', 0, None, 'Input of type vectorf[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:vectorh3_0', 'vector3h', 0, None, 'Input of type vectorh[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:vectorh3_1', 'vector3h', 0, None, 'Input of type vectorh[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('inputs:vectorh3_arr_0', 'vector3h[]', 0, None, 'Input of type vectorh[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('inputs:vectorh3_arr_1', 'vector3h[]', 0, None, 'Input of type vectorh[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:bool_0', 'bool', 0, None, 'Output of type bool', {ogn.MetadataKeys.DEFAULT: 'false'}, True, False, False, ''),
('outputs:bool_arr_0', 'bool[]', 0, None, 'Output of type bool[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:colord3_0', 'color3d', 0, None, 'Output of type colord[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('outputs:colord3_arr_0', 'color3d[]', 0, None, 'Output of type colord[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:colord4_0', 'color4d', 0, None, 'Output of type colord[4]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0, 0.0], False, ''),
('outputs:colord4_arr_0', 'color4d[]', 0, None, 'Output of type colord[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:colorf3_0', 'color3f', 0, None, 'Output of type colorf[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('outputs:colorf3_arr_0', 'color3f[]', 0, None, 'Output of type colorf[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:colorf4_0', 'color4f', 0, None, 'Output of type colorf[4]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0, 0.0], False, ''),
('outputs:colorf4_arr_0', 'color4f[]', 0, None, 'Output of type colorf[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:colorh3_0', 'color3h', 0, None, 'Output of type colorh[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('outputs:colorh3_arr_0', 'color3h[]', 0, None, 'Output of type colorh[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:colorh4_0', 'color4h', 0, None, 'Output of type colorh[4]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0, 0.0], False, ''),
('outputs:colorh4_arr_0', 'color4h[]', 0, None, 'Output of type colorh[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:double2_0', 'double2', 0, None, 'Output of type double[2]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0]'}, True, [0.0, 0.0], False, ''),
('outputs:double2_arr_0', 'double2[]', 0, None, 'Output of type double[2][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:double3_0', 'double3', 0, None, 'Output of type double[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('outputs:double3_arr_0', 'double3[]', 0, None, 'Output of type double[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:double4_0', 'double4', 0, None, 'Output of type double[4]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0, 0.0], False, ''),
('outputs:double4_arr_0', 'double4[]', 0, None, 'Output of type double[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:double_0', 'double', 0, None, 'Output of type double', {ogn.MetadataKeys.DEFAULT: '0.0'}, True, 0.0, False, ''),
('outputs:double_arr_0', 'double[]', 0, None, 'Output of type double[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:float2_0', 'float2', 0, None, 'Output of type float[2]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0]'}, True, [0.0, 0.0], False, ''),
('outputs:float2_arr_0', 'float2[]', 0, None, 'Output of type float[2][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:float3_0', 'float3', 0, None, 'Output of type float[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('outputs:float3_arr_0', 'float3[]', 0, None, 'Output of type float[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:float4_0', 'float4', 0, None, 'Output of type float[4]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0, 0.0], False, ''),
('outputs:float4_arr_0', 'float4[]', 0, None, 'Output of type float[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:float_0', 'float', 0, None, 'Output of type float', {ogn.MetadataKeys.DEFAULT: '0.0'}, True, 0.0, False, ''),
('outputs:float_arr_0', 'float[]', 0, None, 'Output of type float[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:frame4_0', 'frame4d', 0, None, 'Output of type frame[4]', {ogn.MetadataKeys.DEFAULT: '[[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]]'}, True, [[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]], False, ''),
('outputs:frame4_arr_0', 'frame4d[]', 0, None, 'Output of type frame[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:half2_0', 'half2', 0, None, 'Output of type half[2]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0]'}, True, [0.0, 0.0], False, ''),
('outputs:half2_arr_0', 'half2[]', 0, None, 'Output of type half[2][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:half3_0', 'half3', 0, None, 'Output of type half[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('outputs:half3_arr_0', 'half3[]', 0, None, 'Output of type half[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:half4_0', 'half4', 0, None, 'Output of type half[4]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0, 0.0], False, ''),
('outputs:half4_arr_0', 'half4[]', 0, None, 'Output of type half[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:half_0', 'half', 0, None, 'Output of type half', {ogn.MetadataKeys.DEFAULT: '0.0'}, True, 0.0, False, ''),
('outputs:half_arr_0', 'half[]', 0, None, 'Output of type half[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:int2_0', 'int2', 0, None, 'Output of type int[2]', {ogn.MetadataKeys.DEFAULT: '[0, 0]'}, True, [0, 0], False, ''),
('outputs:int2_arr_0', 'int2[]', 0, None, 'Output of type int[2][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:int3_0', 'int3', 0, None, 'Output of type int[3]', {ogn.MetadataKeys.DEFAULT: '[0, 0, 0]'}, True, [0, 0, 0], False, ''),
('outputs:int3_arr_0', 'int3[]', 0, None, 'Output of type int[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:int4_0', 'int4', 0, None, 'Output of type int[4]', {ogn.MetadataKeys.DEFAULT: '[0, 0, 0, 0]'}, True, [0, 0, 0, 0], False, ''),
('outputs:int4_arr_0', 'int4[]', 0, None, 'Output of type int[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:int64_0', 'int64', 0, None, 'Output of type int64', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
('outputs:int64_arr_0', 'int64[]', 0, None, 'Output of type int64[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:int_0', 'int', 0, None, 'Output of type int', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
('outputs:int_arr_0', 'int[]', 0, None, 'Output of type int[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:matrixd2_0', 'matrix2d', 0, None, 'Output of type matrixd[2]', {ogn.MetadataKeys.DEFAULT: '[[0.0, 0.0], [0.0, 0.0]]'}, True, [[0.0, 0.0], [0.0, 0.0]], False, ''),
('outputs:matrixd2_arr_0', 'matrix2d[]', 0, None, 'Output of type matrixd[2][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:matrixd3_0', 'matrix3d', 0, None, 'Output of type matrixd[3]', {ogn.MetadataKeys.DEFAULT: '[[0.0, 0.0, 0.0], [0.0, 0.0, 0.0], [0.0, 0.0, 0.0]]'}, True, [[0.0, 0.0, 0.0], [0.0, 0.0, 0.0], [0.0, 0.0, 0.0]], False, ''),
('outputs:matrixd3_arr_0', 'matrix3d[]', 0, None, 'Output of type matrixd[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:matrixd4_0', 'matrix4d', 0, None, 'Output of type matrixd[4]', {ogn.MetadataKeys.DEFAULT: '[[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]]'}, True, [[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]], False, ''),
('outputs:matrixd4_arr_0', 'matrix4d[]', 0, None, 'Output of type matrixd[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:normald3_0', 'normal3d', 0, None, 'Output of type normald[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('outputs:normald3_arr_0', 'normal3d[]', 0, None, 'Output of type normald[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:normalf3_0', 'normal3f', 0, None, 'Output of type normalf[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('outputs:normalf3_arr_0', 'normal3f[]', 0, None, 'Output of type normalf[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:normalh3_0', 'normal3h', 0, None, 'Output of type normalh[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('outputs:normalh3_arr_0', 'normal3h[]', 0, None, 'Output of type normalh[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:pointd3_0', 'point3d', 0, None, 'Output of type pointd[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('outputs:pointd3_arr_0', 'point3d[]', 0, None, 'Output of type pointd[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:pointf3_0', 'point3f', 0, None, 'Output of type pointf[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('outputs:pointf3_arr_0', 'point3f[]', 0, None, 'Output of type pointf[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:pointh3_0', 'point3h', 0, None, 'Output of type pointh[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('outputs:pointh3_arr_0', 'point3h[]', 0, None, 'Output of type pointh[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:quatd4_0', 'quatd', 0, None, 'Output of type quatd[4]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0, 0.0], False, ''),
('outputs:quatd4_arr_0', 'quatd[]', 0, None, 'Output of type quatd[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:quatf4_0', 'quatf', 0, None, 'Output of type quatf[4]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0, 0.0], False, ''),
('outputs:quatf4_arr_0', 'quatf[]', 0, None, 'Output of type quatf[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:quath4_0', 'quath', 0, None, 'Output of type quath[4]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0, 0.0], False, ''),
('outputs:quath4_arr_0', 'quath[]', 0, None, 'Output of type quath[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:texcoordd2_0', 'texCoord2d', 0, None, 'Output of type texcoordd[2]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0]'}, True, [0.0, 0.0], False, ''),
('outputs:texcoordd2_arr_0', 'texCoord2d[]', 0, None, 'Output of type texcoordd[2][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:texcoordd3_0', 'texCoord3d', 0, None, 'Output of type texcoordd[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('outputs:texcoordd3_arr_0', 'texCoord3d[]', 0, None, 'Output of type texcoordd[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:texcoordf2_0', 'texCoord2f', 0, None, 'Output of type texcoordf[2]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0]'}, True, [0.0, 0.0], False, ''),
('outputs:texcoordf2_arr_0', 'texCoord2f[]', 0, None, 'Output of type texcoordf[2][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:texcoordf3_0', 'texCoord3f', 0, None, 'Output of type texcoordf[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('outputs:texcoordf3_arr_0', 'texCoord3f[]', 0, None, 'Output of type texcoordf[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:texcoordh2_0', 'texCoord2h', 0, None, 'Output of type texcoordh[2]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0]'}, True, [0.0, 0.0], False, ''),
('outputs:texcoordh2_arr_0', 'texCoord2h[]', 0, None, 'Output of type texcoordh[2][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:texcoordh3_0', 'texCoord3h', 0, None, 'Output of type texcoordh[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('outputs:texcoordh3_arr_0', 'texCoord3h[]', 0, None, 'Output of type texcoordh[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:timecode_0', 'timecode', 0, None, 'Output of type timecode', {ogn.MetadataKeys.DEFAULT: '0.0'}, True, 0.0, False, ''),
('outputs:timecode_arr_0', 'timecode[]', 0, None, 'Output of type timecode[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:token_0', 'token', 0, None, 'Output of type token', {ogn.MetadataKeys.DEFAULT: '"default_token"'}, True, "default_token", False, ''),
('outputs:token_arr_0', 'token[]', 0, None, 'Output of type token[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:transform4_0', 'frame4d', 0, None, 'Output of type transform[4]', {ogn.MetadataKeys.DEFAULT: '[[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]]'}, True, [[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]], False, ''),
('outputs:transform4_arr_0', 'frame4d[]', 0, None, 'Output of type transform[4][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:uchar_0', 'uchar', 0, None, 'Output of type uchar', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
('outputs:uchar_arr_0', 'uchar[]', 0, None, 'Output of type uchar[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:uint64_0', 'uint64', 0, None, 'Output of type uint64', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
('outputs:uint64_arr_0', 'uint64[]', 0, None, 'Output of type uint64[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:uint_0', 'uint', 0, None, 'Output of type uint', {ogn.MetadataKeys.DEFAULT: '0'}, True, 0, False, ''),
('outputs:uint_arr_0', 'uint[]', 0, None, 'Output of type uint[]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:vectord3_0', 'vector3d', 0, None, 'Output of type vectord[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('outputs:vectord3_arr_0', 'vector3d[]', 0, None, 'Output of type vectord[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:vectorf3_0', 'vector3f', 0, None, 'Output of type vectorf[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('outputs:vectorf3_arr_0', 'vector3f[]', 0, None, 'Output of type vectorf[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], False, ''),
('outputs:vectorh3_0', 'vector3h', 0, None, 'Output of type vectorh[3]', {ogn.MetadataKeys.DEFAULT: '[0.0, 0.0, 0.0]'}, True, [0.0, 0.0, 0.0], False, ''),
('outputs:vectorh3_arr_0', 'vector3h[]', 0, None, 'Output of type vectorh[3][]', {ogn.MetadataKeys.DEFAULT: '[]'}, True, [], 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.colord3_0 = og.AttributeRole.COLOR
role_data.inputs.colord3_1 = og.AttributeRole.COLOR
role_data.inputs.colord3_arr_0 = og.AttributeRole.COLOR
role_data.inputs.colord3_arr_1 = og.AttributeRole.COLOR
role_data.inputs.colord4_0 = og.AttributeRole.COLOR
role_data.inputs.colord4_1 = og.AttributeRole.COLOR
role_data.inputs.colord4_arr_0 = og.AttributeRole.COLOR
role_data.inputs.colord4_arr_1 = og.AttributeRole.COLOR
role_data.inputs.colorf3_0 = og.AttributeRole.COLOR
role_data.inputs.colorf3_1 = og.AttributeRole.COLOR
role_data.inputs.colorf3_arr_0 = og.AttributeRole.COLOR
role_data.inputs.colorf3_arr_1 = og.AttributeRole.COLOR
role_data.inputs.colorf4_0 = og.AttributeRole.COLOR
role_data.inputs.colorf4_1 = og.AttributeRole.COLOR
role_data.inputs.colorf4_arr_0 = og.AttributeRole.COLOR
role_data.inputs.colorf4_arr_1 = og.AttributeRole.COLOR
role_data.inputs.colorh3_0 = og.AttributeRole.COLOR
role_data.inputs.colorh3_1 = og.AttributeRole.COLOR
role_data.inputs.colorh3_arr_0 = og.AttributeRole.COLOR
role_data.inputs.colorh3_arr_1 = og.AttributeRole.COLOR
role_data.inputs.colorh4_0 = og.AttributeRole.COLOR
role_data.inputs.colorh4_1 = og.AttributeRole.COLOR
role_data.inputs.colorh4_arr_0 = og.AttributeRole.COLOR
role_data.inputs.colorh4_arr_1 = og.AttributeRole.COLOR
role_data.inputs.frame4_0 = og.AttributeRole.FRAME
role_data.inputs.frame4_1 = og.AttributeRole.FRAME
role_data.inputs.frame4_arr_0 = og.AttributeRole.FRAME
role_data.inputs.frame4_arr_1 = og.AttributeRole.FRAME
role_data.inputs.matrixd2_0 = og.AttributeRole.MATRIX
role_data.inputs.matrixd2_1 = og.AttributeRole.MATRIX
role_data.inputs.matrixd2_arr_0 = og.AttributeRole.MATRIX
role_data.inputs.matrixd2_arr_1 = og.AttributeRole.MATRIX
role_data.inputs.matrixd3_0 = og.AttributeRole.MATRIX
role_data.inputs.matrixd3_1 = og.AttributeRole.MATRIX
role_data.inputs.matrixd3_arr_0 = og.AttributeRole.MATRIX
role_data.inputs.matrixd3_arr_1 = og.AttributeRole.MATRIX
role_data.inputs.matrixd4_0 = og.AttributeRole.MATRIX
role_data.inputs.matrixd4_1 = og.AttributeRole.MATRIX
role_data.inputs.matrixd4_arr_0 = og.AttributeRole.MATRIX
role_data.inputs.matrixd4_arr_1 = og.AttributeRole.MATRIX
role_data.inputs.normald3_0 = og.AttributeRole.NORMAL
role_data.inputs.normald3_1 = og.AttributeRole.NORMAL
role_data.inputs.normald3_arr_0 = og.AttributeRole.NORMAL
role_data.inputs.normald3_arr_1 = og.AttributeRole.NORMAL
role_data.inputs.normalf3_0 = og.AttributeRole.NORMAL
role_data.inputs.normalf3_1 = og.AttributeRole.NORMAL
role_data.inputs.normalf3_arr_0 = og.AttributeRole.NORMAL
role_data.inputs.normalf3_arr_1 = og.AttributeRole.NORMAL
role_data.inputs.normalh3_0 = og.AttributeRole.NORMAL
role_data.inputs.normalh3_1 = og.AttributeRole.NORMAL
role_data.inputs.normalh3_arr_0 = og.AttributeRole.NORMAL
role_data.inputs.normalh3_arr_1 = og.AttributeRole.NORMAL
role_data.inputs.pointd3_0 = og.AttributeRole.POSITION
role_data.inputs.pointd3_1 = og.AttributeRole.POSITION
role_data.inputs.pointd3_arr_0 = og.AttributeRole.POSITION
role_data.inputs.pointd3_arr_1 = og.AttributeRole.POSITION
role_data.inputs.pointf3_0 = og.AttributeRole.POSITION
role_data.inputs.pointf3_1 = og.AttributeRole.POSITION
role_data.inputs.pointf3_arr_0 = og.AttributeRole.POSITION
role_data.inputs.pointf3_arr_1 = og.AttributeRole.POSITION
role_data.inputs.pointh3_0 = og.AttributeRole.POSITION
role_data.inputs.pointh3_1 = og.AttributeRole.POSITION
role_data.inputs.pointh3_arr_0 = og.AttributeRole.POSITION
role_data.inputs.pointh3_arr_1 = og.AttributeRole.POSITION
role_data.inputs.quatd4_0 = og.AttributeRole.QUATERNION
role_data.inputs.quatd4_1 = og.AttributeRole.QUATERNION
role_data.inputs.quatd4_arr_0 = og.AttributeRole.QUATERNION
role_data.inputs.quatd4_arr_1 = og.AttributeRole.QUATERNION
role_data.inputs.quatf4_0 = og.AttributeRole.QUATERNION
role_data.inputs.quatf4_1 = og.AttributeRole.QUATERNION
role_data.inputs.quatf4_arr_0 = og.AttributeRole.QUATERNION
role_data.inputs.quatf4_arr_1 = og.AttributeRole.QUATERNION
role_data.inputs.quath4_0 = og.AttributeRole.QUATERNION
role_data.inputs.quath4_1 = og.AttributeRole.QUATERNION
role_data.inputs.quath4_arr_0 = og.AttributeRole.QUATERNION
role_data.inputs.quath4_arr_1 = og.AttributeRole.QUATERNION
role_data.inputs.texcoordd2_0 = og.AttributeRole.TEXCOORD
role_data.inputs.texcoordd2_1 = og.AttributeRole.TEXCOORD
role_data.inputs.texcoordd2_arr_0 = og.AttributeRole.TEXCOORD
role_data.inputs.texcoordd2_arr_1 = og.AttributeRole.TEXCOORD
role_data.inputs.texcoordd3_0 = og.AttributeRole.TEXCOORD
role_data.inputs.texcoordd3_1 = og.AttributeRole.TEXCOORD
role_data.inputs.texcoordd3_arr_0 = og.AttributeRole.TEXCOORD
role_data.inputs.texcoordd3_arr_1 = og.AttributeRole.TEXCOORD
role_data.inputs.texcoordf2_0 = og.AttributeRole.TEXCOORD
role_data.inputs.texcoordf2_1 = og.AttributeRole.TEXCOORD
role_data.inputs.texcoordf2_arr_0 = og.AttributeRole.TEXCOORD
role_data.inputs.texcoordf2_arr_1 = og.AttributeRole.TEXCOORD
role_data.inputs.texcoordf3_0 = og.AttributeRole.TEXCOORD
role_data.inputs.texcoordf3_1 = og.AttributeRole.TEXCOORD
role_data.inputs.texcoordf3_arr_0 = og.AttributeRole.TEXCOORD
role_data.inputs.texcoordf3_arr_1 = og.AttributeRole.TEXCOORD
role_data.inputs.texcoordh2_0 = og.AttributeRole.TEXCOORD
role_data.inputs.texcoordh2_1 = og.AttributeRole.TEXCOORD
role_data.inputs.texcoordh2_arr_0 = og.AttributeRole.TEXCOORD
role_data.inputs.texcoordh2_arr_1 = og.AttributeRole.TEXCOORD
role_data.inputs.texcoordh3_0 = og.AttributeRole.TEXCOORD
role_data.inputs.texcoordh3_1 = og.AttributeRole.TEXCOORD
role_data.inputs.texcoordh3_arr_0 = og.AttributeRole.TEXCOORD
role_data.inputs.texcoordh3_arr_1 = og.AttributeRole.TEXCOORD
role_data.inputs.timecode_0 = og.AttributeRole.TIMECODE
role_data.inputs.timecode_1 = og.AttributeRole.TIMECODE
role_data.inputs.timecode_arr_0 = og.AttributeRole.TIMECODE
role_data.inputs.timecode_arr_1 = og.AttributeRole.TIMECODE
role_data.inputs.transform4_0 = og.AttributeRole.TRANSFORM
role_data.inputs.transform4_1 = og.AttributeRole.TRANSFORM
role_data.inputs.transform4_arr_0 = og.AttributeRole.TRANSFORM
role_data.inputs.transform4_arr_1 = og.AttributeRole.TRANSFORM
role_data.inputs.vectord3_0 = og.AttributeRole.VECTOR
role_data.inputs.vectord3_1 = og.AttributeRole.VECTOR
role_data.inputs.vectord3_arr_0 = og.AttributeRole.VECTOR
role_data.inputs.vectord3_arr_1 = og.AttributeRole.VECTOR
role_data.inputs.vectorf3_0 = og.AttributeRole.VECTOR
role_data.inputs.vectorf3_1 = og.AttributeRole.VECTOR
role_data.inputs.vectorf3_arr_0 = og.AttributeRole.VECTOR
role_data.inputs.vectorf3_arr_1 = og.AttributeRole.VECTOR
role_data.inputs.vectorh3_0 = og.AttributeRole.VECTOR
role_data.inputs.vectorh3_1 = og.AttributeRole.VECTOR
role_data.inputs.vectorh3_arr_0 = og.AttributeRole.VECTOR
role_data.inputs.vectorh3_arr_1 = og.AttributeRole.VECTOR
role_data.outputs.colord3_0 = og.AttributeRole.COLOR
role_data.outputs.colord3_arr_0 = og.AttributeRole.COLOR
role_data.outputs.colord4_0 = og.AttributeRole.COLOR
role_data.outputs.colord4_arr_0 = og.AttributeRole.COLOR
role_data.outputs.colorf3_0 = og.AttributeRole.COLOR
role_data.outputs.colorf3_arr_0 = og.AttributeRole.COLOR
role_data.outputs.colorf4_0 = og.AttributeRole.COLOR
role_data.outputs.colorf4_arr_0 = og.AttributeRole.COLOR
role_data.outputs.colorh3_0 = og.AttributeRole.COLOR
role_data.outputs.colorh3_arr_0 = og.AttributeRole.COLOR
role_data.outputs.colorh4_0 = og.AttributeRole.COLOR
role_data.outputs.colorh4_arr_0 = og.AttributeRole.COLOR
role_data.outputs.frame4_0 = og.AttributeRole.FRAME
role_data.outputs.frame4_arr_0 = og.AttributeRole.FRAME
role_data.outputs.matrixd2_0 = og.AttributeRole.MATRIX
role_data.outputs.matrixd2_arr_0 = og.AttributeRole.MATRIX
role_data.outputs.matrixd3_0 = og.AttributeRole.MATRIX
role_data.outputs.matrixd3_arr_0 = og.AttributeRole.MATRIX
role_data.outputs.matrixd4_0 = og.AttributeRole.MATRIX
role_data.outputs.matrixd4_arr_0 = og.AttributeRole.MATRIX
role_data.outputs.normald3_0 = og.AttributeRole.NORMAL
role_data.outputs.normald3_arr_0 = og.AttributeRole.NORMAL
role_data.outputs.normalf3_0 = og.AttributeRole.NORMAL
role_data.outputs.normalf3_arr_0 = og.AttributeRole.NORMAL
role_data.outputs.normalh3_0 = og.AttributeRole.NORMAL
role_data.outputs.normalh3_arr_0 = og.AttributeRole.NORMAL
role_data.outputs.pointd3_0 = og.AttributeRole.POSITION
role_data.outputs.pointd3_arr_0 = og.AttributeRole.POSITION
role_data.outputs.pointf3_0 = og.AttributeRole.POSITION
role_data.outputs.pointf3_arr_0 = og.AttributeRole.POSITION
role_data.outputs.pointh3_0 = og.AttributeRole.POSITION
role_data.outputs.pointh3_arr_0 = og.AttributeRole.POSITION
role_data.outputs.quatd4_0 = og.AttributeRole.QUATERNION
role_data.outputs.quatd4_arr_0 = og.AttributeRole.QUATERNION
role_data.outputs.quatf4_0 = og.AttributeRole.QUATERNION
role_data.outputs.quatf4_arr_0 = og.AttributeRole.QUATERNION
role_data.outputs.quath4_0 = og.AttributeRole.QUATERNION
role_data.outputs.quath4_arr_0 = og.AttributeRole.QUATERNION
role_data.outputs.texcoordd2_0 = og.AttributeRole.TEXCOORD
role_data.outputs.texcoordd2_arr_0 = og.AttributeRole.TEXCOORD
role_data.outputs.texcoordd3_0 = og.AttributeRole.TEXCOORD
role_data.outputs.texcoordd3_arr_0 = og.AttributeRole.TEXCOORD
role_data.outputs.texcoordf2_0 = og.AttributeRole.TEXCOORD
role_data.outputs.texcoordf2_arr_0 = og.AttributeRole.TEXCOORD
role_data.outputs.texcoordf3_0 = og.AttributeRole.TEXCOORD
role_data.outputs.texcoordf3_arr_0 = og.AttributeRole.TEXCOORD
role_data.outputs.texcoordh2_0 = og.AttributeRole.TEXCOORD
role_data.outputs.texcoordh2_arr_0 = og.AttributeRole.TEXCOORD
role_data.outputs.texcoordh3_0 = og.AttributeRole.TEXCOORD
role_data.outputs.texcoordh3_arr_0 = og.AttributeRole.TEXCOORD
role_data.outputs.timecode_0 = og.AttributeRole.TIMECODE
role_data.outputs.timecode_arr_0 = og.AttributeRole.TIMECODE
role_data.outputs.transform4_0 = og.AttributeRole.TRANSFORM
role_data.outputs.transform4_arr_0 = og.AttributeRole.TRANSFORM
role_data.outputs.vectord3_0 = og.AttributeRole.VECTOR
role_data.outputs.vectord3_arr_0 = og.AttributeRole.VECTOR
role_data.outputs.vectorf3_0 = og.AttributeRole.VECTOR
role_data.outputs.vectorf3_arr_0 = og.AttributeRole.VECTOR
role_data.outputs.vectorh3_0 = og.AttributeRole.VECTOR
role_data.outputs.vectorh3_arr_0 = og.AttributeRole.VECTOR
return role_data
class ValuesForInputs(og.DynamicAttributeAccess):
LOCAL_PROPERTY_NAMES = {"bool_0", "bool_1", "colord3_0", "colord3_1", "colord4_0", "colord4_1", "colorf3_0", "colorf3_1", "colorf4_0", "colorf4_1", "colorh3_0", "colorh3_1", "colorh4_0", "colorh4_1", "double2_0", "double2_1", "double3_0", "double3_1", "double4_0", "double4_1", "double_0", "double_1", "float2_0", "float2_1", "float3_0", "float3_1", "float4_0", "float4_1", "float_0", "float_1", "frame4_0", "frame4_1", "half2_0", "half2_1", "half3_0", "half3_1", "half4_0", "half4_1", "half_0", "half_1", "int2_0", "int2_1", "int3_0", "int3_1", "int4_0", "int4_1", "int64_0", "int64_1", "int_0", "int_1", "matrixd2_0", "matrixd2_1", "matrixd3_0", "matrixd3_1", "matrixd4_0", "matrixd4_1", "normald3_0", "normald3_1", "normalf3_0", "normalf3_1", "normalh3_0", "normalh3_1", "pointd3_0", "pointd3_1", "pointf3_0", "pointf3_1", "pointh3_0", "pointh3_1", "quatd4_0", "quatd4_1", "quatf4_0", "quatf4_1", "quath4_0", "quath4_1", "texcoordd2_0", "texcoordd2_1", "texcoordd3_0", "texcoordd3_1", "texcoordf2_0", "texcoordf2_1", "texcoordf3_0", "texcoordf3_1", "texcoordh2_0", "texcoordh2_1", "texcoordh3_0", "texcoordh3_1", "timecode_0", "timecode_1", "token_0", "token_1", "transform4_0", "transform4_1", "uchar_0", "uchar_1", "uint64_0", "uint64_1", "uint_0", "uint_1", "vectord3_0", "vectord3_1", "vectorf3_0", "vectorf3_1", "vectorh3_0", "vectorh3_1", "_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.bool_0, self._attributes.bool_1, self._attributes.colord3_0, self._attributes.colord3_1, self._attributes.colord4_0, self._attributes.colord4_1, self._attributes.colorf3_0, self._attributes.colorf3_1, self._attributes.colorf4_0, self._attributes.colorf4_1, self._attributes.colorh3_0, self._attributes.colorh3_1, self._attributes.colorh4_0, self._attributes.colorh4_1, self._attributes.double2_0, self._attributes.double2_1, self._attributes.double3_0, self._attributes.double3_1, self._attributes.double4_0, self._attributes.double4_1, self._attributes.double_0, self._attributes.double_1, self._attributes.float2_0, self._attributes.float2_1, self._attributes.float3_0, self._attributes.float3_1, self._attributes.float4_0, self._attributes.float4_1, self._attributes.float_0, self._attributes.float_1, self._attributes.frame4_0, self._attributes.frame4_1, self._attributes.half2_0, self._attributes.half2_1, self._attributes.half3_0, self._attributes.half3_1, self._attributes.half4_0, self._attributes.half4_1, self._attributes.half_0, self._attributes.half_1, self._attributes.int2_0, self._attributes.int2_1, self._attributes.int3_0, self._attributes.int3_1, self._attributes.int4_0, self._attributes.int4_1, self._attributes.int64_0, self._attributes.int64_1, self._attributes.int_0, self._attributes.int_1, self._attributes.matrixd2_0, self._attributes.matrixd2_1, self._attributes.matrixd3_0, self._attributes.matrixd3_1, self._attributes.matrixd4_0, self._attributes.matrixd4_1, self._attributes.normald3_0, self._attributes.normald3_1, self._attributes.normalf3_0, self._attributes.normalf3_1, self._attributes.normalh3_0, self._attributes.normalh3_1, self._attributes.pointd3_0, self._attributes.pointd3_1, self._attributes.pointf3_0, self._attributes.pointf3_1, self._attributes.pointh3_0, self._attributes.pointh3_1, self._attributes.quatd4_0, self._attributes.quatd4_1, self._attributes.quatf4_0, self._attributes.quatf4_1, self._attributes.quath4_0, self._attributes.quath4_1, self._attributes.texcoordd2_0, self._attributes.texcoordd2_1, self._attributes.texcoordd3_0, self._attributes.texcoordd3_1, self._attributes.texcoordf2_0, self._attributes.texcoordf2_1, self._attributes.texcoordf3_0, self._attributes.texcoordf3_1, self._attributes.texcoordh2_0, self._attributes.texcoordh2_1, self._attributes.texcoordh3_0, self._attributes.texcoordh3_1, self._attributes.timecode_0, self._attributes.timecode_1, self._attributes.token_0, self._attributes.token_1, self._attributes.transform4_0, self._attributes.transform4_1, self._attributes.uchar_0, self._attributes.uchar_1, self._attributes.uint64_0, self._attributes.uint64_1, self._attributes.uint_0, self._attributes.uint_1, self._attributes.vectord3_0, self._attributes.vectord3_1, self._attributes.vectorf3_0, self._attributes.vectorf3_1, self._attributes.vectorh3_0, self._attributes.vectorh3_1]
self._batchedReadValues = [False, False, [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, 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, 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, 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], [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], 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, 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, 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], [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, 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, 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, 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, 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, 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], [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, 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, 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, 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, 0.0, 0.0], [0.0, 0.0, 0.0], 0.0, 0.0, "default_token", "default_token", [[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]], [[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]], 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, 0.0, 0.0], [0.0, 0.0, 0.0]]
@property
def bool_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.bool_arr_0)
return data_view.get()
@bool_arr_0.setter
def bool_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.bool_arr_0)
data_view = og.AttributeValueHelper(self._attributes.bool_arr_0)
data_view.set(value)
self.bool_arr_0_size = data_view.get_array_size()
@property
def bool_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.bool_arr_1)
return data_view.get()
@bool_arr_1.setter
def bool_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.bool_arr_1)
data_view = og.AttributeValueHelper(self._attributes.bool_arr_1)
data_view.set(value)
self.bool_arr_1_size = data_view.get_array_size()
@property
def colord3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.colord3_arr_0)
return data_view.get()
@colord3_arr_0.setter
def colord3_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.colord3_arr_0)
data_view = og.AttributeValueHelper(self._attributes.colord3_arr_0)
data_view.set(value)
self.colord3_arr_0_size = data_view.get_array_size()
@property
def colord3_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.colord3_arr_1)
return data_view.get()
@colord3_arr_1.setter
def colord3_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.colord3_arr_1)
data_view = og.AttributeValueHelper(self._attributes.colord3_arr_1)
data_view.set(value)
self.colord3_arr_1_size = data_view.get_array_size()
@property
def colord4_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.colord4_arr_0)
return data_view.get()
@colord4_arr_0.setter
def colord4_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.colord4_arr_0)
data_view = og.AttributeValueHelper(self._attributes.colord4_arr_0)
data_view.set(value)
self.colord4_arr_0_size = data_view.get_array_size()
@property
def colord4_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.colord4_arr_1)
return data_view.get()
@colord4_arr_1.setter
def colord4_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.colord4_arr_1)
data_view = og.AttributeValueHelper(self._attributes.colord4_arr_1)
data_view.set(value)
self.colord4_arr_1_size = data_view.get_array_size()
@property
def colorf3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.colorf3_arr_0)
return data_view.get()
@colorf3_arr_0.setter
def colorf3_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.colorf3_arr_0)
data_view = og.AttributeValueHelper(self._attributes.colorf3_arr_0)
data_view.set(value)
self.colorf3_arr_0_size = data_view.get_array_size()
@property
def colorf3_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.colorf3_arr_1)
return data_view.get()
@colorf3_arr_1.setter
def colorf3_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.colorf3_arr_1)
data_view = og.AttributeValueHelper(self._attributes.colorf3_arr_1)
data_view.set(value)
self.colorf3_arr_1_size = data_view.get_array_size()
@property
def colorf4_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.colorf4_arr_0)
return data_view.get()
@colorf4_arr_0.setter
def colorf4_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.colorf4_arr_0)
data_view = og.AttributeValueHelper(self._attributes.colorf4_arr_0)
data_view.set(value)
self.colorf4_arr_0_size = data_view.get_array_size()
@property
def colorf4_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.colorf4_arr_1)
return data_view.get()
@colorf4_arr_1.setter
def colorf4_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.colorf4_arr_1)
data_view = og.AttributeValueHelper(self._attributes.colorf4_arr_1)
data_view.set(value)
self.colorf4_arr_1_size = data_view.get_array_size()
@property
def colorh3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.colorh3_arr_0)
return data_view.get()
@colorh3_arr_0.setter
def colorh3_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.colorh3_arr_0)
data_view = og.AttributeValueHelper(self._attributes.colorh3_arr_0)
data_view.set(value)
self.colorh3_arr_0_size = data_view.get_array_size()
@property
def colorh3_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.colorh3_arr_1)
return data_view.get()
@colorh3_arr_1.setter
def colorh3_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.colorh3_arr_1)
data_view = og.AttributeValueHelper(self._attributes.colorh3_arr_1)
data_view.set(value)
self.colorh3_arr_1_size = data_view.get_array_size()
@property
def colorh4_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.colorh4_arr_0)
return data_view.get()
@colorh4_arr_0.setter
def colorh4_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.colorh4_arr_0)
data_view = og.AttributeValueHelper(self._attributes.colorh4_arr_0)
data_view.set(value)
self.colorh4_arr_0_size = data_view.get_array_size()
@property
def colorh4_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.colorh4_arr_1)
return data_view.get()
@colorh4_arr_1.setter
def colorh4_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.colorh4_arr_1)
data_view = og.AttributeValueHelper(self._attributes.colorh4_arr_1)
data_view.set(value)
self.colorh4_arr_1_size = data_view.get_array_size()
@property
def double2_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.double2_arr_0)
return data_view.get()
@double2_arr_0.setter
def double2_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.double2_arr_0)
data_view = og.AttributeValueHelper(self._attributes.double2_arr_0)
data_view.set(value)
self.double2_arr_0_size = data_view.get_array_size()
@property
def double2_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.double2_arr_1)
return data_view.get()
@double2_arr_1.setter
def double2_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.double2_arr_1)
data_view = og.AttributeValueHelper(self._attributes.double2_arr_1)
data_view.set(value)
self.double2_arr_1_size = data_view.get_array_size()
@property
def double3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.double3_arr_0)
return data_view.get()
@double3_arr_0.setter
def double3_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.double3_arr_0)
data_view = og.AttributeValueHelper(self._attributes.double3_arr_0)
data_view.set(value)
self.double3_arr_0_size = data_view.get_array_size()
@property
def double3_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.double3_arr_1)
return data_view.get()
@double3_arr_1.setter
def double3_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.double3_arr_1)
data_view = og.AttributeValueHelper(self._attributes.double3_arr_1)
data_view.set(value)
self.double3_arr_1_size = data_view.get_array_size()
@property
def double4_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.double4_arr_0)
return data_view.get()
@double4_arr_0.setter
def double4_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.double4_arr_0)
data_view = og.AttributeValueHelper(self._attributes.double4_arr_0)
data_view.set(value)
self.double4_arr_0_size = data_view.get_array_size()
@property
def double4_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.double4_arr_1)
return data_view.get()
@double4_arr_1.setter
def double4_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.double4_arr_1)
data_view = og.AttributeValueHelper(self._attributes.double4_arr_1)
data_view.set(value)
self.double4_arr_1_size = data_view.get_array_size()
@property
def double_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.double_arr_0)
return data_view.get()
@double_arr_0.setter
def double_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.double_arr_0)
data_view = og.AttributeValueHelper(self._attributes.double_arr_0)
data_view.set(value)
self.double_arr_0_size = data_view.get_array_size()
@property
def double_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.double_arr_1)
return data_view.get()
@double_arr_1.setter
def double_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.double_arr_1)
data_view = og.AttributeValueHelper(self._attributes.double_arr_1)
data_view.set(value)
self.double_arr_1_size = data_view.get_array_size()
@property
def float2_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.float2_arr_0)
return data_view.get()
@float2_arr_0.setter
def float2_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.float2_arr_0)
data_view = og.AttributeValueHelper(self._attributes.float2_arr_0)
data_view.set(value)
self.float2_arr_0_size = data_view.get_array_size()
@property
def float2_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.float2_arr_1)
return data_view.get()
@float2_arr_1.setter
def float2_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.float2_arr_1)
data_view = og.AttributeValueHelper(self._attributes.float2_arr_1)
data_view.set(value)
self.float2_arr_1_size = data_view.get_array_size()
@property
def float3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.float3_arr_0)
return data_view.get()
@float3_arr_0.setter
def float3_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.float3_arr_0)
data_view = og.AttributeValueHelper(self._attributes.float3_arr_0)
data_view.set(value)
self.float3_arr_0_size = data_view.get_array_size()
@property
def float3_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.float3_arr_1)
return data_view.get()
@float3_arr_1.setter
def float3_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.float3_arr_1)
data_view = og.AttributeValueHelper(self._attributes.float3_arr_1)
data_view.set(value)
self.float3_arr_1_size = data_view.get_array_size()
@property
def float4_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.float4_arr_0)
return data_view.get()
@float4_arr_0.setter
def float4_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.float4_arr_0)
data_view = og.AttributeValueHelper(self._attributes.float4_arr_0)
data_view.set(value)
self.float4_arr_0_size = data_view.get_array_size()
@property
def float4_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.float4_arr_1)
return data_view.get()
@float4_arr_1.setter
def float4_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.float4_arr_1)
data_view = og.AttributeValueHelper(self._attributes.float4_arr_1)
data_view.set(value)
self.float4_arr_1_size = data_view.get_array_size()
@property
def float_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.float_arr_0)
return data_view.get()
@float_arr_0.setter
def float_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.float_arr_0)
data_view = og.AttributeValueHelper(self._attributes.float_arr_0)
data_view.set(value)
self.float_arr_0_size = data_view.get_array_size()
@property
def float_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.float_arr_1)
return data_view.get()
@float_arr_1.setter
def float_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.float_arr_1)
data_view = og.AttributeValueHelper(self._attributes.float_arr_1)
data_view.set(value)
self.float_arr_1_size = data_view.get_array_size()
@property
def frame4_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.frame4_arr_0)
return data_view.get()
@frame4_arr_0.setter
def frame4_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.frame4_arr_0)
data_view = og.AttributeValueHelper(self._attributes.frame4_arr_0)
data_view.set(value)
self.frame4_arr_0_size = data_view.get_array_size()
@property
def frame4_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.frame4_arr_1)
return data_view.get()
@frame4_arr_1.setter
def frame4_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.frame4_arr_1)
data_view = og.AttributeValueHelper(self._attributes.frame4_arr_1)
data_view.set(value)
self.frame4_arr_1_size = data_view.get_array_size()
@property
def half2_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.half2_arr_0)
return data_view.get()
@half2_arr_0.setter
def half2_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.half2_arr_0)
data_view = og.AttributeValueHelper(self._attributes.half2_arr_0)
data_view.set(value)
self.half2_arr_0_size = data_view.get_array_size()
@property
def half2_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.half2_arr_1)
return data_view.get()
@half2_arr_1.setter
def half2_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.half2_arr_1)
data_view = og.AttributeValueHelper(self._attributes.half2_arr_1)
data_view.set(value)
self.half2_arr_1_size = data_view.get_array_size()
@property
def half3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.half3_arr_0)
return data_view.get()
@half3_arr_0.setter
def half3_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.half3_arr_0)
data_view = og.AttributeValueHelper(self._attributes.half3_arr_0)
data_view.set(value)
self.half3_arr_0_size = data_view.get_array_size()
@property
def half3_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.half3_arr_1)
return data_view.get()
@half3_arr_1.setter
def half3_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.half3_arr_1)
data_view = og.AttributeValueHelper(self._attributes.half3_arr_1)
data_view.set(value)
self.half3_arr_1_size = data_view.get_array_size()
@property
def half4_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.half4_arr_0)
return data_view.get()
@half4_arr_0.setter
def half4_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.half4_arr_0)
data_view = og.AttributeValueHelper(self._attributes.half4_arr_0)
data_view.set(value)
self.half4_arr_0_size = data_view.get_array_size()
@property
def half4_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.half4_arr_1)
return data_view.get()
@half4_arr_1.setter
def half4_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.half4_arr_1)
data_view = og.AttributeValueHelper(self._attributes.half4_arr_1)
data_view.set(value)
self.half4_arr_1_size = data_view.get_array_size()
@property
def half_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.half_arr_0)
return data_view.get()
@half_arr_0.setter
def half_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.half_arr_0)
data_view = og.AttributeValueHelper(self._attributes.half_arr_0)
data_view.set(value)
self.half_arr_0_size = data_view.get_array_size()
@property
def half_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.half_arr_1)
return data_view.get()
@half_arr_1.setter
def half_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.half_arr_1)
data_view = og.AttributeValueHelper(self._attributes.half_arr_1)
data_view.set(value)
self.half_arr_1_size = data_view.get_array_size()
@property
def int2_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.int2_arr_0)
return data_view.get()
@int2_arr_0.setter
def int2_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.int2_arr_0)
data_view = og.AttributeValueHelper(self._attributes.int2_arr_0)
data_view.set(value)
self.int2_arr_0_size = data_view.get_array_size()
@property
def int2_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.int2_arr_1)
return data_view.get()
@int2_arr_1.setter
def int2_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.int2_arr_1)
data_view = og.AttributeValueHelper(self._attributes.int2_arr_1)
data_view.set(value)
self.int2_arr_1_size = data_view.get_array_size()
@property
def int3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.int3_arr_0)
return data_view.get()
@int3_arr_0.setter
def int3_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.int3_arr_0)
data_view = og.AttributeValueHelper(self._attributes.int3_arr_0)
data_view.set(value)
self.int3_arr_0_size = data_view.get_array_size()
@property
def int3_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.int3_arr_1)
return data_view.get()
@int3_arr_1.setter
def int3_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.int3_arr_1)
data_view = og.AttributeValueHelper(self._attributes.int3_arr_1)
data_view.set(value)
self.int3_arr_1_size = data_view.get_array_size()
@property
def int4_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.int4_arr_0)
return data_view.get()
@int4_arr_0.setter
def int4_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.int4_arr_0)
data_view = og.AttributeValueHelper(self._attributes.int4_arr_0)
data_view.set(value)
self.int4_arr_0_size = data_view.get_array_size()
@property
def int4_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.int4_arr_1)
return data_view.get()
@int4_arr_1.setter
def int4_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.int4_arr_1)
data_view = og.AttributeValueHelper(self._attributes.int4_arr_1)
data_view.set(value)
self.int4_arr_1_size = data_view.get_array_size()
@property
def int64_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.int64_arr_0)
return data_view.get()
@int64_arr_0.setter
def int64_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.int64_arr_0)
data_view = og.AttributeValueHelper(self._attributes.int64_arr_0)
data_view.set(value)
self.int64_arr_0_size = data_view.get_array_size()
@property
def int64_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.int64_arr_1)
return data_view.get()
@int64_arr_1.setter
def int64_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.int64_arr_1)
data_view = og.AttributeValueHelper(self._attributes.int64_arr_1)
data_view.set(value)
self.int64_arr_1_size = data_view.get_array_size()
@property
def int_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.int_arr_0)
return data_view.get()
@int_arr_0.setter
def int_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.int_arr_0)
data_view = og.AttributeValueHelper(self._attributes.int_arr_0)
data_view.set(value)
self.int_arr_0_size = data_view.get_array_size()
@property
def int_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.int_arr_1)
return data_view.get()
@int_arr_1.setter
def int_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.int_arr_1)
data_view = og.AttributeValueHelper(self._attributes.int_arr_1)
data_view.set(value)
self.int_arr_1_size = data_view.get_array_size()
@property
def matrixd2_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.matrixd2_arr_0)
return data_view.get()
@matrixd2_arr_0.setter
def matrixd2_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.matrixd2_arr_0)
data_view = og.AttributeValueHelper(self._attributes.matrixd2_arr_0)
data_view.set(value)
self.matrixd2_arr_0_size = data_view.get_array_size()
@property
def matrixd2_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.matrixd2_arr_1)
return data_view.get()
@matrixd2_arr_1.setter
def matrixd2_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.matrixd2_arr_1)
data_view = og.AttributeValueHelper(self._attributes.matrixd2_arr_1)
data_view.set(value)
self.matrixd2_arr_1_size = data_view.get_array_size()
@property
def matrixd3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.matrixd3_arr_0)
return data_view.get()
@matrixd3_arr_0.setter
def matrixd3_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.matrixd3_arr_0)
data_view = og.AttributeValueHelper(self._attributes.matrixd3_arr_0)
data_view.set(value)
self.matrixd3_arr_0_size = data_view.get_array_size()
@property
def matrixd3_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.matrixd3_arr_1)
return data_view.get()
@matrixd3_arr_1.setter
def matrixd3_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.matrixd3_arr_1)
data_view = og.AttributeValueHelper(self._attributes.matrixd3_arr_1)
data_view.set(value)
self.matrixd3_arr_1_size = data_view.get_array_size()
@property
def matrixd4_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.matrixd4_arr_0)
return data_view.get()
@matrixd4_arr_0.setter
def matrixd4_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.matrixd4_arr_0)
data_view = og.AttributeValueHelper(self._attributes.matrixd4_arr_0)
data_view.set(value)
self.matrixd4_arr_0_size = data_view.get_array_size()
@property
def matrixd4_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.matrixd4_arr_1)
return data_view.get()
@matrixd4_arr_1.setter
def matrixd4_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.matrixd4_arr_1)
data_view = og.AttributeValueHelper(self._attributes.matrixd4_arr_1)
data_view.set(value)
self.matrixd4_arr_1_size = data_view.get_array_size()
@property
def normald3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.normald3_arr_0)
return data_view.get()
@normald3_arr_0.setter
def normald3_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.normald3_arr_0)
data_view = og.AttributeValueHelper(self._attributes.normald3_arr_0)
data_view.set(value)
self.normald3_arr_0_size = data_view.get_array_size()
@property
def normald3_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.normald3_arr_1)
return data_view.get()
@normald3_arr_1.setter
def normald3_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.normald3_arr_1)
data_view = og.AttributeValueHelper(self._attributes.normald3_arr_1)
data_view.set(value)
self.normald3_arr_1_size = data_view.get_array_size()
@property
def normalf3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.normalf3_arr_0)
return data_view.get()
@normalf3_arr_0.setter
def normalf3_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.normalf3_arr_0)
data_view = og.AttributeValueHelper(self._attributes.normalf3_arr_0)
data_view.set(value)
self.normalf3_arr_0_size = data_view.get_array_size()
@property
def normalf3_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.normalf3_arr_1)
return data_view.get()
@normalf3_arr_1.setter
def normalf3_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.normalf3_arr_1)
data_view = og.AttributeValueHelper(self._attributes.normalf3_arr_1)
data_view.set(value)
self.normalf3_arr_1_size = data_view.get_array_size()
@property
def normalh3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.normalh3_arr_0)
return data_view.get()
@normalh3_arr_0.setter
def normalh3_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.normalh3_arr_0)
data_view = og.AttributeValueHelper(self._attributes.normalh3_arr_0)
data_view.set(value)
self.normalh3_arr_0_size = data_view.get_array_size()
@property
def normalh3_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.normalh3_arr_1)
return data_view.get()
@normalh3_arr_1.setter
def normalh3_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.normalh3_arr_1)
data_view = og.AttributeValueHelper(self._attributes.normalh3_arr_1)
data_view.set(value)
self.normalh3_arr_1_size = data_view.get_array_size()
@property
def pointd3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.pointd3_arr_0)
return data_view.get()
@pointd3_arr_0.setter
def pointd3_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.pointd3_arr_0)
data_view = og.AttributeValueHelper(self._attributes.pointd3_arr_0)
data_view.set(value)
self.pointd3_arr_0_size = data_view.get_array_size()
@property
def pointd3_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.pointd3_arr_1)
return data_view.get()
@pointd3_arr_1.setter
def pointd3_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.pointd3_arr_1)
data_view = og.AttributeValueHelper(self._attributes.pointd3_arr_1)
data_view.set(value)
self.pointd3_arr_1_size = data_view.get_array_size()
@property
def pointf3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.pointf3_arr_0)
return data_view.get()
@pointf3_arr_0.setter
def pointf3_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.pointf3_arr_0)
data_view = og.AttributeValueHelper(self._attributes.pointf3_arr_0)
data_view.set(value)
self.pointf3_arr_0_size = data_view.get_array_size()
@property
def pointf3_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.pointf3_arr_1)
return data_view.get()
@pointf3_arr_1.setter
def pointf3_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.pointf3_arr_1)
data_view = og.AttributeValueHelper(self._attributes.pointf3_arr_1)
data_view.set(value)
self.pointf3_arr_1_size = data_view.get_array_size()
@property
def pointh3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.pointh3_arr_0)
return data_view.get()
@pointh3_arr_0.setter
def pointh3_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.pointh3_arr_0)
data_view = og.AttributeValueHelper(self._attributes.pointh3_arr_0)
data_view.set(value)
self.pointh3_arr_0_size = data_view.get_array_size()
@property
def pointh3_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.pointh3_arr_1)
return data_view.get()
@pointh3_arr_1.setter
def pointh3_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.pointh3_arr_1)
data_view = og.AttributeValueHelper(self._attributes.pointh3_arr_1)
data_view.set(value)
self.pointh3_arr_1_size = data_view.get_array_size()
@property
def quatd4_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.quatd4_arr_0)
return data_view.get()
@quatd4_arr_0.setter
def quatd4_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.quatd4_arr_0)
data_view = og.AttributeValueHelper(self._attributes.quatd4_arr_0)
data_view.set(value)
self.quatd4_arr_0_size = data_view.get_array_size()
@property
def quatd4_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.quatd4_arr_1)
return data_view.get()
@quatd4_arr_1.setter
def quatd4_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.quatd4_arr_1)
data_view = og.AttributeValueHelper(self._attributes.quatd4_arr_1)
data_view.set(value)
self.quatd4_arr_1_size = data_view.get_array_size()
@property
def quatf4_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.quatf4_arr_0)
return data_view.get()
@quatf4_arr_0.setter
def quatf4_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.quatf4_arr_0)
data_view = og.AttributeValueHelper(self._attributes.quatf4_arr_0)
data_view.set(value)
self.quatf4_arr_0_size = data_view.get_array_size()
@property
def quatf4_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.quatf4_arr_1)
return data_view.get()
@quatf4_arr_1.setter
def quatf4_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.quatf4_arr_1)
data_view = og.AttributeValueHelper(self._attributes.quatf4_arr_1)
data_view.set(value)
self.quatf4_arr_1_size = data_view.get_array_size()
@property
def quath4_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.quath4_arr_0)
return data_view.get()
@quath4_arr_0.setter
def quath4_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.quath4_arr_0)
data_view = og.AttributeValueHelper(self._attributes.quath4_arr_0)
data_view.set(value)
self.quath4_arr_0_size = data_view.get_array_size()
@property
def quath4_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.quath4_arr_1)
return data_view.get()
@quath4_arr_1.setter
def quath4_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.quath4_arr_1)
data_view = og.AttributeValueHelper(self._attributes.quath4_arr_1)
data_view.set(value)
self.quath4_arr_1_size = data_view.get_array_size()
@property
def texcoordd2_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.texcoordd2_arr_0)
return data_view.get()
@texcoordd2_arr_0.setter
def texcoordd2_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.texcoordd2_arr_0)
data_view = og.AttributeValueHelper(self._attributes.texcoordd2_arr_0)
data_view.set(value)
self.texcoordd2_arr_0_size = data_view.get_array_size()
@property
def texcoordd2_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.texcoordd2_arr_1)
return data_view.get()
@texcoordd2_arr_1.setter
def texcoordd2_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.texcoordd2_arr_1)
data_view = og.AttributeValueHelper(self._attributes.texcoordd2_arr_1)
data_view.set(value)
self.texcoordd2_arr_1_size = data_view.get_array_size()
@property
def texcoordd3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.texcoordd3_arr_0)
return data_view.get()
@texcoordd3_arr_0.setter
def texcoordd3_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.texcoordd3_arr_0)
data_view = og.AttributeValueHelper(self._attributes.texcoordd3_arr_0)
data_view.set(value)
self.texcoordd3_arr_0_size = data_view.get_array_size()
@property
def texcoordd3_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.texcoordd3_arr_1)
return data_view.get()
@texcoordd3_arr_1.setter
def texcoordd3_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.texcoordd3_arr_1)
data_view = og.AttributeValueHelper(self._attributes.texcoordd3_arr_1)
data_view.set(value)
self.texcoordd3_arr_1_size = data_view.get_array_size()
@property
def texcoordf2_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.texcoordf2_arr_0)
return data_view.get()
@texcoordf2_arr_0.setter
def texcoordf2_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.texcoordf2_arr_0)
data_view = og.AttributeValueHelper(self._attributes.texcoordf2_arr_0)
data_view.set(value)
self.texcoordf2_arr_0_size = data_view.get_array_size()
@property
def texcoordf2_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.texcoordf2_arr_1)
return data_view.get()
@texcoordf2_arr_1.setter
def texcoordf2_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.texcoordf2_arr_1)
data_view = og.AttributeValueHelper(self._attributes.texcoordf2_arr_1)
data_view.set(value)
self.texcoordf2_arr_1_size = data_view.get_array_size()
@property
def texcoordf3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.texcoordf3_arr_0)
return data_view.get()
@texcoordf3_arr_0.setter
def texcoordf3_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.texcoordf3_arr_0)
data_view = og.AttributeValueHelper(self._attributes.texcoordf3_arr_0)
data_view.set(value)
self.texcoordf3_arr_0_size = data_view.get_array_size()
@property
def texcoordf3_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.texcoordf3_arr_1)
return data_view.get()
@texcoordf3_arr_1.setter
def texcoordf3_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.texcoordf3_arr_1)
data_view = og.AttributeValueHelper(self._attributes.texcoordf3_arr_1)
data_view.set(value)
self.texcoordf3_arr_1_size = data_view.get_array_size()
@property
def texcoordh2_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.texcoordh2_arr_0)
return data_view.get()
@texcoordh2_arr_0.setter
def texcoordh2_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.texcoordh2_arr_0)
data_view = og.AttributeValueHelper(self._attributes.texcoordh2_arr_0)
data_view.set(value)
self.texcoordh2_arr_0_size = data_view.get_array_size()
@property
def texcoordh2_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.texcoordh2_arr_1)
return data_view.get()
@texcoordh2_arr_1.setter
def texcoordh2_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.texcoordh2_arr_1)
data_view = og.AttributeValueHelper(self._attributes.texcoordh2_arr_1)
data_view.set(value)
self.texcoordh2_arr_1_size = data_view.get_array_size()
@property
def texcoordh3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.texcoordh3_arr_0)
return data_view.get()
@texcoordh3_arr_0.setter
def texcoordh3_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.texcoordh3_arr_0)
data_view = og.AttributeValueHelper(self._attributes.texcoordh3_arr_0)
data_view.set(value)
self.texcoordh3_arr_0_size = data_view.get_array_size()
@property
def texcoordh3_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.texcoordh3_arr_1)
return data_view.get()
@texcoordh3_arr_1.setter
def texcoordh3_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.texcoordh3_arr_1)
data_view = og.AttributeValueHelper(self._attributes.texcoordh3_arr_1)
data_view.set(value)
self.texcoordh3_arr_1_size = data_view.get_array_size()
@property
def timecode_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.timecode_arr_0)
return data_view.get()
@timecode_arr_0.setter
def timecode_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.timecode_arr_0)
data_view = og.AttributeValueHelper(self._attributes.timecode_arr_0)
data_view.set(value)
self.timecode_arr_0_size = data_view.get_array_size()
@property
def timecode_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.timecode_arr_1)
return data_view.get()
@timecode_arr_1.setter
def timecode_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.timecode_arr_1)
data_view = og.AttributeValueHelper(self._attributes.timecode_arr_1)
data_view.set(value)
self.timecode_arr_1_size = data_view.get_array_size()
@property
def token_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.token_arr_0)
return data_view.get()
@token_arr_0.setter
def token_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.token_arr_0)
data_view = og.AttributeValueHelper(self._attributes.token_arr_0)
data_view.set(value)
self.token_arr_0_size = data_view.get_array_size()
@property
def token_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.token_arr_1)
return data_view.get()
@token_arr_1.setter
def token_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.token_arr_1)
data_view = og.AttributeValueHelper(self._attributes.token_arr_1)
data_view.set(value)
self.token_arr_1_size = data_view.get_array_size()
@property
def transform4_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.transform4_arr_0)
return data_view.get()
@transform4_arr_0.setter
def transform4_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.transform4_arr_0)
data_view = og.AttributeValueHelper(self._attributes.transform4_arr_0)
data_view.set(value)
self.transform4_arr_0_size = data_view.get_array_size()
@property
def transform4_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.transform4_arr_1)
return data_view.get()
@transform4_arr_1.setter
def transform4_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.transform4_arr_1)
data_view = og.AttributeValueHelper(self._attributes.transform4_arr_1)
data_view.set(value)
self.transform4_arr_1_size = data_view.get_array_size()
@property
def uchar_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.uchar_arr_0)
return data_view.get()
@uchar_arr_0.setter
def uchar_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.uchar_arr_0)
data_view = og.AttributeValueHelper(self._attributes.uchar_arr_0)
data_view.set(value)
self.uchar_arr_0_size = data_view.get_array_size()
@property
def uchar_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.uchar_arr_1)
return data_view.get()
@uchar_arr_1.setter
def uchar_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.uchar_arr_1)
data_view = og.AttributeValueHelper(self._attributes.uchar_arr_1)
data_view.set(value)
self.uchar_arr_1_size = data_view.get_array_size()
@property
def uint64_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.uint64_arr_0)
return data_view.get()
@uint64_arr_0.setter
def uint64_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.uint64_arr_0)
data_view = og.AttributeValueHelper(self._attributes.uint64_arr_0)
data_view.set(value)
self.uint64_arr_0_size = data_view.get_array_size()
@property
def uint64_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.uint64_arr_1)
return data_view.get()
@uint64_arr_1.setter
def uint64_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.uint64_arr_1)
data_view = og.AttributeValueHelper(self._attributes.uint64_arr_1)
data_view.set(value)
self.uint64_arr_1_size = data_view.get_array_size()
@property
def uint_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.uint_arr_0)
return data_view.get()
@uint_arr_0.setter
def uint_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.uint_arr_0)
data_view = og.AttributeValueHelper(self._attributes.uint_arr_0)
data_view.set(value)
self.uint_arr_0_size = data_view.get_array_size()
@property
def uint_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.uint_arr_1)
return data_view.get()
@uint_arr_1.setter
def uint_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.uint_arr_1)
data_view = og.AttributeValueHelper(self._attributes.uint_arr_1)
data_view.set(value)
self.uint_arr_1_size = data_view.get_array_size()
@property
def vectord3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.vectord3_arr_0)
return data_view.get()
@vectord3_arr_0.setter
def vectord3_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.vectord3_arr_0)
data_view = og.AttributeValueHelper(self._attributes.vectord3_arr_0)
data_view.set(value)
self.vectord3_arr_0_size = data_view.get_array_size()
@property
def vectord3_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.vectord3_arr_1)
return data_view.get()
@vectord3_arr_1.setter
def vectord3_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.vectord3_arr_1)
data_view = og.AttributeValueHelper(self._attributes.vectord3_arr_1)
data_view.set(value)
self.vectord3_arr_1_size = data_view.get_array_size()
@property
def vectorf3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.vectorf3_arr_0)
return data_view.get()
@vectorf3_arr_0.setter
def vectorf3_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.vectorf3_arr_0)
data_view = og.AttributeValueHelper(self._attributes.vectorf3_arr_0)
data_view.set(value)
self.vectorf3_arr_0_size = data_view.get_array_size()
@property
def vectorf3_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.vectorf3_arr_1)
return data_view.get()
@vectorf3_arr_1.setter
def vectorf3_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.vectorf3_arr_1)
data_view = og.AttributeValueHelper(self._attributes.vectorf3_arr_1)
data_view.set(value)
self.vectorf3_arr_1_size = data_view.get_array_size()
@property
def vectorh3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.vectorh3_arr_0)
return data_view.get()
@vectorh3_arr_0.setter
def vectorh3_arr_0(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.vectorh3_arr_0)
data_view = og.AttributeValueHelper(self._attributes.vectorh3_arr_0)
data_view.set(value)
self.vectorh3_arr_0_size = data_view.get_array_size()
@property
def vectorh3_arr_1(self):
data_view = og.AttributeValueHelper(self._attributes.vectorh3_arr_1)
return data_view.get()
@vectorh3_arr_1.setter
def vectorh3_arr_1(self, value):
if self._setting_locked:
raise og.ReadOnlyError(self._attributes.vectorh3_arr_1)
data_view = og.AttributeValueHelper(self._attributes.vectorh3_arr_1)
data_view.set(value)
self.vectorh3_arr_1_size = data_view.get_array_size()
@property
def bool_0(self):
return self._batchedReadValues[0]
@bool_0.setter
def bool_0(self, value):
self._batchedReadValues[0] = value
@property
def bool_1(self):
return self._batchedReadValues[1]
@bool_1.setter
def bool_1(self, value):
self._batchedReadValues[1] = value
@property
def colord3_0(self):
return self._batchedReadValues[2]
@colord3_0.setter
def colord3_0(self, value):
self._batchedReadValues[2] = value
@property
def colord3_1(self):
return self._batchedReadValues[3]
@colord3_1.setter
def colord3_1(self, value):
self._batchedReadValues[3] = value
@property
def colord4_0(self):
return self._batchedReadValues[4]
@colord4_0.setter
def colord4_0(self, value):
self._batchedReadValues[4] = value
@property
def colord4_1(self):
return self._batchedReadValues[5]
@colord4_1.setter
def colord4_1(self, value):
self._batchedReadValues[5] = value
@property
def colorf3_0(self):
return self._batchedReadValues[6]
@colorf3_0.setter
def colorf3_0(self, value):
self._batchedReadValues[6] = value
@property
def colorf3_1(self):
return self._batchedReadValues[7]
@colorf3_1.setter
def colorf3_1(self, value):
self._batchedReadValues[7] = value
@property
def colorf4_0(self):
return self._batchedReadValues[8]
@colorf4_0.setter
def colorf4_0(self, value):
self._batchedReadValues[8] = value
@property
def colorf4_1(self):
return self._batchedReadValues[9]
@colorf4_1.setter
def colorf4_1(self, value):
self._batchedReadValues[9] = value
@property
def colorh3_0(self):
return self._batchedReadValues[10]
@colorh3_0.setter
def colorh3_0(self, value):
self._batchedReadValues[10] = value
@property
def colorh3_1(self):
return self._batchedReadValues[11]
@colorh3_1.setter
def colorh3_1(self, value):
self._batchedReadValues[11] = value
@property
def colorh4_0(self):
return self._batchedReadValues[12]
@colorh4_0.setter
def colorh4_0(self, value):
self._batchedReadValues[12] = value
@property
def colorh4_1(self):
return self._batchedReadValues[13]
@colorh4_1.setter
def colorh4_1(self, value):
self._batchedReadValues[13] = value
@property
def double2_0(self):
return self._batchedReadValues[14]
@double2_0.setter
def double2_0(self, value):
self._batchedReadValues[14] = value
@property
def double2_1(self):
return self._batchedReadValues[15]
@double2_1.setter
def double2_1(self, value):
self._batchedReadValues[15] = value
@property
def double3_0(self):
return self._batchedReadValues[16]
@double3_0.setter
def double3_0(self, value):
self._batchedReadValues[16] = value
@property
def double3_1(self):
return self._batchedReadValues[17]
@double3_1.setter
def double3_1(self, value):
self._batchedReadValues[17] = value
@property
def double4_0(self):
return self._batchedReadValues[18]
@double4_0.setter
def double4_0(self, value):
self._batchedReadValues[18] = value
@property
def double4_1(self):
return self._batchedReadValues[19]
@double4_1.setter
def double4_1(self, value):
self._batchedReadValues[19] = value
@property
def double_0(self):
return self._batchedReadValues[20]
@double_0.setter
def double_0(self, value):
self._batchedReadValues[20] = value
@property
def double_1(self):
return self._batchedReadValues[21]
@double_1.setter
def double_1(self, value):
self._batchedReadValues[21] = value
@property
def float2_0(self):
return self._batchedReadValues[22]
@float2_0.setter
def float2_0(self, value):
self._batchedReadValues[22] = value
@property
def float2_1(self):
return self._batchedReadValues[23]
@float2_1.setter
def float2_1(self, value):
self._batchedReadValues[23] = value
@property
def float3_0(self):
return self._batchedReadValues[24]
@float3_0.setter
def float3_0(self, value):
self._batchedReadValues[24] = value
@property
def float3_1(self):
return self._batchedReadValues[25]
@float3_1.setter
def float3_1(self, value):
self._batchedReadValues[25] = value
@property
def float4_0(self):
return self._batchedReadValues[26]
@float4_0.setter
def float4_0(self, value):
self._batchedReadValues[26] = value
@property
def float4_1(self):
return self._batchedReadValues[27]
@float4_1.setter
def float4_1(self, value):
self._batchedReadValues[27] = value
@property
def float_0(self):
return self._batchedReadValues[28]
@float_0.setter
def float_0(self, value):
self._batchedReadValues[28] = value
@property
def float_1(self):
return self._batchedReadValues[29]
@float_1.setter
def float_1(self, value):
self._batchedReadValues[29] = value
@property
def frame4_0(self):
return self._batchedReadValues[30]
@frame4_0.setter
def frame4_0(self, value):
self._batchedReadValues[30] = value
@property
def frame4_1(self):
return self._batchedReadValues[31]
@frame4_1.setter
def frame4_1(self, value):
self._batchedReadValues[31] = value
@property
def half2_0(self):
return self._batchedReadValues[32]
@half2_0.setter
def half2_0(self, value):
self._batchedReadValues[32] = value
@property
def half2_1(self):
return self._batchedReadValues[33]
@half2_1.setter
def half2_1(self, value):
self._batchedReadValues[33] = value
@property
def half3_0(self):
return self._batchedReadValues[34]
@half3_0.setter
def half3_0(self, value):
self._batchedReadValues[34] = value
@property
def half3_1(self):
return self._batchedReadValues[35]
@half3_1.setter
def half3_1(self, value):
self._batchedReadValues[35] = value
@property
def half4_0(self):
return self._batchedReadValues[36]
@half4_0.setter
def half4_0(self, value):
self._batchedReadValues[36] = value
@property
def half4_1(self):
return self._batchedReadValues[37]
@half4_1.setter
def half4_1(self, value):
self._batchedReadValues[37] = value
@property
def half_0(self):
return self._batchedReadValues[38]
@half_0.setter
def half_0(self, value):
self._batchedReadValues[38] = value
@property
def half_1(self):
return self._batchedReadValues[39]
@half_1.setter
def half_1(self, value):
self._batchedReadValues[39] = value
@property
def int2_0(self):
return self._batchedReadValues[40]
@int2_0.setter
def int2_0(self, value):
self._batchedReadValues[40] = value
@property
def int2_1(self):
return self._batchedReadValues[41]
@int2_1.setter
def int2_1(self, value):
self._batchedReadValues[41] = value
@property
def int3_0(self):
return self._batchedReadValues[42]
@int3_0.setter
def int3_0(self, value):
self._batchedReadValues[42] = value
@property
def int3_1(self):
return self._batchedReadValues[43]
@int3_1.setter
def int3_1(self, value):
self._batchedReadValues[43] = value
@property
def int4_0(self):
return self._batchedReadValues[44]
@int4_0.setter
def int4_0(self, value):
self._batchedReadValues[44] = value
@property
def int4_1(self):
return self._batchedReadValues[45]
@int4_1.setter
def int4_1(self, value):
self._batchedReadValues[45] = value
@property
def int64_0(self):
return self._batchedReadValues[46]
@int64_0.setter
def int64_0(self, value):
self._batchedReadValues[46] = value
@property
def int64_1(self):
return self._batchedReadValues[47]
@int64_1.setter
def int64_1(self, value):
self._batchedReadValues[47] = value
@property
def int_0(self):
return self._batchedReadValues[48]
@int_0.setter
def int_0(self, value):
self._batchedReadValues[48] = value
@property
def int_1(self):
return self._batchedReadValues[49]
@int_1.setter
def int_1(self, value):
self._batchedReadValues[49] = value
@property
def matrixd2_0(self):
return self._batchedReadValues[50]
@matrixd2_0.setter
def matrixd2_0(self, value):
self._batchedReadValues[50] = value
@property
def matrixd2_1(self):
return self._batchedReadValues[51]
@matrixd2_1.setter
def matrixd2_1(self, value):
self._batchedReadValues[51] = value
@property
def matrixd3_0(self):
return self._batchedReadValues[52]
@matrixd3_0.setter
def matrixd3_0(self, value):
self._batchedReadValues[52] = value
@property
def matrixd3_1(self):
return self._batchedReadValues[53]
@matrixd3_1.setter
def matrixd3_1(self, value):
self._batchedReadValues[53] = value
@property
def matrixd4_0(self):
return self._batchedReadValues[54]
@matrixd4_0.setter
def matrixd4_0(self, value):
self._batchedReadValues[54] = value
@property
def matrixd4_1(self):
return self._batchedReadValues[55]
@matrixd4_1.setter
def matrixd4_1(self, value):
self._batchedReadValues[55] = value
@property
def normald3_0(self):
return self._batchedReadValues[56]
@normald3_0.setter
def normald3_0(self, value):
self._batchedReadValues[56] = value
@property
def normald3_1(self):
return self._batchedReadValues[57]
@normald3_1.setter
def normald3_1(self, value):
self._batchedReadValues[57] = value
@property
def normalf3_0(self):
return self._batchedReadValues[58]
@normalf3_0.setter
def normalf3_0(self, value):
self._batchedReadValues[58] = value
@property
def normalf3_1(self):
return self._batchedReadValues[59]
@normalf3_1.setter
def normalf3_1(self, value):
self._batchedReadValues[59] = value
@property
def normalh3_0(self):
return self._batchedReadValues[60]
@normalh3_0.setter
def normalh3_0(self, value):
self._batchedReadValues[60] = value
@property
def normalh3_1(self):
return self._batchedReadValues[61]
@normalh3_1.setter
def normalh3_1(self, value):
self._batchedReadValues[61] = value
@property
def pointd3_0(self):
return self._batchedReadValues[62]
@pointd3_0.setter
def pointd3_0(self, value):
self._batchedReadValues[62] = value
@property
def pointd3_1(self):
return self._batchedReadValues[63]
@pointd3_1.setter
def pointd3_1(self, value):
self._batchedReadValues[63] = value
@property
def pointf3_0(self):
return self._batchedReadValues[64]
@pointf3_0.setter
def pointf3_0(self, value):
self._batchedReadValues[64] = value
@property
def pointf3_1(self):
return self._batchedReadValues[65]
@pointf3_1.setter
def pointf3_1(self, value):
self._batchedReadValues[65] = value
@property
def pointh3_0(self):
return self._batchedReadValues[66]
@pointh3_0.setter
def pointh3_0(self, value):
self._batchedReadValues[66] = value
@property
def pointh3_1(self):
return self._batchedReadValues[67]
@pointh3_1.setter
def pointh3_1(self, value):
self._batchedReadValues[67] = value
@property
def quatd4_0(self):
return self._batchedReadValues[68]
@quatd4_0.setter
def quatd4_0(self, value):
self._batchedReadValues[68] = value
@property
def quatd4_1(self):
return self._batchedReadValues[69]
@quatd4_1.setter
def quatd4_1(self, value):
self._batchedReadValues[69] = value
@property
def quatf4_0(self):
return self._batchedReadValues[70]
@quatf4_0.setter
def quatf4_0(self, value):
self._batchedReadValues[70] = value
@property
def quatf4_1(self):
return self._batchedReadValues[71]
@quatf4_1.setter
def quatf4_1(self, value):
self._batchedReadValues[71] = value
@property
def quath4_0(self):
return self._batchedReadValues[72]
@quath4_0.setter
def quath4_0(self, value):
self._batchedReadValues[72] = value
@property
def quath4_1(self):
return self._batchedReadValues[73]
@quath4_1.setter
def quath4_1(self, value):
self._batchedReadValues[73] = value
@property
def texcoordd2_0(self):
return self._batchedReadValues[74]
@texcoordd2_0.setter
def texcoordd2_0(self, value):
self._batchedReadValues[74] = value
@property
def texcoordd2_1(self):
return self._batchedReadValues[75]
@texcoordd2_1.setter
def texcoordd2_1(self, value):
self._batchedReadValues[75] = value
@property
def texcoordd3_0(self):
return self._batchedReadValues[76]
@texcoordd3_0.setter
def texcoordd3_0(self, value):
self._batchedReadValues[76] = value
@property
def texcoordd3_1(self):
return self._batchedReadValues[77]
@texcoordd3_1.setter
def texcoordd3_1(self, value):
self._batchedReadValues[77] = value
@property
def texcoordf2_0(self):
return self._batchedReadValues[78]
@texcoordf2_0.setter
def texcoordf2_0(self, value):
self._batchedReadValues[78] = value
@property
def texcoordf2_1(self):
return self._batchedReadValues[79]
@texcoordf2_1.setter
def texcoordf2_1(self, value):
self._batchedReadValues[79] = value
@property
def texcoordf3_0(self):
return self._batchedReadValues[80]
@texcoordf3_0.setter
def texcoordf3_0(self, value):
self._batchedReadValues[80] = value
@property
def texcoordf3_1(self):
return self._batchedReadValues[81]
@texcoordf3_1.setter
def texcoordf3_1(self, value):
self._batchedReadValues[81] = value
@property
def texcoordh2_0(self):
return self._batchedReadValues[82]
@texcoordh2_0.setter
def texcoordh2_0(self, value):
self._batchedReadValues[82] = value
@property
def texcoordh2_1(self):
return self._batchedReadValues[83]
@texcoordh2_1.setter
def texcoordh2_1(self, value):
self._batchedReadValues[83] = value
@property
def texcoordh3_0(self):
return self._batchedReadValues[84]
@texcoordh3_0.setter
def texcoordh3_0(self, value):
self._batchedReadValues[84] = value
@property
def texcoordh3_1(self):
return self._batchedReadValues[85]
@texcoordh3_1.setter
def texcoordh3_1(self, value):
self._batchedReadValues[85] = value
@property
def timecode_0(self):
return self._batchedReadValues[86]
@timecode_0.setter
def timecode_0(self, value):
self._batchedReadValues[86] = value
@property
def timecode_1(self):
return self._batchedReadValues[87]
@timecode_1.setter
def timecode_1(self, value):
self._batchedReadValues[87] = value
@property
def token_0(self):
return self._batchedReadValues[88]
@token_0.setter
def token_0(self, value):
self._batchedReadValues[88] = value
@property
def token_1(self):
return self._batchedReadValues[89]
@token_1.setter
def token_1(self, value):
self._batchedReadValues[89] = value
@property
def transform4_0(self):
return self._batchedReadValues[90]
@transform4_0.setter
def transform4_0(self, value):
self._batchedReadValues[90] = value
@property
def transform4_1(self):
return self._batchedReadValues[91]
@transform4_1.setter
def transform4_1(self, value):
self._batchedReadValues[91] = value
@property
def uchar_0(self):
return self._batchedReadValues[92]
@uchar_0.setter
def uchar_0(self, value):
self._batchedReadValues[92] = value
@property
def uchar_1(self):
return self._batchedReadValues[93]
@uchar_1.setter
def uchar_1(self, value):
self._batchedReadValues[93] = value
@property
def uint64_0(self):
return self._batchedReadValues[94]
@uint64_0.setter
def uint64_0(self, value):
self._batchedReadValues[94] = value
@property
def uint64_1(self):
return self._batchedReadValues[95]
@uint64_1.setter
def uint64_1(self, value):
self._batchedReadValues[95] = value
@property
def uint_0(self):
return self._batchedReadValues[96]
@uint_0.setter
def uint_0(self, value):
self._batchedReadValues[96] = value
@property
def uint_1(self):
return self._batchedReadValues[97]
@uint_1.setter
def uint_1(self, value):
self._batchedReadValues[97] = value
@property
def vectord3_0(self):
return self._batchedReadValues[98]
@vectord3_0.setter
def vectord3_0(self, value):
self._batchedReadValues[98] = value
@property
def vectord3_1(self):
return self._batchedReadValues[99]
@vectord3_1.setter
def vectord3_1(self, value):
self._batchedReadValues[99] = value
@property
def vectorf3_0(self):
return self._batchedReadValues[100]
@vectorf3_0.setter
def vectorf3_0(self, value):
self._batchedReadValues[100] = value
@property
def vectorf3_1(self):
return self._batchedReadValues[101]
@vectorf3_1.setter
def vectorf3_1(self, value):
self._batchedReadValues[101] = value
@property
def vectorh3_0(self):
return self._batchedReadValues[102]
@vectorh3_0.setter
def vectorh3_0(self, value):
self._batchedReadValues[102] = value
@property
def vectorh3_1(self):
return self._batchedReadValues[103]
@vectorh3_1.setter
def vectorh3_1(self, value):
self._batchedReadValues[103] = 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 = {"bool_0", "colord3_0", "colord4_0", "colorf3_0", "colorf4_0", "colorh3_0", "colorh4_0", "double2_0", "double3_0", "double4_0", "double_0", "float2_0", "float3_0", "float4_0", "float_0", "frame4_0", "half2_0", "half3_0", "half4_0", "half_0", "int2_0", "int3_0", "int4_0", "int64_0", "int_0", "matrixd2_0", "matrixd3_0", "matrixd4_0", "normald3_0", "normalf3_0", "normalh3_0", "pointd3_0", "pointf3_0", "pointh3_0", "quatd4_0", "quatf4_0", "quath4_0", "texcoordd2_0", "texcoordd3_0", "texcoordf2_0", "texcoordf3_0", "texcoordh2_0", "texcoordh3_0", "timecode_0", "token_0", "transform4_0", "uchar_0", "uint64_0", "uint_0", "vectord3_0", "vectorf3_0", "vectorh3_0", "_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.bool_arr_0_size = 0
self.colord3_arr_0_size = 0
self.colord4_arr_0_size = 0
self.colorf3_arr_0_size = 0
self.colorf4_arr_0_size = 0
self.colorh3_arr_0_size = 0
self.colorh4_arr_0_size = 0
self.double2_arr_0_size = 0
self.double3_arr_0_size = 0
self.double4_arr_0_size = 0
self.double_arr_0_size = 0
self.float2_arr_0_size = 0
self.float3_arr_0_size = 0
self.float4_arr_0_size = 0
self.float_arr_0_size = 0
self.frame4_arr_0_size = 0
self.half2_arr_0_size = 0
self.half3_arr_0_size = 0
self.half4_arr_0_size = 0
self.half_arr_0_size = 0
self.int2_arr_0_size = 0
self.int3_arr_0_size = 0
self.int4_arr_0_size = 0
self.int64_arr_0_size = 0
self.int_arr_0_size = 0
self.matrixd2_arr_0_size = 0
self.matrixd3_arr_0_size = 0
self.matrixd4_arr_0_size = 0
self.normald3_arr_0_size = 0
self.normalf3_arr_0_size = 0
self.normalh3_arr_0_size = 0
self.pointd3_arr_0_size = 0
self.pointf3_arr_0_size = 0
self.pointh3_arr_0_size = 0
self.quatd4_arr_0_size = 0
self.quatf4_arr_0_size = 0
self.quath4_arr_0_size = 0
self.texcoordd2_arr_0_size = 0
self.texcoordd3_arr_0_size = 0
self.texcoordf2_arr_0_size = 0
self.texcoordf3_arr_0_size = 0
self.texcoordh2_arr_0_size = 0
self.texcoordh3_arr_0_size = 0
self.timecode_arr_0_size = 0
self.token_arr_0_size = 0
self.transform4_arr_0_size = 0
self.uchar_arr_0_size = 0
self.uint64_arr_0_size = 0
self.uint_arr_0_size = 0
self.vectord3_arr_0_size = 0
self.vectorf3_arr_0_size = 0
self.vectorh3_arr_0_size = 0
self._batchedWriteValues = { }
@property
def bool_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.bool_arr_0)
return data_view.get(reserved_element_count=self.bool_arr_0_size)
@bool_arr_0.setter
def bool_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.bool_arr_0)
data_view.set(value)
self.bool_arr_0_size = data_view.get_array_size()
@property
def colord3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.colord3_arr_0)
return data_view.get(reserved_element_count=self.colord3_arr_0_size)
@colord3_arr_0.setter
def colord3_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.colord3_arr_0)
data_view.set(value)
self.colord3_arr_0_size = data_view.get_array_size()
@property
def colord4_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.colord4_arr_0)
return data_view.get(reserved_element_count=self.colord4_arr_0_size)
@colord4_arr_0.setter
def colord4_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.colord4_arr_0)
data_view.set(value)
self.colord4_arr_0_size = data_view.get_array_size()
@property
def colorf3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.colorf3_arr_0)
return data_view.get(reserved_element_count=self.colorf3_arr_0_size)
@colorf3_arr_0.setter
def colorf3_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.colorf3_arr_0)
data_view.set(value)
self.colorf3_arr_0_size = data_view.get_array_size()
@property
def colorf4_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.colorf4_arr_0)
return data_view.get(reserved_element_count=self.colorf4_arr_0_size)
@colorf4_arr_0.setter
def colorf4_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.colorf4_arr_0)
data_view.set(value)
self.colorf4_arr_0_size = data_view.get_array_size()
@property
def colorh3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.colorh3_arr_0)
return data_view.get(reserved_element_count=self.colorh3_arr_0_size)
@colorh3_arr_0.setter
def colorh3_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.colorh3_arr_0)
data_view.set(value)
self.colorh3_arr_0_size = data_view.get_array_size()
@property
def colorh4_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.colorh4_arr_0)
return data_view.get(reserved_element_count=self.colorh4_arr_0_size)
@colorh4_arr_0.setter
def colorh4_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.colorh4_arr_0)
data_view.set(value)
self.colorh4_arr_0_size = data_view.get_array_size()
@property
def double2_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.double2_arr_0)
return data_view.get(reserved_element_count=self.double2_arr_0_size)
@double2_arr_0.setter
def double2_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.double2_arr_0)
data_view.set(value)
self.double2_arr_0_size = data_view.get_array_size()
@property
def double3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.double3_arr_0)
return data_view.get(reserved_element_count=self.double3_arr_0_size)
@double3_arr_0.setter
def double3_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.double3_arr_0)
data_view.set(value)
self.double3_arr_0_size = data_view.get_array_size()
@property
def double4_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.double4_arr_0)
return data_view.get(reserved_element_count=self.double4_arr_0_size)
@double4_arr_0.setter
def double4_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.double4_arr_0)
data_view.set(value)
self.double4_arr_0_size = data_view.get_array_size()
@property
def double_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.double_arr_0)
return data_view.get(reserved_element_count=self.double_arr_0_size)
@double_arr_0.setter
def double_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.double_arr_0)
data_view.set(value)
self.double_arr_0_size = data_view.get_array_size()
@property
def float2_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.float2_arr_0)
return data_view.get(reserved_element_count=self.float2_arr_0_size)
@float2_arr_0.setter
def float2_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.float2_arr_0)
data_view.set(value)
self.float2_arr_0_size = data_view.get_array_size()
@property
def float3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.float3_arr_0)
return data_view.get(reserved_element_count=self.float3_arr_0_size)
@float3_arr_0.setter
def float3_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.float3_arr_0)
data_view.set(value)
self.float3_arr_0_size = data_view.get_array_size()
@property
def float4_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.float4_arr_0)
return data_view.get(reserved_element_count=self.float4_arr_0_size)
@float4_arr_0.setter
def float4_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.float4_arr_0)
data_view.set(value)
self.float4_arr_0_size = data_view.get_array_size()
@property
def float_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.float_arr_0)
return data_view.get(reserved_element_count=self.float_arr_0_size)
@float_arr_0.setter
def float_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.float_arr_0)
data_view.set(value)
self.float_arr_0_size = data_view.get_array_size()
@property
def frame4_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.frame4_arr_0)
return data_view.get(reserved_element_count=self.frame4_arr_0_size)
@frame4_arr_0.setter
def frame4_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.frame4_arr_0)
data_view.set(value)
self.frame4_arr_0_size = data_view.get_array_size()
@property
def half2_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.half2_arr_0)
return data_view.get(reserved_element_count=self.half2_arr_0_size)
@half2_arr_0.setter
def half2_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.half2_arr_0)
data_view.set(value)
self.half2_arr_0_size = data_view.get_array_size()
@property
def half3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.half3_arr_0)
return data_view.get(reserved_element_count=self.half3_arr_0_size)
@half3_arr_0.setter
def half3_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.half3_arr_0)
data_view.set(value)
self.half3_arr_0_size = data_view.get_array_size()
@property
def half4_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.half4_arr_0)
return data_view.get(reserved_element_count=self.half4_arr_0_size)
@half4_arr_0.setter
def half4_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.half4_arr_0)
data_view.set(value)
self.half4_arr_0_size = data_view.get_array_size()
@property
def half_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.half_arr_0)
return data_view.get(reserved_element_count=self.half_arr_0_size)
@half_arr_0.setter
def half_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.half_arr_0)
data_view.set(value)
self.half_arr_0_size = data_view.get_array_size()
@property
def int2_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.int2_arr_0)
return data_view.get(reserved_element_count=self.int2_arr_0_size)
@int2_arr_0.setter
def int2_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.int2_arr_0)
data_view.set(value)
self.int2_arr_0_size = data_view.get_array_size()
@property
def int3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.int3_arr_0)
return data_view.get(reserved_element_count=self.int3_arr_0_size)
@int3_arr_0.setter
def int3_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.int3_arr_0)
data_view.set(value)
self.int3_arr_0_size = data_view.get_array_size()
@property
def int4_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.int4_arr_0)
return data_view.get(reserved_element_count=self.int4_arr_0_size)
@int4_arr_0.setter
def int4_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.int4_arr_0)
data_view.set(value)
self.int4_arr_0_size = data_view.get_array_size()
@property
def int64_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.int64_arr_0)
return data_view.get(reserved_element_count=self.int64_arr_0_size)
@int64_arr_0.setter
def int64_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.int64_arr_0)
data_view.set(value)
self.int64_arr_0_size = data_view.get_array_size()
@property
def int_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.int_arr_0)
return data_view.get(reserved_element_count=self.int_arr_0_size)
@int_arr_0.setter
def int_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.int_arr_0)
data_view.set(value)
self.int_arr_0_size = data_view.get_array_size()
@property
def matrixd2_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.matrixd2_arr_0)
return data_view.get(reserved_element_count=self.matrixd2_arr_0_size)
@matrixd2_arr_0.setter
def matrixd2_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.matrixd2_arr_0)
data_view.set(value)
self.matrixd2_arr_0_size = data_view.get_array_size()
@property
def matrixd3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.matrixd3_arr_0)
return data_view.get(reserved_element_count=self.matrixd3_arr_0_size)
@matrixd3_arr_0.setter
def matrixd3_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.matrixd3_arr_0)
data_view.set(value)
self.matrixd3_arr_0_size = data_view.get_array_size()
@property
def matrixd4_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.matrixd4_arr_0)
return data_view.get(reserved_element_count=self.matrixd4_arr_0_size)
@matrixd4_arr_0.setter
def matrixd4_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.matrixd4_arr_0)
data_view.set(value)
self.matrixd4_arr_0_size = data_view.get_array_size()
@property
def normald3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.normald3_arr_0)
return data_view.get(reserved_element_count=self.normald3_arr_0_size)
@normald3_arr_0.setter
def normald3_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.normald3_arr_0)
data_view.set(value)
self.normald3_arr_0_size = data_view.get_array_size()
@property
def normalf3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.normalf3_arr_0)
return data_view.get(reserved_element_count=self.normalf3_arr_0_size)
@normalf3_arr_0.setter
def normalf3_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.normalf3_arr_0)
data_view.set(value)
self.normalf3_arr_0_size = data_view.get_array_size()
@property
def normalh3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.normalh3_arr_0)
return data_view.get(reserved_element_count=self.normalh3_arr_0_size)
@normalh3_arr_0.setter
def normalh3_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.normalh3_arr_0)
data_view.set(value)
self.normalh3_arr_0_size = data_view.get_array_size()
@property
def pointd3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.pointd3_arr_0)
return data_view.get(reserved_element_count=self.pointd3_arr_0_size)
@pointd3_arr_0.setter
def pointd3_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.pointd3_arr_0)
data_view.set(value)
self.pointd3_arr_0_size = data_view.get_array_size()
@property
def pointf3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.pointf3_arr_0)
return data_view.get(reserved_element_count=self.pointf3_arr_0_size)
@pointf3_arr_0.setter
def pointf3_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.pointf3_arr_0)
data_view.set(value)
self.pointf3_arr_0_size = data_view.get_array_size()
@property
def pointh3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.pointh3_arr_0)
return data_view.get(reserved_element_count=self.pointh3_arr_0_size)
@pointh3_arr_0.setter
def pointh3_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.pointh3_arr_0)
data_view.set(value)
self.pointh3_arr_0_size = data_view.get_array_size()
@property
def quatd4_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.quatd4_arr_0)
return data_view.get(reserved_element_count=self.quatd4_arr_0_size)
@quatd4_arr_0.setter
def quatd4_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.quatd4_arr_0)
data_view.set(value)
self.quatd4_arr_0_size = data_view.get_array_size()
@property
def quatf4_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.quatf4_arr_0)
return data_view.get(reserved_element_count=self.quatf4_arr_0_size)
@quatf4_arr_0.setter
def quatf4_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.quatf4_arr_0)
data_view.set(value)
self.quatf4_arr_0_size = data_view.get_array_size()
@property
def quath4_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.quath4_arr_0)
return data_view.get(reserved_element_count=self.quath4_arr_0_size)
@quath4_arr_0.setter
def quath4_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.quath4_arr_0)
data_view.set(value)
self.quath4_arr_0_size = data_view.get_array_size()
@property
def texcoordd2_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.texcoordd2_arr_0)
return data_view.get(reserved_element_count=self.texcoordd2_arr_0_size)
@texcoordd2_arr_0.setter
def texcoordd2_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.texcoordd2_arr_0)
data_view.set(value)
self.texcoordd2_arr_0_size = data_view.get_array_size()
@property
def texcoordd3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.texcoordd3_arr_0)
return data_view.get(reserved_element_count=self.texcoordd3_arr_0_size)
@texcoordd3_arr_0.setter
def texcoordd3_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.texcoordd3_arr_0)
data_view.set(value)
self.texcoordd3_arr_0_size = data_view.get_array_size()
@property
def texcoordf2_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.texcoordf2_arr_0)
return data_view.get(reserved_element_count=self.texcoordf2_arr_0_size)
@texcoordf2_arr_0.setter
def texcoordf2_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.texcoordf2_arr_0)
data_view.set(value)
self.texcoordf2_arr_0_size = data_view.get_array_size()
@property
def texcoordf3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.texcoordf3_arr_0)
return data_view.get(reserved_element_count=self.texcoordf3_arr_0_size)
@texcoordf3_arr_0.setter
def texcoordf3_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.texcoordf3_arr_0)
data_view.set(value)
self.texcoordf3_arr_0_size = data_view.get_array_size()
@property
def texcoordh2_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.texcoordh2_arr_0)
return data_view.get(reserved_element_count=self.texcoordh2_arr_0_size)
@texcoordh2_arr_0.setter
def texcoordh2_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.texcoordh2_arr_0)
data_view.set(value)
self.texcoordh2_arr_0_size = data_view.get_array_size()
@property
def texcoordh3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.texcoordh3_arr_0)
return data_view.get(reserved_element_count=self.texcoordh3_arr_0_size)
@texcoordh3_arr_0.setter
def texcoordh3_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.texcoordh3_arr_0)
data_view.set(value)
self.texcoordh3_arr_0_size = data_view.get_array_size()
@property
def timecode_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.timecode_arr_0)
return data_view.get(reserved_element_count=self.timecode_arr_0_size)
@timecode_arr_0.setter
def timecode_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.timecode_arr_0)
data_view.set(value)
self.timecode_arr_0_size = data_view.get_array_size()
@property
def token_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.token_arr_0)
return data_view.get(reserved_element_count=self.token_arr_0_size)
@token_arr_0.setter
def token_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.token_arr_0)
data_view.set(value)
self.token_arr_0_size = data_view.get_array_size()
@property
def transform4_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.transform4_arr_0)
return data_view.get(reserved_element_count=self.transform4_arr_0_size)
@transform4_arr_0.setter
def transform4_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.transform4_arr_0)
data_view.set(value)
self.transform4_arr_0_size = data_view.get_array_size()
@property
def uchar_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.uchar_arr_0)
return data_view.get(reserved_element_count=self.uchar_arr_0_size)
@uchar_arr_0.setter
def uchar_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.uchar_arr_0)
data_view.set(value)
self.uchar_arr_0_size = data_view.get_array_size()
@property
def uint64_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.uint64_arr_0)
return data_view.get(reserved_element_count=self.uint64_arr_0_size)
@uint64_arr_0.setter
def uint64_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.uint64_arr_0)
data_view.set(value)
self.uint64_arr_0_size = data_view.get_array_size()
@property
def uint_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.uint_arr_0)
return data_view.get(reserved_element_count=self.uint_arr_0_size)
@uint_arr_0.setter
def uint_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.uint_arr_0)
data_view.set(value)
self.uint_arr_0_size = data_view.get_array_size()
@property
def vectord3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.vectord3_arr_0)
return data_view.get(reserved_element_count=self.vectord3_arr_0_size)
@vectord3_arr_0.setter
def vectord3_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.vectord3_arr_0)
data_view.set(value)
self.vectord3_arr_0_size = data_view.get_array_size()
@property
def vectorf3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.vectorf3_arr_0)
return data_view.get(reserved_element_count=self.vectorf3_arr_0_size)
@vectorf3_arr_0.setter
def vectorf3_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.vectorf3_arr_0)
data_view.set(value)
self.vectorf3_arr_0_size = data_view.get_array_size()
@property
def vectorh3_arr_0(self):
data_view = og.AttributeValueHelper(self._attributes.vectorh3_arr_0)
return data_view.get(reserved_element_count=self.vectorh3_arr_0_size)
@vectorh3_arr_0.setter
def vectorh3_arr_0(self, value):
data_view = og.AttributeValueHelper(self._attributes.vectorh3_arr_0)
data_view.set(value)
self.vectorh3_arr_0_size = data_view.get_array_size()
@property
def bool_0(self):
value = self._batchedWriteValues.get(self._attributes.bool_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.bool_0)
return data_view.get()
@bool_0.setter
def bool_0(self, value):
self._batchedWriteValues[self._attributes.bool_0] = value
@property
def colord3_0(self):
value = self._batchedWriteValues.get(self._attributes.colord3_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.colord3_0)
return data_view.get()
@colord3_0.setter
def colord3_0(self, value):
self._batchedWriteValues[self._attributes.colord3_0] = value
@property
def colord4_0(self):
value = self._batchedWriteValues.get(self._attributes.colord4_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.colord4_0)
return data_view.get()
@colord4_0.setter
def colord4_0(self, value):
self._batchedWriteValues[self._attributes.colord4_0] = value
@property
def colorf3_0(self):
value = self._batchedWriteValues.get(self._attributes.colorf3_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.colorf3_0)
return data_view.get()
@colorf3_0.setter
def colorf3_0(self, value):
self._batchedWriteValues[self._attributes.colorf3_0] = value
@property
def colorf4_0(self):
value = self._batchedWriteValues.get(self._attributes.colorf4_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.colorf4_0)
return data_view.get()
@colorf4_0.setter
def colorf4_0(self, value):
self._batchedWriteValues[self._attributes.colorf4_0] = value
@property
def colorh3_0(self):
value = self._batchedWriteValues.get(self._attributes.colorh3_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.colorh3_0)
return data_view.get()
@colorh3_0.setter
def colorh3_0(self, value):
self._batchedWriteValues[self._attributes.colorh3_0] = value
@property
def colorh4_0(self):
value = self._batchedWriteValues.get(self._attributes.colorh4_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.colorh4_0)
return data_view.get()
@colorh4_0.setter
def colorh4_0(self, value):
self._batchedWriteValues[self._attributes.colorh4_0] = value
@property
def double2_0(self):
value = self._batchedWriteValues.get(self._attributes.double2_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.double2_0)
return data_view.get()
@double2_0.setter
def double2_0(self, value):
self._batchedWriteValues[self._attributes.double2_0] = value
@property
def double3_0(self):
value = self._batchedWriteValues.get(self._attributes.double3_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.double3_0)
return data_view.get()
@double3_0.setter
def double3_0(self, value):
self._batchedWriteValues[self._attributes.double3_0] = value
@property
def double4_0(self):
value = self._batchedWriteValues.get(self._attributes.double4_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.double4_0)
return data_view.get()
@double4_0.setter
def double4_0(self, value):
self._batchedWriteValues[self._attributes.double4_0] = value
@property
def double_0(self):
value = self._batchedWriteValues.get(self._attributes.double_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.double_0)
return data_view.get()
@double_0.setter
def double_0(self, value):
self._batchedWriteValues[self._attributes.double_0] = value
@property
def float2_0(self):
value = self._batchedWriteValues.get(self._attributes.float2_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.float2_0)
return data_view.get()
@float2_0.setter
def float2_0(self, value):
self._batchedWriteValues[self._attributes.float2_0] = value
@property
def float3_0(self):
value = self._batchedWriteValues.get(self._attributes.float3_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.float3_0)
return data_view.get()
@float3_0.setter
def float3_0(self, value):
self._batchedWriteValues[self._attributes.float3_0] = value
@property
def float4_0(self):
value = self._batchedWriteValues.get(self._attributes.float4_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.float4_0)
return data_view.get()
@float4_0.setter
def float4_0(self, value):
self._batchedWriteValues[self._attributes.float4_0] = value
@property
def float_0(self):
value = self._batchedWriteValues.get(self._attributes.float_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.float_0)
return data_view.get()
@float_0.setter
def float_0(self, value):
self._batchedWriteValues[self._attributes.float_0] = value
@property
def frame4_0(self):
value = self._batchedWriteValues.get(self._attributes.frame4_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.frame4_0)
return data_view.get()
@frame4_0.setter
def frame4_0(self, value):
self._batchedWriteValues[self._attributes.frame4_0] = value
@property
def half2_0(self):
value = self._batchedWriteValues.get(self._attributes.half2_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.half2_0)
return data_view.get()
@half2_0.setter
def half2_0(self, value):
self._batchedWriteValues[self._attributes.half2_0] = value
@property
def half3_0(self):
value = self._batchedWriteValues.get(self._attributes.half3_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.half3_0)
return data_view.get()
@half3_0.setter
def half3_0(self, value):
self._batchedWriteValues[self._attributes.half3_0] = value
@property
def half4_0(self):
value = self._batchedWriteValues.get(self._attributes.half4_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.half4_0)
return data_view.get()
@half4_0.setter
def half4_0(self, value):
self._batchedWriteValues[self._attributes.half4_0] = value
@property
def half_0(self):
value = self._batchedWriteValues.get(self._attributes.half_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.half_0)
return data_view.get()
@half_0.setter
def half_0(self, value):
self._batchedWriteValues[self._attributes.half_0] = value
@property
def int2_0(self):
value = self._batchedWriteValues.get(self._attributes.int2_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.int2_0)
return data_view.get()
@int2_0.setter
def int2_0(self, value):
self._batchedWriteValues[self._attributes.int2_0] = value
@property
def int3_0(self):
value = self._batchedWriteValues.get(self._attributes.int3_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.int3_0)
return data_view.get()
@int3_0.setter
def int3_0(self, value):
self._batchedWriteValues[self._attributes.int3_0] = value
@property
def int4_0(self):
value = self._batchedWriteValues.get(self._attributes.int4_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.int4_0)
return data_view.get()
@int4_0.setter
def int4_0(self, value):
self._batchedWriteValues[self._attributes.int4_0] = value
@property
def int64_0(self):
value = self._batchedWriteValues.get(self._attributes.int64_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.int64_0)
return data_view.get()
@int64_0.setter
def int64_0(self, value):
self._batchedWriteValues[self._attributes.int64_0] = value
@property
def int_0(self):
value = self._batchedWriteValues.get(self._attributes.int_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.int_0)
return data_view.get()
@int_0.setter
def int_0(self, value):
self._batchedWriteValues[self._attributes.int_0] = value
@property
def matrixd2_0(self):
value = self._batchedWriteValues.get(self._attributes.matrixd2_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.matrixd2_0)
return data_view.get()
@matrixd2_0.setter
def matrixd2_0(self, value):
self._batchedWriteValues[self._attributes.matrixd2_0] = value
@property
def matrixd3_0(self):
value = self._batchedWriteValues.get(self._attributes.matrixd3_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.matrixd3_0)
return data_view.get()
@matrixd3_0.setter
def matrixd3_0(self, value):
self._batchedWriteValues[self._attributes.matrixd3_0] = value
@property
def matrixd4_0(self):
value = self._batchedWriteValues.get(self._attributes.matrixd4_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.matrixd4_0)
return data_view.get()
@matrixd4_0.setter
def matrixd4_0(self, value):
self._batchedWriteValues[self._attributes.matrixd4_0] = value
@property
def normald3_0(self):
value = self._batchedWriteValues.get(self._attributes.normald3_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.normald3_0)
return data_view.get()
@normald3_0.setter
def normald3_0(self, value):
self._batchedWriteValues[self._attributes.normald3_0] = value
@property
def normalf3_0(self):
value = self._batchedWriteValues.get(self._attributes.normalf3_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.normalf3_0)
return data_view.get()
@normalf3_0.setter
def normalf3_0(self, value):
self._batchedWriteValues[self._attributes.normalf3_0] = value
@property
def normalh3_0(self):
value = self._batchedWriteValues.get(self._attributes.normalh3_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.normalh3_0)
return data_view.get()
@normalh3_0.setter
def normalh3_0(self, value):
self._batchedWriteValues[self._attributes.normalh3_0] = value
@property
def pointd3_0(self):
value = self._batchedWriteValues.get(self._attributes.pointd3_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.pointd3_0)
return data_view.get()
@pointd3_0.setter
def pointd3_0(self, value):
self._batchedWriteValues[self._attributes.pointd3_0] = value
@property
def pointf3_0(self):
value = self._batchedWriteValues.get(self._attributes.pointf3_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.pointf3_0)
return data_view.get()
@pointf3_0.setter
def pointf3_0(self, value):
self._batchedWriteValues[self._attributes.pointf3_0] = value
@property
def pointh3_0(self):
value = self._batchedWriteValues.get(self._attributes.pointh3_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.pointh3_0)
return data_view.get()
@pointh3_0.setter
def pointh3_0(self, value):
self._batchedWriteValues[self._attributes.pointh3_0] = value
@property
def quatd4_0(self):
value = self._batchedWriteValues.get(self._attributes.quatd4_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.quatd4_0)
return data_view.get()
@quatd4_0.setter
def quatd4_0(self, value):
self._batchedWriteValues[self._attributes.quatd4_0] = value
@property
def quatf4_0(self):
value = self._batchedWriteValues.get(self._attributes.quatf4_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.quatf4_0)
return data_view.get()
@quatf4_0.setter
def quatf4_0(self, value):
self._batchedWriteValues[self._attributes.quatf4_0] = value
@property
def quath4_0(self):
value = self._batchedWriteValues.get(self._attributes.quath4_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.quath4_0)
return data_view.get()
@quath4_0.setter
def quath4_0(self, value):
self._batchedWriteValues[self._attributes.quath4_0] = value
@property
def texcoordd2_0(self):
value = self._batchedWriteValues.get(self._attributes.texcoordd2_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.texcoordd2_0)
return data_view.get()
@texcoordd2_0.setter
def texcoordd2_0(self, value):
self._batchedWriteValues[self._attributes.texcoordd2_0] = value
@property
def texcoordd3_0(self):
value = self._batchedWriteValues.get(self._attributes.texcoordd3_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.texcoordd3_0)
return data_view.get()
@texcoordd3_0.setter
def texcoordd3_0(self, value):
self._batchedWriteValues[self._attributes.texcoordd3_0] = value
@property
def texcoordf2_0(self):
value = self._batchedWriteValues.get(self._attributes.texcoordf2_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.texcoordf2_0)
return data_view.get()
@texcoordf2_0.setter
def texcoordf2_0(self, value):
self._batchedWriteValues[self._attributes.texcoordf2_0] = value
@property
def texcoordf3_0(self):
value = self._batchedWriteValues.get(self._attributes.texcoordf3_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.texcoordf3_0)
return data_view.get()
@texcoordf3_0.setter
def texcoordf3_0(self, value):
self._batchedWriteValues[self._attributes.texcoordf3_0] = value
@property
def texcoordh2_0(self):
value = self._batchedWriteValues.get(self._attributes.texcoordh2_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.texcoordh2_0)
return data_view.get()
@texcoordh2_0.setter
def texcoordh2_0(self, value):
self._batchedWriteValues[self._attributes.texcoordh2_0] = value
@property
def texcoordh3_0(self):
value = self._batchedWriteValues.get(self._attributes.texcoordh3_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.texcoordh3_0)
return data_view.get()
@texcoordh3_0.setter
def texcoordh3_0(self, value):
self._batchedWriteValues[self._attributes.texcoordh3_0] = value
@property
def timecode_0(self):
value = self._batchedWriteValues.get(self._attributes.timecode_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.timecode_0)
return data_view.get()
@timecode_0.setter
def timecode_0(self, value):
self._batchedWriteValues[self._attributes.timecode_0] = value
@property
def token_0(self):
value = self._batchedWriteValues.get(self._attributes.token_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.token_0)
return data_view.get()
@token_0.setter
def token_0(self, value):
self._batchedWriteValues[self._attributes.token_0] = value
@property
def transform4_0(self):
value = self._batchedWriteValues.get(self._attributes.transform4_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.transform4_0)
return data_view.get()
@transform4_0.setter
def transform4_0(self, value):
self._batchedWriteValues[self._attributes.transform4_0] = value
@property
def uchar_0(self):
value = self._batchedWriteValues.get(self._attributes.uchar_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.uchar_0)
return data_view.get()
@uchar_0.setter
def uchar_0(self, value):
self._batchedWriteValues[self._attributes.uchar_0] = value
@property
def uint64_0(self):
value = self._batchedWriteValues.get(self._attributes.uint64_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.uint64_0)
return data_view.get()
@uint64_0.setter
def uint64_0(self, value):
self._batchedWriteValues[self._attributes.uint64_0] = value
@property
def uint_0(self):
value = self._batchedWriteValues.get(self._attributes.uint_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.uint_0)
return data_view.get()
@uint_0.setter
def uint_0(self, value):
self._batchedWriteValues[self._attributes.uint_0] = value
@property
def vectord3_0(self):
value = self._batchedWriteValues.get(self._attributes.vectord3_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.vectord3_0)
return data_view.get()
@vectord3_0.setter
def vectord3_0(self, value):
self._batchedWriteValues[self._attributes.vectord3_0] = value
@property
def vectorf3_0(self):
value = self._batchedWriteValues.get(self._attributes.vectorf3_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.vectorf3_0)
return data_view.get()
@vectorf3_0.setter
def vectorf3_0(self, value):
self._batchedWriteValues[self._attributes.vectorf3_0] = value
@property
def vectorh3_0(self):
value = self._batchedWriteValues.get(self._attributes.vectorh3_0)
if value:
return value
else:
data_view = og.AttributeValueHelper(self._attributes.vectorh3_0)
return data_view.get()
@vectorh3_0.setter
def vectorh3_0(self, value):
self._batchedWriteValues[self._attributes.vectorh3_0] = 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 = OgnPyUniversalAddDatabase.ValuesForInputs(node, self.attributes.inputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_OUTPUT)
self.outputs = OgnPyUniversalAddDatabase.ValuesForOutputs(node, self.attributes.outputs, dynamic_attributes)
dynamic_attributes = self.dynamic_attribute_data(node, og.AttributePortType.ATTRIBUTE_PORT_TYPE_STATE)
self.state = OgnPyUniversalAddDatabase.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(OgnPyUniversalAddDatabase.NODE_TYPE_CLASS, 'get_node_type', None)
if callable(get_node_type_function):
return get_node_type_function()
return 'omni.graph.examples.python.UniversalAdd'
@staticmethod
def compute(context, node):
def database_valid():
return True
try:
per_node_data = OgnPyUniversalAddDatabase.PER_NODE_DATA[node.node_id()]
db = per_node_data.get('_db')
if db is None:
db = OgnPyUniversalAddDatabase(node)
per_node_data['_db'] = db
if not database_valid():
per_node_data['_db'] = None
return False
except:
db = OgnPyUniversalAddDatabase(node)
try:
compute_function = getattr(OgnPyUniversalAddDatabase.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 OgnPyUniversalAddDatabase.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):
OgnPyUniversalAddDatabase._initialize_per_node_data(node)
initialize_function = getattr(OgnPyUniversalAddDatabase.NODE_TYPE_CLASS, 'initialize', None)
if callable(initialize_function):
initialize_function(context, node)
per_node_data = OgnPyUniversalAddDatabase.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(OgnPyUniversalAddDatabase.NODE_TYPE_CLASS, 'release', None)
if callable(release_function):
release_function(node)
OgnPyUniversalAddDatabase._release_per_node_data(node)
@staticmethod
def release_instance(node, target):
OgnPyUniversalAddDatabase._release_per_node_instance_data(node, target)
@staticmethod
def update_node_version(context, node, old_version, new_version):
update_node_version_function = getattr(OgnPyUniversalAddDatabase.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(OgnPyUniversalAddDatabase.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.examples.python")
node_type.set_metadata(ogn.MetadataKeys.UI_NAME, "Universal Add For All Types (Python)")
node_type.set_metadata(ogn.MetadataKeys.CATEGORIES, "examples")
node_type.set_metadata(ogn.MetadataKeys.DESCRIPTION, "Python-based universal add node for all types. This file is generated using UniversalAddGenerator.py")
node_type.set_metadata(ogn.MetadataKeys.EXCLUSIONS, "usd")
node_type.set_metadata(ogn.MetadataKeys.LANGUAGE, "Python")
OgnPyUniversalAddDatabase.INTERFACE.add_to_node_type(node_type)
@staticmethod
def on_connection_type_resolve(node):
on_connection_type_resolve_function = getattr(OgnPyUniversalAddDatabase.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):
OgnPyUniversalAddDatabase.NODE_TYPE_CLASS = node_type_class
og.register_node_type(OgnPyUniversalAddDatabase.abi, 1)
@staticmethod
def deregister():
og.deregister_node_type("omni.graph.examples.python.UniversalAdd")
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/tutorial1/OgnAbsDouble.py | """
Implementation of an OmniGraph node takes the absolute value of a number
"""
class OgnAbsDouble:
@staticmethod
def compute(db):
db.outputs.out = abs(db.inputs.num)
return True
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/tutorial1/OgnComposeDouble3.ogn | {
"ComposeDouble3": {
"version": 1,
"categories": "examples",
"description": ["Example node that takes in the components of three doubles and outputs a double3"],
"language": "python",
"metadata": {
"uiName": "Compose Double3 (Python)"
},
"inputs": {
"x": {
"type": "double",
"description": ["The x component of the input double3"],
"default": 0
},
"y": {
"type": "double",
"description": ["The y component of the input double3"],
"default": 0
},
"z": {
"type": "double",
"description": ["The z component of the input double3"],
"default": 0
}
},
"outputs": {
"double3": {
"type": "double[3]",
"description": ["Output double3"]
}
},
"tests": [
{ "inputs:x": 1.0, "inputs:y": 2.0, "inputs:z": 3.0, "outputs:double3": [1.0, 2.0, 3.0] }
]
}
}
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/tutorial1/OgnComposeDouble3.py | """
Implementation of an OmniGraph node that composes a double3 from its components
"""
class OgnComposeDouble3:
@staticmethod
def compute(db):
db.outputs.double3 = (db.inputs.x, db.inputs.y, db.inputs.z)
return True
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/tutorial1/OgnMultDouble.ogn | {
"MultDouble": {
"version": 1,
"categories": "examples",
"description": ["Example node that multiplies 2 doubles together"],
"language": "python",
"metadata": {
"uiName": "Multiply Double (Python)"
},
"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": 6.0 }
]
}
}
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/tutorial1/OgnSubtractDouble.ogn | {
"SubtractDouble": {
"version": 1,
"categories": "examples",
"description": ["Example node that subtracts 2 doubles from each other"],
"language": "python",
"metadata": {
"uiName": "Subtract Double (Python)"
},
"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.examples.python/omni/graph/examples/python/ogn/python/nodes/tutorial1/OgnDecomposeDouble3.ogn | {
"DecomposeDouble3": {
"version": 1,
"categories": "examples",
"description": ["Example node that takes in a double3 and outputs scalars that are its components"],
"language": "python",
"metadata": {
"uiName": "Decompose Double3 (Python)"
},
"inputs": {
"double3": {
"type": "double[3]",
"description": ["Input double3"],
"default": [0,0,0]
}
},
"outputs": {
"x": {
"type": "double",
"description": ["The x component of the input double3"]
},
"y": {
"type": "double",
"description": ["The y component of the input double3"]
},
"z": {
"type": "double",
"description": ["The z component of the input double3"]
}
},
"tests": [
{ "inputs:double3": [1.0, 2.0, 3.0], "outputs:x": 1.0, "outputs:y": 2.0, "outputs:z": 3.0 }
]
}
}
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/tutorial1/OgnDeformerYAxis.py | """
Implementation of an OmniGraph node that deforms a surface using a sine wave
"""
import numpy as np
class OgnDeformerYAxis:
@staticmethod
def compute(db):
"""Deform the input points by a multiple of the sine wave"""
points = db.inputs.points
multiplier = db.inputs.multiplier
wavelength = db.inputs.wavelength
offset = db.inputs.offset
db.outputs.points_size = points.shape[0]
# Nothing to evaluate if there are no input points
if db.outputs.points_size == 0:
return True
output_points = db.outputs.points
if wavelength <= 0:
wavelength = 1.0
pt = points.copy() # we still need to do a copy here because we do not want to modify points
tx = pt[:, 0]
offset_tx = tx + offset
disp = np.sin(offset_tx / wavelength)
pt[:, 1] += disp * multiplier
output_points[:] = pt[:] # we modify output_points in memory so we do not need to set the value again
return True
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/tutorial1/OgnClampDouble.py | """
Implementation of an OmniGraph node that clamps a double value
"""
class OgnClampDouble:
@staticmethod
def compute(db):
if db.inputs.num < db.inputs.min:
db.outputs.out = db.inputs.min
elif db.inputs.num > db.inputs.max:
db.outputs.out = db.inputs.max
else:
db.outputs.out = db.inputs.num
return True
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/tutorial1/OgnAbsDouble.ogn | {
"AbsDouble": {
"version": 1,
"categories": "examples",
"description": ["Example node that takes the absolute value of a number"],
"language": "python",
"metadata": {
"uiName": "Abs Double (Python)"
},
"inputs": {
"num": {
"type": "double",
"description": ["Input number"],
"default": 0
}
},
"outputs": {
"out": {
"type": "double",
"description": ["The absolute value of input number"]
}
},
"tests": [
{ "inputs:num": -8.0, "outputs:out": 8.0 },
{ "inputs:num": 8.0, "outputs:out": 8.0 },
{ "inputs:num": -0.0, "outputs:out": 0.0 }
]
}
}
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/tutorial1/OgnDecomposeDouble3.py | """
Implementation of an OmniGraph node that decomposes a double3 into its comonents
"""
class OgnDecomposeDouble3:
@staticmethod
def compute(db):
in_double3 = db.inputs.double3
db.outputs.x = in_double3[0]
db.outputs.y = in_double3[1]
db.outputs.z = in_double3[2]
return True
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/tutorial1/OgnMultDouble.py | """
Implementation of an OmniGraph node that calculates a * b
"""
class OgnMultDouble:
@staticmethod
def compute(db):
db.outputs.out = db.inputs.a * db.inputs.b
return True
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/tutorial1/OgnClampDouble.ogn | {
"ClampDouble": {
"version": 1,
"categories": "examples",
"description": ["Example node that a number to a range"],
"language": "python",
"metadata": {
"uiName": "Clamp Double (Python)"
},
"inputs": {
"num": {
"type": "double",
"description": ["Input number"],
"default": 0
},
"min": {
"type": "double",
"description": ["Mininum value"],
"default": 0
},
"max": {
"type": "double",
"description": ["Maximum value"],
"default": 0
}
},
"outputs": {
"out": {
"type": "double",
"description": ["The result of the number, having been clamped to the range min,max"]
}
},
"tests": [
{ "inputs:num": -1.0, "inputs:min": 2.0, "inputs:max": 3.0, "outputs:out": 2.0 },
{ "inputs:num": 2.5, "inputs:min": 2.0, "inputs:max": 3.0, "outputs:out": 2.5 },
{ "inputs:num": 8.0, "inputs:min": 2.0, "inputs:max": 3.0, "outputs:out": 3.0 }
]
}
}
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/tutorial1/OgnSubtractDouble.py | """
Implementation of an OmniGraph node that subtracts b from a
"""
class OgnSubtractDouble:
@staticmethod
def compute(db):
db.outputs.out = db.inputs.a - db.inputs.b
return True
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/tutorial1/OgnDeformerYAxis.ogn | {
"DeformerYAxis": {
"version": 1,
"categories": "examples",
"description": ["Example node applying a sine wave deformation to a set of points, written in Python. Deforms along Y-axis instead of Z"],
"language": "python",
"metadata": {
"uiName": "Sine Wave Deformer Y-axis (Python)"
},
"inputs": {
"multiplier": {
"type": "double",
"description": ["The multiplier for the amplitude of the sine wave"],
"default": 1
},
"wavelength": {
"type": "double",
"description": ["The wavelength of the sine wave"],
"default": 1
},
"offset": {
"type": "double",
"description": ["The offset of the sine wave"],
"default": 0
},
"points": {
"type": "pointf[3][]",
"description": ["The input points to be deformed"],
"default": []
}
},
"outputs": {
"points": {
"type": "pointf[3][]",
"description": ["The deformed output points"]
}
},
"tests": [
{ "inputs:points": [[1.0, 2.0, 3.0]], "inputs:multiplier": 2.0, "outputs:points": [[1.0, 3.6829419136047363, 3.0]]}
]
}
} |
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/tutorial1/OgnPositionToColor.ogn | {
"PositionToColor": {
"version": 1,
"language": "python",
"categories": "examples",
"description": ["This node takes positional data (double3) and converts to a color, and outputs ",
"as color3f[] (which seems to be the default color connection in USD)"],
"uiName": "PositionToColor",
"inputs": {
"position": {
"description": "Position to be converted to a color",
"type": "double[3]",
"default": [0.0, 0.0, 0.0]
},
"scale": {
"description": "Constant by which to multiply the position to get the color",
"type": "float",
"default": 1.0
},
"color_offset": {
"description": "Offset added to the scaled color to get the final result",
"type": "colorf[3]",
"default": [0.0, 0.0, 0.0]
}
},
"outputs": {
"color": {
"description": "Color value extracted from the position",
"type": "colorf[3][]"
}
},
"tests": [
{
"inputs:position": [1.0, 2.0, 3.0], "inputs:scale": 4.0, "inputs:color_offset": [0.3, 0.2, 0.1],
"outputs:color": [[0.0, 1.0, 0.1]]
}
]
}
} |
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/tutorial1/OgnPositionToColor.py | """
Implementation of the node algorith to convert a position to a color
"""
class OgnPositionToColor:
"""
This node takes positional data (double3) and converts to a color, and outputs
as color3f[] (which seems to be the default color connection in USD)
"""
@staticmethod
def compute(db):
"""Run the algorithm to convert a position to a color"""
position = db.inputs.position
scale_value = db.inputs.scale
color_offset = db.inputs.color_offset
color = (abs(position[:])) / scale_value
color += color_offset
ramp = (scale_value - abs(position[0])) / scale_value
ramp = max(ramp, 0)
color[0] -= ramp
if color[0] < 0:
color[0] = 0
color[1] += ramp
if color[1] > 1:
color[1] = 1
color[2] -= ramp
if color[2] < 0:
color[2] = 0
db.outputs.color_size = 1
db.outputs.color[0] = color
return True
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/realtime/OgnBouncingCubesGpu.ogn | {
"BouncingCubesGpu": {
"version": 1,
"language": "python",
"memoryType": "cuda",
"exclude": ["usd", "test"],
"categories": "examples",
"description": "Example of realtime update of nodes using a gathered input",
"metadata": {
"uiName": "Example Node - Bouncing Cubes (GPU)"
},
"state": {
"$comment": "Attributes are commented out until gather is fully supported",
"$velocities": {
"type": "float[]",
"description": "Set of velocity attributes gathered from the inputs",
"metadata": {
"uiName": "Velocities"
}
},
"$translations": {
"type": "float[3][]",
"description": [
"Set of translation attributes gathered from the inputs.",
"Translations have velocities applied to them each evaluation."
],
"metadata": {
"uiName": "Translations"
}
}
}
}
} |
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/realtime/OgnBouncingCubesCpu.py | """
Example node showing realtime update from gathered data.
"""
class OgnBouncingCubesCpu:
@staticmethod
def compute(db):
velocities = db.state.velocities
translations = db.state.translations
# Empty input means nothing to do
if translations.size == 0 or velocities.size == 0:
return True
h = 1.0 / 60.0
g = -1000.0
for ii, velocity in enumerate(velocities):
velocity += h * g
translations[ii][2] += h * velocity
if translations[ii][2] < 1.0:
translations[ii][2] = 1.0
velocity = -5 * h * g
translations[0][0] += 0.03
translations[1][0] += 0.03
# We no longer need to set values because we do not copy memory of the numpy arrays
# Mutating the numpy array will also mutate the attribute data
# Alternative, setting values using the below lines will also work
# context.set_attr_value(translations, attr_translations)
# context.set_attr_value(velocities, attr_translations)
return True
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/realtime/OgnBouncingCubesGpu.py | """
Example node showing realtime update from gathered data computed on the GPU.
"""
class OgnBouncingCubesGpu:
@staticmethod
def compute(db):
# This is how it should work when gather is fully supported
# velocities = db.state.velocities
# translations = db.state.translations
attr_velocities = db.node.get_attribute("state:velocities")
attr_translations = db.node.get_attribute("state:translations")
velocities = db.context_helper.get_attr_value(attr_velocities, isGPU=True, isTensor=True)
translations = db.context_helper.get_attr_value(attr_translations, isGPU=True, isTensor=True)
# When there is no data there is nothing to do
if velocities.size == 0 or translations.size == 0:
return True
h = 1.0 / 60.0
g = -1000.0
velocities += h * g
translations[:, 2] += h * velocities
translations_z = translations.split(1, dim=1)[2].squeeze(-1)
update_idx = (translations_z < 1.0).nonzero().squeeze(-1)
if update_idx.shape[0] > 0:
translations[update_idx, 2] = 1
velocities[update_idx] = -5 * h * g
translations[:, 0] += 0.03
# We no longer need to set values because we do not copy memory of the numpy arrays
# Mutating the numpy array will also mutate the attribute data
# Computegraph APIs using torch tensors currently do not have support for setting values.
# context.set_attr_value(translations, attr_translations)
# context.set_attr_value(velocities, attr_translations)
return True
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/realtime/OgnBouncingCubesCpu.ogn | {
"BouncingCubes": {
"version": 1,
"language": "python",
"categories": "examples",
"description": "Example of realtime update of nodes using a gathered input",
"metadata": {
"uiName": "Example Node - Bouncing Cubes"
},
"state": {
"velocities": {
"type": "float[]",
"description": "Set of velocity attributes gathered from the inputs",
"metadata": {
"uiName": "Velocities"
}
},
"translations": {
"type": "float[3][]",
"description": [
"Set of translation attributes gathered from the inputs.",
"Translations have velocities applied to them each evaluation."
],
"metadata": {
"uiName": "Translations"
}
}
}
}
} |
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/utility/OgnPyUniversalAdd.ogn | {
"UniversalAdd" : {
"description": ["Python-based universal add node for all types. This file is generated using UniversalAddGenerator.py"],
"categories": "examples",
"version": 1,
"metadata": {
"uiName": "Universal Add For All Types (Python)"
},
"language": "python",
"exclude": ["usd"],
"inputs": {
"bool_0": {
"type": "bool",
"description": ["Input of type bool"],
"default": false
},
"bool_1": {
"type": "bool",
"description": ["Input of type bool"],
"default": false
},
"bool_arr_0": {
"type": "bool[]",
"description": ["Input of type bool[]"],
"default": []
},
"bool_arr_1": {
"type": "bool[]",
"description": ["Input of type bool[]"],
"default": []
},
"colord3_0": {
"type": "colord[3]",
"description": ["Input of type colord[3]"],
"default": [0.0, 0.0, 0.0]
},
"colord3_1": {
"type": "colord[3]",
"description": ["Input of type colord[3]"],
"default": [0.0, 0.0, 0.0]
},
"colord4_0": {
"type": "colord[4]",
"description": ["Input of type colord[4]"],
"default": [0.0, 0.0, 0.0, 0.0]
},
"colord4_1": {
"type": "colord[4]",
"description": ["Input of type colord[4]"],
"default": [0.0, 0.0, 0.0, 0.0]
},
"colord3_arr_0": {
"type": "colord[3][]",
"description": ["Input of type colord[3][]"],
"default": []
},
"colord3_arr_1": {
"type": "colord[3][]",
"description": ["Input of type colord[3][]"],
"default": []
},
"colord4_arr_0": {
"type": "colord[4][]",
"description": ["Input of type colord[4][]"],
"default": []
},
"colord4_arr_1": {
"type": "colord[4][]",
"description": ["Input of type colord[4][]"],
"default": []
},
"colorf3_0": {
"type": "colorf[3]",
"description": ["Input of type colorf[3]"],
"default": [0.0, 0.0, 0.0]
},
"colorf3_1": {
"type": "colorf[3]",
"description": ["Input of type colorf[3]"],
"default": [0.0, 0.0, 0.0]
},
"colorf4_0": {
"type": "colorf[4]",
"description": ["Input of type colorf[4]"],
"default": [0.0, 0.0, 0.0, 0.0]
},
"colorf4_1": {
"type": "colorf[4]",
"description": ["Input of type colorf[4]"],
"default": [0.0, 0.0, 0.0, 0.0]
},
"colorf3_arr_0": {
"type": "colorf[3][]",
"description": ["Input of type colorf[3][]"],
"default": []
},
"colorf3_arr_1": {
"type": "colorf[3][]",
"description": ["Input of type colorf[3][]"],
"default": []
},
"colorf4_arr_0": {
"type": "colorf[4][]",
"description": ["Input of type colorf[4][]"],
"default": []
},
"colorf4_arr_1": {
"type": "colorf[4][]",
"description": ["Input of type colorf[4][]"],
"default": []
},
"colorh3_0": {
"type": "colorh[3]",
"description": ["Input of type colorh[3]"],
"default": [0.0, 0.0, 0.0]
},
"colorh3_1": {
"type": "colorh[3]",
"description": ["Input of type colorh[3]"],
"default": [0.0, 0.0, 0.0]
},
"colorh4_0": {
"type": "colorh[4]",
"description": ["Input of type colorh[4]"],
"default": [0.0, 0.0, 0.0, 0.0]
},
"colorh4_1": {
"type": "colorh[4]",
"description": ["Input of type colorh[4]"],
"default": [0.0, 0.0, 0.0, 0.0]
},
"colorh3_arr_0": {
"type": "colorh[3][]",
"description": ["Input of type colorh[3][]"],
"default": []
},
"colorh3_arr_1": {
"type": "colorh[3][]",
"description": ["Input of type colorh[3][]"],
"default": []
},
"colorh4_arr_0": {
"type": "colorh[4][]",
"description": ["Input of type colorh[4][]"],
"default": []
},
"colorh4_arr_1": {
"type": "colorh[4][]",
"description": ["Input of type colorh[4][]"],
"default": []
},
"double_0": {
"type": "double",
"description": ["Input of type double"],
"default": 0.0
},
"double_1": {
"type": "double",
"description": ["Input of type double"],
"default": 0.0
},
"double2_0": {
"type": "double[2]",
"description": ["Input of type double[2]"],
"default": [0.0, 0.0]
},
"double2_1": {
"type": "double[2]",
"description": ["Input of type double[2]"],
"default": [0.0, 0.0]
},
"double3_0": {
"type": "double[3]",
"description": ["Input of type double[3]"],
"default": [0.0, 0.0, 0.0]
},
"double3_1": {
"type": "double[3]",
"description": ["Input of type double[3]"],
"default": [0.0, 0.0, 0.0]
},
"double4_0": {
"type": "double[4]",
"description": ["Input of type double[4]"],
"default": [0.0, 0.0, 0.0, 0.0]
},
"double4_1": {
"type": "double[4]",
"description": ["Input of type double[4]"],
"default": [0.0, 0.0, 0.0, 0.0]
},
"double_arr_0": {
"type": "double[]",
"description": ["Input of type double[]"],
"default": []
},
"double_arr_1": {
"type": "double[]",
"description": ["Input of type double[]"],
"default": []
},
"double2_arr_0": {
"type": "double[2][]",
"description": ["Input of type double[2][]"],
"default": []
},
"double2_arr_1": {
"type": "double[2][]",
"description": ["Input of type double[2][]"],
"default": []
},
"double3_arr_0": {
"type": "double[3][]",
"description": ["Input of type double[3][]"],
"default": []
},
"double3_arr_1": {
"type": "double[3][]",
"description": ["Input of type double[3][]"],
"default": []
},
"double4_arr_0": {
"type": "double[4][]",
"description": ["Input of type double[4][]"],
"default": []
},
"double4_arr_1": {
"type": "double[4][]",
"description": ["Input of type double[4][]"],
"default": []
},
"float_0": {
"type": "float",
"description": ["Input of type float"],
"default": 0.0
},
"float_1": {
"type": "float",
"description": ["Input of type float"],
"default": 0.0
},
"float2_0": {
"type": "float[2]",
"description": ["Input of type float[2]"],
"default": [0.0, 0.0]
},
"float2_1": {
"type": "float[2]",
"description": ["Input of type float[2]"],
"default": [0.0, 0.0]
},
"float3_0": {
"type": "float[3]",
"description": ["Input of type float[3]"],
"default": [0.0, 0.0, 0.0]
},
"float3_1": {
"type": "float[3]",
"description": ["Input of type float[3]"],
"default": [0.0, 0.0, 0.0]
},
"float4_0": {
"type": "float[4]",
"description": ["Input of type float[4]"],
"default": [0.0, 0.0, 0.0, 0.0]
},
"float4_1": {
"type": "float[4]",
"description": ["Input of type float[4]"],
"default": [0.0, 0.0, 0.0, 0.0]
},
"float_arr_0": {
"type": "float[]",
"description": ["Input of type float[]"],
"default": []
},
"float_arr_1": {
"type": "float[]",
"description": ["Input of type float[]"],
"default": []
},
"float2_arr_0": {
"type": "float[2][]",
"description": ["Input of type float[2][]"],
"default": []
},
"float2_arr_1": {
"type": "float[2][]",
"description": ["Input of type float[2][]"],
"default": []
},
"float3_arr_0": {
"type": "float[3][]",
"description": ["Input of type float[3][]"],
"default": []
},
"float3_arr_1": {
"type": "float[3][]",
"description": ["Input of type float[3][]"],
"default": []
},
"float4_arr_0": {
"type": "float[4][]",
"description": ["Input of type float[4][]"],
"default": []
},
"float4_arr_1": {
"type": "float[4][]",
"description": ["Input of type float[4][]"],
"default": []
},
"frame4_0": {
"type": "frame[4]",
"description": ["Input of type frame[4]"],
"default": [[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]]
},
"frame4_1": {
"type": "frame[4]",
"description": ["Input of type frame[4]"],
"default": [[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]]
},
"frame4_arr_0": {
"type": "frame[4][]",
"description": ["Input of type frame[4][]"],
"default": []
},
"frame4_arr_1": {
"type": "frame[4][]",
"description": ["Input of type frame[4][]"],
"default": []
},
"half_0": {
"type": "half",
"description": ["Input of type half"],
"default": 0.0
},
"half_1": {
"type": "half",
"description": ["Input of type half"],
"default": 0.0
},
"half2_0": {
"type": "half[2]",
"description": ["Input of type half[2]"],
"default": [0.0, 0.0]
},
"half2_1": {
"type": "half[2]",
"description": ["Input of type half[2]"],
"default": [0.0, 0.0]
},
"half3_0": {
"type": "half[3]",
"description": ["Input of type half[3]"],
"default": [0.0, 0.0, 0.0]
},
"half3_1": {
"type": "half[3]",
"description": ["Input of type half[3]"],
"default": [0.0, 0.0, 0.0]
},
"half4_0": {
"type": "half[4]",
"description": ["Input of type half[4]"],
"default": [0.0, 0.0, 0.0, 0.0]
},
"half4_1": {
"type": "half[4]",
"description": ["Input of type half[4]"],
"default": [0.0, 0.0, 0.0, 0.0]
},
"half_arr_0": {
"type": "half[]",
"description": ["Input of type half[]"],
"default": []
},
"half_arr_1": {
"type": "half[]",
"description": ["Input of type half[]"],
"default": []
},
"half2_arr_0": {
"type": "half[2][]",
"description": ["Input of type half[2][]"],
"default": []
},
"half2_arr_1": {
"type": "half[2][]",
"description": ["Input of type half[2][]"],
"default": []
},
"half3_arr_0": {
"type": "half[3][]",
"description": ["Input of type half[3][]"],
"default": []
},
"half3_arr_1": {
"type": "half[3][]",
"description": ["Input of type half[3][]"],
"default": []
},
"half4_arr_0": {
"type": "half[4][]",
"description": ["Input of type half[4][]"],
"default": []
},
"half4_arr_1": {
"type": "half[4][]",
"description": ["Input of type half[4][]"],
"default": []
},
"int_0": {
"type": "int",
"description": ["Input of type int"],
"default": 0
},
"int_1": {
"type": "int",
"description": ["Input of type int"],
"default": 0
},
"int2_0": {
"type": "int[2]",
"description": ["Input of type int[2]"],
"default": [0, 0]
},
"int2_1": {
"type": "int[2]",
"description": ["Input of type int[2]"],
"default": [0, 0]
},
"int3_0": {
"type": "int[3]",
"description": ["Input of type int[3]"],
"default": [0, 0, 0]
},
"int3_1": {
"type": "int[3]",
"description": ["Input of type int[3]"],
"default": [0, 0, 0]
},
"int4_0": {
"type": "int[4]",
"description": ["Input of type int[4]"],
"default": [0, 0, 0, 0]
},
"int4_1": {
"type": "int[4]",
"description": ["Input of type int[4]"],
"default": [0, 0, 0, 0]
},
"int_arr_0": {
"type": "int[]",
"description": ["Input of type int[]"],
"default": []
},
"int_arr_1": {
"type": "int[]",
"description": ["Input of type int[]"],
"default": []
},
"int2_arr_0": {
"type": "int[2][]",
"description": ["Input of type int[2][]"],
"default": []
},
"int2_arr_1": {
"type": "int[2][]",
"description": ["Input of type int[2][]"],
"default": []
},
"int3_arr_0": {
"type": "int[3][]",
"description": ["Input of type int[3][]"],
"default": []
},
"int3_arr_1": {
"type": "int[3][]",
"description": ["Input of type int[3][]"],
"default": []
},
"int4_arr_0": {
"type": "int[4][]",
"description": ["Input of type int[4][]"],
"default": []
},
"int4_arr_1": {
"type": "int[4][]",
"description": ["Input of type int[4][]"],
"default": []
},
"int64_0": {
"type": "int64",
"description": ["Input of type int64"],
"default": 0
},
"int64_1": {
"type": "int64",
"description": ["Input of type int64"],
"default": 0
},
"int64_arr_0": {
"type": "int64[]",
"description": ["Input of type int64[]"],
"default": []
},
"int64_arr_1": {
"type": "int64[]",
"description": ["Input of type int64[]"],
"default": []
},
"matrixd2_0": {
"type": "matrixd[2]",
"description": ["Input of type matrixd[2]"],
"default": [[0.0, 0.0], [0.0, 0.0]]
},
"matrixd2_1": {
"type": "matrixd[2]",
"description": ["Input of type matrixd[2]"],
"default": [[0.0, 0.0], [0.0, 0.0]]
},
"matrixd3_0": {
"type": "matrixd[3]",
"description": ["Input of type matrixd[3]"],
"default": [[0.0, 0.0, 0.0], [0.0, 0.0, 0.0], [0.0, 0.0, 0.0]]
},
"matrixd3_1": {
"type": "matrixd[3]",
"description": ["Input of type matrixd[3]"],
"default": [[0.0, 0.0, 0.0], [0.0, 0.0, 0.0], [0.0, 0.0, 0.0]]
},
"matrixd4_0": {
"type": "matrixd[4]",
"description": ["Input of type matrixd[4]"],
"default": [[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]]
},
"matrixd4_1": {
"type": "matrixd[4]",
"description": ["Input of type matrixd[4]"],
"default": [[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]]
},
"matrixd2_arr_0": {
"type": "matrixd[2][]",
"description": ["Input of type matrixd[2][]"],
"default": []
},
"matrixd2_arr_1": {
"type": "matrixd[2][]",
"description": ["Input of type matrixd[2][]"],
"default": []
},
"matrixd3_arr_0": {
"type": "matrixd[3][]",
"description": ["Input of type matrixd[3][]"],
"default": []
},
"matrixd3_arr_1": {
"type": "matrixd[3][]",
"description": ["Input of type matrixd[3][]"],
"default": []
},
"matrixd4_arr_0": {
"type": "matrixd[4][]",
"description": ["Input of type matrixd[4][]"],
"default": []
},
"matrixd4_arr_1": {
"type": "matrixd[4][]",
"description": ["Input of type matrixd[4][]"],
"default": []
},
"normald3_0": {
"type": "normald[3]",
"description": ["Input of type normald[3]"],
"default": [0.0, 0.0, 0.0]
},
"normald3_1": {
"type": "normald[3]",
"description": ["Input of type normald[3]"],
"default": [0.0, 0.0, 0.0]
},
"normald3_arr_0": {
"type": "normald[3][]",
"description": ["Input of type normald[3][]"],
"default": []
},
"normald3_arr_1": {
"type": "normald[3][]",
"description": ["Input of type normald[3][]"],
"default": []
},
"normalf3_0": {
"type": "normalf[3]",
"description": ["Input of type normalf[3]"],
"default": [0.0, 0.0, 0.0]
},
"normalf3_1": {
"type": "normalf[3]",
"description": ["Input of type normalf[3]"],
"default": [0.0, 0.0, 0.0]
},
"normalf3_arr_0": {
"type": "normalf[3][]",
"description": ["Input of type normalf[3][]"],
"default": []
},
"normalf3_arr_1": {
"type": "normalf[3][]",
"description": ["Input of type normalf[3][]"],
"default": []
},
"normalh3_0": {
"type": "normalh[3]",
"description": ["Input of type normalh[3]"],
"default": [0.0, 0.0, 0.0]
},
"normalh3_1": {
"type": "normalh[3]",
"description": ["Input of type normalh[3]"],
"default": [0.0, 0.0, 0.0]
},
"normalh3_arr_0": {
"type": "normalh[3][]",
"description": ["Input of type normalh[3][]"],
"default": []
},
"normalh3_arr_1": {
"type": "normalh[3][]",
"description": ["Input of type normalh[3][]"],
"default": []
},
"pointd3_0": {
"type": "pointd[3]",
"description": ["Input of type pointd[3]"],
"default": [0.0, 0.0, 0.0]
},
"pointd3_1": {
"type": "pointd[3]",
"description": ["Input of type pointd[3]"],
"default": [0.0, 0.0, 0.0]
},
"pointd3_arr_0": {
"type": "pointd[3][]",
"description": ["Input of type pointd[3][]"],
"default": []
},
"pointd3_arr_1": {
"type": "pointd[3][]",
"description": ["Input of type pointd[3][]"],
"default": []
},
"pointf3_0": {
"type": "pointf[3]",
"description": ["Input of type pointf[3]"],
"default": [0.0, 0.0, 0.0]
},
"pointf3_1": {
"type": "pointf[3]",
"description": ["Input of type pointf[3]"],
"default": [0.0, 0.0, 0.0]
},
"pointf3_arr_0": {
"type": "pointf[3][]",
"description": ["Input of type pointf[3][]"],
"default": []
},
"pointf3_arr_1": {
"type": "pointf[3][]",
"description": ["Input of type pointf[3][]"],
"default": []
},
"pointh3_0": {
"type": "pointh[3]",
"description": ["Input of type pointh[3]"],
"default": [0.0, 0.0, 0.0]
},
"pointh3_1": {
"type": "pointh[3]",
"description": ["Input of type pointh[3]"],
"default": [0.0, 0.0, 0.0]
},
"pointh3_arr_0": {
"type": "pointh[3][]",
"description": ["Input of type pointh[3][]"],
"default": []
},
"pointh3_arr_1": {
"type": "pointh[3][]",
"description": ["Input of type pointh[3][]"],
"default": []
},
"quatd4_0": {
"type": "quatd[4]",
"description": ["Input of type quatd[4]"],
"default": [0.0, 0.0, 0.0, 0.0]
},
"quatd4_1": {
"type": "quatd[4]",
"description": ["Input of type quatd[4]"],
"default": [0.0, 0.0, 0.0, 0.0]
},
"quatd4_arr_0": {
"type": "quatd[4][]",
"description": ["Input of type quatd[4][]"],
"default": []
},
"quatd4_arr_1": {
"type": "quatd[4][]",
"description": ["Input of type quatd[4][]"],
"default": []
},
"quatf4_0": {
"type": "quatf[4]",
"description": ["Input of type quatf[4]"],
"default": [0.0, 0.0, 0.0, 0.0]
},
"quatf4_1": {
"type": "quatf[4]",
"description": ["Input of type quatf[4]"],
"default": [0.0, 0.0, 0.0, 0.0]
},
"quatf4_arr_0": {
"type": "quatf[4][]",
"description": ["Input of type quatf[4][]"],
"default": []
},
"quatf4_arr_1": {
"type": "quatf[4][]",
"description": ["Input of type quatf[4][]"],
"default": []
},
"quath4_0": {
"type": "quath[4]",
"description": ["Input of type quath[4]"],
"default": [0.0, 0.0, 0.0, 0.0]
},
"quath4_1": {
"type": "quath[4]",
"description": ["Input of type quath[4]"],
"default": [0.0, 0.0, 0.0, 0.0]
},
"quath4_arr_0": {
"type": "quath[4][]",
"description": ["Input of type quath[4][]"],
"default": []
},
"quath4_arr_1": {
"type": "quath[4][]",
"description": ["Input of type quath[4][]"],
"default": []
},
"texcoordd2_0": {
"type": "texcoordd[2]",
"description": ["Input of type texcoordd[2]"],
"default": [0.0, 0.0]
},
"texcoordd2_1": {
"type": "texcoordd[2]",
"description": ["Input of type texcoordd[2]"],
"default": [0.0, 0.0]
},
"texcoordd3_0": {
"type": "texcoordd[3]",
"description": ["Input of type texcoordd[3]"],
"default": [0.0, 0.0, 0.0]
},
"texcoordd3_1": {
"type": "texcoordd[3]",
"description": ["Input of type texcoordd[3]"],
"default": [0.0, 0.0, 0.0]
},
"texcoordd2_arr_0": {
"type": "texcoordd[2][]",
"description": ["Input of type texcoordd[2][]"],
"default": []
},
"texcoordd2_arr_1": {
"type": "texcoordd[2][]",
"description": ["Input of type texcoordd[2][]"],
"default": []
},
"texcoordd3_arr_0": {
"type": "texcoordd[3][]",
"description": ["Input of type texcoordd[3][]"],
"default": []
},
"texcoordd3_arr_1": {
"type": "texcoordd[3][]",
"description": ["Input of type texcoordd[3][]"],
"default": []
},
"texcoordf2_0": {
"type": "texcoordf[2]",
"description": ["Input of type texcoordf[2]"],
"default": [0.0, 0.0]
},
"texcoordf2_1": {
"type": "texcoordf[2]",
"description": ["Input of type texcoordf[2]"],
"default": [0.0, 0.0]
},
"texcoordf3_0": {
"type": "texcoordf[3]",
"description": ["Input of type texcoordf[3]"],
"default": [0.0, 0.0, 0.0]
},
"texcoordf3_1": {
"type": "texcoordf[3]",
"description": ["Input of type texcoordf[3]"],
"default": [0.0, 0.0, 0.0]
},
"texcoordf2_arr_0": {
"type": "texcoordf[2][]",
"description": ["Input of type texcoordf[2][]"],
"default": []
},
"texcoordf2_arr_1": {
"type": "texcoordf[2][]",
"description": ["Input of type texcoordf[2][]"],
"default": []
},
"texcoordf3_arr_0": {
"type": "texcoordf[3][]",
"description": ["Input of type texcoordf[3][]"],
"default": []
},
"texcoordf3_arr_1": {
"type": "texcoordf[3][]",
"description": ["Input of type texcoordf[3][]"],
"default": []
},
"texcoordh2_0": {
"type": "texcoordh[2]",
"description": ["Input of type texcoordh[2]"],
"default": [0.0, 0.0]
},
"texcoordh2_1": {
"type": "texcoordh[2]",
"description": ["Input of type texcoordh[2]"],
"default": [0.0, 0.0]
},
"texcoordh3_0": {
"type": "texcoordh[3]",
"description": ["Input of type texcoordh[3]"],
"default": [0.0, 0.0, 0.0]
},
"texcoordh3_1": {
"type": "texcoordh[3]",
"description": ["Input of type texcoordh[3]"],
"default": [0.0, 0.0, 0.0]
},
"texcoordh2_arr_0": {
"type": "texcoordh[2][]",
"description": ["Input of type texcoordh[2][]"],
"default": []
},
"texcoordh2_arr_1": {
"type": "texcoordh[2][]",
"description": ["Input of type texcoordh[2][]"],
"default": []
},
"texcoordh3_arr_0": {
"type": "texcoordh[3][]",
"description": ["Input of type texcoordh[3][]"],
"default": []
},
"texcoordh3_arr_1": {
"type": "texcoordh[3][]",
"description": ["Input of type texcoordh[3][]"],
"default": []
},
"timecode_0": {
"type": "timecode",
"description": ["Input of type timecode"],
"default": 0.0
},
"timecode_1": {
"type": "timecode",
"description": ["Input of type timecode"],
"default": 0.0
},
"timecode_arr_0": {
"type": "timecode[]",
"description": ["Input of type timecode[]"],
"default": []
},
"timecode_arr_1": {
"type": "timecode[]",
"description": ["Input of type timecode[]"],
"default": []
},
"token_0": {
"type": "token",
"description": ["Input of type token"],
"default": "default_token"
},
"token_1": {
"type": "token",
"description": ["Input of type token"],
"default": "default_token"
},
"token_arr_0": {
"type": "token[]",
"description": ["Input of type token[]"],
"default": []
},
"token_arr_1": {
"type": "token[]",
"description": ["Input of type token[]"],
"default": []
},
"transform4_0": {
"type": "transform[4]",
"description": ["Input of type transform[4]"],
"default": [[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]]
},
"transform4_1": {
"type": "transform[4]",
"description": ["Input of type transform[4]"],
"default": [[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]]
},
"transform4_arr_0": {
"type": "transform[4][]",
"description": ["Input of type transform[4][]"],
"default": []
},
"transform4_arr_1": {
"type": "transform[4][]",
"description": ["Input of type transform[4][]"],
"default": []
},
"uchar_0": {
"type": "uchar",
"description": ["Input of type uchar"],
"default": 0
},
"uchar_1": {
"type": "uchar",
"description": ["Input of type uchar"],
"default": 0
},
"uchar_arr_0": {
"type": "uchar[]",
"description": ["Input of type uchar[]"],
"default": []
},
"uchar_arr_1": {
"type": "uchar[]",
"description": ["Input of type uchar[]"],
"default": []
},
"uint_0": {
"type": "uint",
"description": ["Input of type uint"],
"default": 0
},
"uint_1": {
"type": "uint",
"description": ["Input of type uint"],
"default": 0
},
"uint_arr_0": {
"type": "uint[]",
"description": ["Input of type uint[]"],
"default": []
},
"uint_arr_1": {
"type": "uint[]",
"description": ["Input of type uint[]"],
"default": []
},
"uint64_0": {
"type": "uint64",
"description": ["Input of type uint64"],
"default": 0
},
"uint64_1": {
"type": "uint64",
"description": ["Input of type uint64"],
"default": 0
},
"uint64_arr_0": {
"type": "uint64[]",
"description": ["Input of type uint64[]"],
"default": []
},
"uint64_arr_1": {
"type": "uint64[]",
"description": ["Input of type uint64[]"],
"default": []
},
"vectord3_0": {
"type": "vectord[3]",
"description": ["Input of type vectord[3]"],
"default": [0.0, 0.0, 0.0]
},
"vectord3_1": {
"type": "vectord[3]",
"description": ["Input of type vectord[3]"],
"default": [0.0, 0.0, 0.0]
},
"vectord3_arr_0": {
"type": "vectord[3][]",
"description": ["Input of type vectord[3][]"],
"default": []
},
"vectord3_arr_1": {
"type": "vectord[3][]",
"description": ["Input of type vectord[3][]"],
"default": []
},
"vectorf3_0": {
"type": "vectorf[3]",
"description": ["Input of type vectorf[3]"],
"default": [0.0, 0.0, 0.0]
},
"vectorf3_1": {
"type": "vectorf[3]",
"description": ["Input of type vectorf[3]"],
"default": [0.0, 0.0, 0.0]
},
"vectorf3_arr_0": {
"type": "vectorf[3][]",
"description": ["Input of type vectorf[3][]"],
"default": []
},
"vectorf3_arr_1": {
"type": "vectorf[3][]",
"description": ["Input of type vectorf[3][]"],
"default": []
},
"vectorh3_0": {
"type": "vectorh[3]",
"description": ["Input of type vectorh[3]"],
"default": [0.0, 0.0, 0.0]
},
"vectorh3_1": {
"type": "vectorh[3]",
"description": ["Input of type vectorh[3]"],
"default": [0.0, 0.0, 0.0]
},
"vectorh3_arr_0": {
"type": "vectorh[3][]",
"description": ["Input of type vectorh[3][]"],
"default": []
},
"vectorh3_arr_1": {
"type": "vectorh[3][]",
"description": ["Input of type vectorh[3][]"],
"default": []
}
},
"outputs": {
"bool_0": {
"type": "bool",
"description": ["Output of type bool"],
"default": false
},
"bool_arr_0": {
"type": "bool[]",
"description": ["Output of type bool[]"],
"default": []
},
"colord3_0": {
"type": "colord[3]",
"description": ["Output of type colord[3]"],
"default": [0.0, 0.0, 0.0]
},
"colord4_0": {
"type": "colord[4]",
"description": ["Output of type colord[4]"],
"default": [0.0, 0.0, 0.0, 0.0]
},
"colord3_arr_0": {
"type": "colord[3][]",
"description": ["Output of type colord[3][]"],
"default": []
},
"colord4_arr_0": {
"type": "colord[4][]",
"description": ["Output of type colord[4][]"],
"default": []
},
"colorf3_0": {
"type": "colorf[3]",
"description": ["Output of type colorf[3]"],
"default": [0.0, 0.0, 0.0]
},
"colorf4_0": {
"type": "colorf[4]",
"description": ["Output of type colorf[4]"],
"default": [0.0, 0.0, 0.0, 0.0]
},
"colorf3_arr_0": {
"type": "colorf[3][]",
"description": ["Output of type colorf[3][]"],
"default": []
},
"colorf4_arr_0": {
"type": "colorf[4][]",
"description": ["Output of type colorf[4][]"],
"default": []
},
"colorh3_0": {
"type": "colorh[3]",
"description": ["Output of type colorh[3]"],
"default": [0.0, 0.0, 0.0]
},
"colorh4_0": {
"type": "colorh[4]",
"description": ["Output of type colorh[4]"],
"default": [0.0, 0.0, 0.0, 0.0]
},
"colorh3_arr_0": {
"type": "colorh[3][]",
"description": ["Output of type colorh[3][]"],
"default": []
},
"colorh4_arr_0": {
"type": "colorh[4][]",
"description": ["Output of type colorh[4][]"],
"default": []
},
"double_0": {
"type": "double",
"description": ["Output of type double"],
"default": 0.0
},
"double2_0": {
"type": "double[2]",
"description": ["Output of type double[2]"],
"default": [0.0, 0.0]
},
"double3_0": {
"type": "double[3]",
"description": ["Output of type double[3]"],
"default": [0.0, 0.0, 0.0]
},
"double4_0": {
"type": "double[4]",
"description": ["Output of type double[4]"],
"default": [0.0, 0.0, 0.0, 0.0]
},
"double_arr_0": {
"type": "double[]",
"description": ["Output of type double[]"],
"default": []
},
"double2_arr_0": {
"type": "double[2][]",
"description": ["Output of type double[2][]"],
"default": []
},
"double3_arr_0": {
"type": "double[3][]",
"description": ["Output of type double[3][]"],
"default": []
},
"double4_arr_0": {
"type": "double[4][]",
"description": ["Output of type double[4][]"],
"default": []
},
"float_0": {
"type": "float",
"description": ["Output of type float"],
"default": 0.0
},
"float2_0": {
"type": "float[2]",
"description": ["Output of type float[2]"],
"default": [0.0, 0.0]
},
"float3_0": {
"type": "float[3]",
"description": ["Output of type float[3]"],
"default": [0.0, 0.0, 0.0]
},
"float4_0": {
"type": "float[4]",
"description": ["Output of type float[4]"],
"default": [0.0, 0.0, 0.0, 0.0]
},
"float_arr_0": {
"type": "float[]",
"description": ["Output of type float[]"],
"default": []
},
"float2_arr_0": {
"type": "float[2][]",
"description": ["Output of type float[2][]"],
"default": []
},
"float3_arr_0": {
"type": "float[3][]",
"description": ["Output of type float[3][]"],
"default": []
},
"float4_arr_0": {
"type": "float[4][]",
"description": ["Output of type float[4][]"],
"default": []
},
"frame4_0": {
"type": "frame[4]",
"description": ["Output of type frame[4]"],
"default": [[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]]
},
"frame4_arr_0": {
"type": "frame[4][]",
"description": ["Output of type frame[4][]"],
"default": []
},
"half_0": {
"type": "half",
"description": ["Output of type half"],
"default": 0.0
},
"half2_0": {
"type": "half[2]",
"description": ["Output of type half[2]"],
"default": [0.0, 0.0]
},
"half3_0": {
"type": "half[3]",
"description": ["Output of type half[3]"],
"default": [0.0, 0.0, 0.0]
},
"half4_0": {
"type": "half[4]",
"description": ["Output of type half[4]"],
"default": [0.0, 0.0, 0.0, 0.0]
},
"half_arr_0": {
"type": "half[]",
"description": ["Output of type half[]"],
"default": []
},
"half2_arr_0": {
"type": "half[2][]",
"description": ["Output of type half[2][]"],
"default": []
},
"half3_arr_0": {
"type": "half[3][]",
"description": ["Output of type half[3][]"],
"default": []
},
"half4_arr_0": {
"type": "half[4][]",
"description": ["Output of type half[4][]"],
"default": []
},
"int_0": {
"type": "int",
"description": ["Output of type int"],
"default": 0
},
"int2_0": {
"type": "int[2]",
"description": ["Output of type int[2]"],
"default": [0, 0]
},
"int3_0": {
"type": "int[3]",
"description": ["Output of type int[3]"],
"default": [0, 0, 0]
},
"int4_0": {
"type": "int[4]",
"description": ["Output of type int[4]"],
"default": [0, 0, 0, 0]
},
"int_arr_0": {
"type": "int[]",
"description": ["Output of type int[]"],
"default": []
},
"int2_arr_0": {
"type": "int[2][]",
"description": ["Output of type int[2][]"],
"default": []
},
"int3_arr_0": {
"type": "int[3][]",
"description": ["Output of type int[3][]"],
"default": []
},
"int4_arr_0": {
"type": "int[4][]",
"description": ["Output of type int[4][]"],
"default": []
},
"int64_0": {
"type": "int64",
"description": ["Output of type int64"],
"default": 0
},
"int64_arr_0": {
"type": "int64[]",
"description": ["Output of type int64[]"],
"default": []
},
"matrixd2_0": {
"type": "matrixd[2]",
"description": ["Output of type matrixd[2]"],
"default": [[0.0, 0.0], [0.0, 0.0]]
},
"matrixd3_0": {
"type": "matrixd[3]",
"description": ["Output of type matrixd[3]"],
"default": [[0.0, 0.0, 0.0], [0.0, 0.0, 0.0], [0.0, 0.0, 0.0]]
},
"matrixd4_0": {
"type": "matrixd[4]",
"description": ["Output of type matrixd[4]"],
"default": [[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]]
},
"matrixd2_arr_0": {
"type": "matrixd[2][]",
"description": ["Output of type matrixd[2][]"],
"default": []
},
"matrixd3_arr_0": {
"type": "matrixd[3][]",
"description": ["Output of type matrixd[3][]"],
"default": []
},
"matrixd4_arr_0": {
"type": "matrixd[4][]",
"description": ["Output of type matrixd[4][]"],
"default": []
},
"normald3_0": {
"type": "normald[3]",
"description": ["Output of type normald[3]"],
"default": [0.0, 0.0, 0.0]
},
"normald3_arr_0": {
"type": "normald[3][]",
"description": ["Output of type normald[3][]"],
"default": []
},
"normalf3_0": {
"type": "normalf[3]",
"description": ["Output of type normalf[3]"],
"default": [0.0, 0.0, 0.0]
},
"normalf3_arr_0": {
"type": "normalf[3][]",
"description": ["Output of type normalf[3][]"],
"default": []
},
"normalh3_0": {
"type": "normalh[3]",
"description": ["Output of type normalh[3]"],
"default": [0.0, 0.0, 0.0]
},
"normalh3_arr_0": {
"type": "normalh[3][]",
"description": ["Output of type normalh[3][]"],
"default": []
},
"pointd3_0": {
"type": "pointd[3]",
"description": ["Output of type pointd[3]"],
"default": [0.0, 0.0, 0.0]
},
"pointd3_arr_0": {
"type": "pointd[3][]",
"description": ["Output of type pointd[3][]"],
"default": []
},
"pointf3_0": {
"type": "pointf[3]",
"description": ["Output of type pointf[3]"],
"default": [0.0, 0.0, 0.0]
},
"pointf3_arr_0": {
"type": "pointf[3][]",
"description": ["Output of type pointf[3][]"],
"default": []
},
"pointh3_0": {
"type": "pointh[3]",
"description": ["Output of type pointh[3]"],
"default": [0.0, 0.0, 0.0]
},
"pointh3_arr_0": {
"type": "pointh[3][]",
"description": ["Output of type pointh[3][]"],
"default": []
},
"quatd4_0": {
"type": "quatd[4]",
"description": ["Output of type quatd[4]"],
"default": [0.0, 0.0, 0.0, 0.0]
},
"quatd4_arr_0": {
"type": "quatd[4][]",
"description": ["Output of type quatd[4][]"],
"default": []
},
"quatf4_0": {
"type": "quatf[4]",
"description": ["Output of type quatf[4]"],
"default": [0.0, 0.0, 0.0, 0.0]
},
"quatf4_arr_0": {
"type": "quatf[4][]",
"description": ["Output of type quatf[4][]"],
"default": []
},
"quath4_0": {
"type": "quath[4]",
"description": ["Output of type quath[4]"],
"default": [0.0, 0.0, 0.0, 0.0]
},
"quath4_arr_0": {
"type": "quath[4][]",
"description": ["Output of type quath[4][]"],
"default": []
},
"texcoordd2_0": {
"type": "texcoordd[2]",
"description": ["Output of type texcoordd[2]"],
"default": [0.0, 0.0]
},
"texcoordd3_0": {
"type": "texcoordd[3]",
"description": ["Output of type texcoordd[3]"],
"default": [0.0, 0.0, 0.0]
},
"texcoordd2_arr_0": {
"type": "texcoordd[2][]",
"description": ["Output of type texcoordd[2][]"],
"default": []
},
"texcoordd3_arr_0": {
"type": "texcoordd[3][]",
"description": ["Output of type texcoordd[3][]"],
"default": []
},
"texcoordf2_0": {
"type": "texcoordf[2]",
"description": ["Output of type texcoordf[2]"],
"default": [0.0, 0.0]
},
"texcoordf3_0": {
"type": "texcoordf[3]",
"description": ["Output of type texcoordf[3]"],
"default": [0.0, 0.0, 0.0]
},
"texcoordf2_arr_0": {
"type": "texcoordf[2][]",
"description": ["Output of type texcoordf[2][]"],
"default": []
},
"texcoordf3_arr_0": {
"type": "texcoordf[3][]",
"description": ["Output of type texcoordf[3][]"],
"default": []
},
"texcoordh2_0": {
"type": "texcoordh[2]",
"description": ["Output of type texcoordh[2]"],
"default": [0.0, 0.0]
},
"texcoordh3_0": {
"type": "texcoordh[3]",
"description": ["Output of type texcoordh[3]"],
"default": [0.0, 0.0, 0.0]
},
"texcoordh2_arr_0": {
"type": "texcoordh[2][]",
"description": ["Output of type texcoordh[2][]"],
"default": []
},
"texcoordh3_arr_0": {
"type": "texcoordh[3][]",
"description": ["Output of type texcoordh[3][]"],
"default": []
},
"timecode_0": {
"type": "timecode",
"description": ["Output of type timecode"],
"default": 0.0
},
"timecode_arr_0": {
"type": "timecode[]",
"description": ["Output of type timecode[]"],
"default": []
},
"token_0": {
"type": "token",
"description": ["Output of type token"],
"default": "default_token"
},
"token_arr_0": {
"type": "token[]",
"description": ["Output of type token[]"],
"default": []
},
"transform4_0": {
"type": "transform[4]",
"description": ["Output of type transform[4]"],
"default": [[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]]
},
"transform4_arr_0": {
"type": "transform[4][]",
"description": ["Output of type transform[4][]"],
"default": []
},
"uchar_0": {
"type": "uchar",
"description": ["Output of type uchar"],
"default": 0
},
"uchar_arr_0": {
"type": "uchar[]",
"description": ["Output of type uchar[]"],
"default": []
},
"uint_0": {
"type": "uint",
"description": ["Output of type uint"],
"default": 0
},
"uint_arr_0": {
"type": "uint[]",
"description": ["Output of type uint[]"],
"default": []
},
"uint64_0": {
"type": "uint64",
"description": ["Output of type uint64"],
"default": 0
},
"uint64_arr_0": {
"type": "uint64[]",
"description": ["Output of type uint64[]"],
"default": []
},
"vectord3_0": {
"type": "vectord[3]",
"description": ["Output of type vectord[3]"],
"default": [0.0, 0.0, 0.0]
},
"vectord3_arr_0": {
"type": "vectord[3][]",
"description": ["Output of type vectord[3][]"],
"default": []
},
"vectorf3_0": {
"type": "vectorf[3]",
"description": ["Output of type vectorf[3]"],
"default": [0.0, 0.0, 0.0]
},
"vectorf3_arr_0": {
"type": "vectorf[3][]",
"description": ["Output of type vectorf[3][]"],
"default": []
},
"vectorh3_0": {
"type": "vectorh[3]",
"description": ["Output of type vectorh[3]"],
"default": [0.0, 0.0, 0.0]
},
"vectorh3_arr_0": {
"type": "vectorh[3][]",
"description": ["Output of type vectorh[3][]"],
"default": []
}
}
}
}
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/utility/OgnPyUniversalAdd.py | class OgnPyUniversalAdd:
@staticmethod
def compute(db):
db.outputs.bool_0 = db.inputs.bool_0 ^ db.inputs.bool_1
db.outputs.bool_arr_0 = [
db.inputs.bool_arr_0[i] ^ db.inputs.bool_arr_1[i] for i in range(len(db.inputs.bool_arr_0))
]
db.outputs.colord3_0 = db.inputs.colord3_0 + db.inputs.colord3_1
db.outputs.colord4_0 = db.inputs.colord4_0 + db.inputs.colord4_1
db.outputs.colord3_arr_0 = db.inputs.colord3_arr_0 + db.inputs.colord3_arr_1
db.outputs.colord4_arr_0 = db.inputs.colord4_arr_0 + db.inputs.colord4_arr_1
db.outputs.colorf3_0 = db.inputs.colorf3_0 + db.inputs.colorf3_1
db.outputs.colorf4_0 = db.inputs.colorf4_0 + db.inputs.colorf4_1
db.outputs.colorf3_arr_0 = db.inputs.colorf3_arr_0 + db.inputs.colorf3_arr_1
db.outputs.colorf4_arr_0 = db.inputs.colorf4_arr_0 + db.inputs.colorf4_arr_1
db.outputs.colorh3_0 = db.inputs.colorh3_0 + db.inputs.colorh3_1
db.outputs.colorh4_0 = db.inputs.colorh4_0 + db.inputs.colorh4_1
db.outputs.colorh3_arr_0 = db.inputs.colorh3_arr_0 + db.inputs.colorh3_arr_1
db.outputs.colorh4_arr_0 = db.inputs.colorh4_arr_0 + db.inputs.colorh4_arr_1
db.outputs.double_0 = db.inputs.double_0 + db.inputs.double_1
db.outputs.double2_0 = db.inputs.double2_0 + db.inputs.double2_1
db.outputs.double3_0 = db.inputs.double3_0 + db.inputs.double3_1
db.outputs.double4_0 = db.inputs.double4_0 + db.inputs.double4_1
db.outputs.double_arr_0 = db.inputs.double_arr_0 + db.inputs.double_arr_1
db.outputs.double2_arr_0 = db.inputs.double2_arr_0 + db.inputs.double2_arr_1
db.outputs.double3_arr_0 = db.inputs.double3_arr_0 + db.inputs.double3_arr_1
db.outputs.double4_arr_0 = db.inputs.double4_arr_0 + db.inputs.double4_arr_1
db.outputs.float_0 = db.inputs.float_0 + db.inputs.float_1
db.outputs.float2_0 = db.inputs.float2_0 + db.inputs.float2_1
db.outputs.float3_0 = db.inputs.float3_0 + db.inputs.float3_1
db.outputs.float4_0 = db.inputs.float4_0 + db.inputs.float4_1
db.outputs.float_arr_0 = db.inputs.float_arr_0 + db.inputs.float_arr_1
db.outputs.float2_arr_0 = db.inputs.float2_arr_0 + db.inputs.float2_arr_1
db.outputs.float3_arr_0 = db.inputs.float3_arr_0 + db.inputs.float3_arr_1
db.outputs.float4_arr_0 = db.inputs.float4_arr_0 + db.inputs.float4_arr_1
db.outputs.frame4_0 = db.inputs.frame4_0 + db.inputs.frame4_1
db.outputs.frame4_arr_0 = db.inputs.frame4_arr_0 + db.inputs.frame4_arr_1
db.outputs.half_0 = db.inputs.half_0 + db.inputs.half_1
db.outputs.half2_0 = db.inputs.half2_0 + db.inputs.half2_1
db.outputs.half3_0 = db.inputs.half3_0 + db.inputs.half3_1
db.outputs.half4_0 = db.inputs.half4_0 + db.inputs.half4_1
db.outputs.half_arr_0 = db.inputs.half_arr_0 + db.inputs.half_arr_1
db.outputs.half2_arr_0 = db.inputs.half2_arr_0 + db.inputs.half2_arr_1
db.outputs.half3_arr_0 = db.inputs.half3_arr_0 + db.inputs.half3_arr_1
db.outputs.half4_arr_0 = db.inputs.half4_arr_0 + db.inputs.half4_arr_1
db.outputs.int_0 = db.inputs.int_0 + db.inputs.int_1
db.outputs.int2_0 = db.inputs.int2_0 + db.inputs.int2_1
db.outputs.int3_0 = db.inputs.int3_0 + db.inputs.int3_1
db.outputs.int4_0 = db.inputs.int4_0 + db.inputs.int4_1
db.outputs.int_arr_0 = db.inputs.int_arr_0 + db.inputs.int_arr_1
db.outputs.int2_arr_0 = db.inputs.int2_arr_0 + db.inputs.int2_arr_1
db.outputs.int3_arr_0 = db.inputs.int3_arr_0 + db.inputs.int3_arr_1
db.outputs.int4_arr_0 = db.inputs.int4_arr_0 + db.inputs.int4_arr_1
db.outputs.int64_0 = db.inputs.int64_0 + db.inputs.int64_1
db.outputs.int64_arr_0 = db.inputs.int64_arr_0 + db.inputs.int64_arr_1
db.outputs.matrixd2_0 = db.inputs.matrixd2_0 + db.inputs.matrixd2_1
db.outputs.matrixd3_0 = db.inputs.matrixd3_0 + db.inputs.matrixd3_1
db.outputs.matrixd4_0 = db.inputs.matrixd4_0 + db.inputs.matrixd4_1
db.outputs.matrixd2_arr_0 = db.inputs.matrixd2_arr_0 + db.inputs.matrixd2_arr_1
db.outputs.matrixd3_arr_0 = db.inputs.matrixd3_arr_0 + db.inputs.matrixd3_arr_1
db.outputs.matrixd4_arr_0 = db.inputs.matrixd4_arr_0 + db.inputs.matrixd4_arr_1
db.outputs.normald3_0 = db.inputs.normald3_0 + db.inputs.normald3_1
db.outputs.normald3_arr_0 = db.inputs.normald3_arr_0 + db.inputs.normald3_arr_1
db.outputs.normalf3_0 = db.inputs.normalf3_0 + db.inputs.normalf3_1
db.outputs.normalf3_arr_0 = db.inputs.normalf3_arr_0 + db.inputs.normalf3_arr_1
db.outputs.normalh3_0 = db.inputs.normalh3_0 + db.inputs.normalh3_1
db.outputs.normalh3_arr_0 = db.inputs.normalh3_arr_0 + db.inputs.normalh3_arr_1
db.outputs.pointd3_0 = db.inputs.pointd3_0 + db.inputs.pointd3_1
db.outputs.pointd3_arr_0 = db.inputs.pointd3_arr_0 + db.inputs.pointd3_arr_1
db.outputs.pointf3_0 = db.inputs.pointf3_0 + db.inputs.pointf3_1
db.outputs.pointf3_arr_0 = db.inputs.pointf3_arr_0 + db.inputs.pointf3_arr_1
db.outputs.pointh3_0 = db.inputs.pointh3_0 + db.inputs.pointh3_1
db.outputs.pointh3_arr_0 = db.inputs.pointh3_arr_0 + db.inputs.pointh3_arr_1
db.outputs.quatd4_0 = db.inputs.quatd4_0 + db.inputs.quatd4_1
db.outputs.quatd4_arr_0 = db.inputs.quatd4_arr_0 + db.inputs.quatd4_arr_1
db.outputs.quatf4_0 = db.inputs.quatf4_0 + db.inputs.quatf4_1
db.outputs.quatf4_arr_0 = db.inputs.quatf4_arr_0 + db.inputs.quatf4_arr_1
db.outputs.quath4_0 = db.inputs.quath4_0 + db.inputs.quath4_1
db.outputs.quath4_arr_0 = db.inputs.quath4_arr_0 + db.inputs.quath4_arr_1
db.outputs.texcoordd2_0 = db.inputs.texcoordd2_0 + db.inputs.texcoordd2_1
db.outputs.texcoordd3_0 = db.inputs.texcoordd3_0 + db.inputs.texcoordd3_1
db.outputs.texcoordd2_arr_0 = db.inputs.texcoordd2_arr_0 + db.inputs.texcoordd2_arr_1
db.outputs.texcoordd3_arr_0 = db.inputs.texcoordd3_arr_0 + db.inputs.texcoordd3_arr_1
db.outputs.texcoordf2_0 = db.inputs.texcoordf2_0 + db.inputs.texcoordf2_1
db.outputs.texcoordf3_0 = db.inputs.texcoordf3_0 + db.inputs.texcoordf3_1
db.outputs.texcoordf2_arr_0 = db.inputs.texcoordf2_arr_0 + db.inputs.texcoordf2_arr_1
db.outputs.texcoordf3_arr_0 = db.inputs.texcoordf3_arr_0 + db.inputs.texcoordf3_arr_1
db.outputs.texcoordh2_0 = db.inputs.texcoordh2_0 + db.inputs.texcoordh2_1
db.outputs.texcoordh3_0 = db.inputs.texcoordh3_0 + db.inputs.texcoordh3_1
db.outputs.texcoordh2_arr_0 = db.inputs.texcoordh2_arr_0 + db.inputs.texcoordh2_arr_1
db.outputs.texcoordh3_arr_0 = db.inputs.texcoordh3_arr_0 + db.inputs.texcoordh3_arr_1
db.outputs.timecode_0 = db.inputs.timecode_0 + db.inputs.timecode_1
db.outputs.timecode_arr_0 = db.inputs.timecode_arr_0 + db.inputs.timecode_arr_1
db.outputs.token_0 = db.inputs.token_0 + db.inputs.token_1
db.outputs.token_arr_0 = [
db.inputs.token_arr_0[i] + db.inputs.token_arr_1[i] for i in range(len(db.inputs.token_arr_0))
]
db.outputs.transform4_0 = db.inputs.transform4_0 + db.inputs.transform4_1
db.outputs.transform4_arr_0 = db.inputs.transform4_arr_0 + db.inputs.transform4_arr_1
db.outputs.uchar_0 = db.inputs.uchar_0 + db.inputs.uchar_1
db.outputs.uchar_arr_0 = db.inputs.uchar_arr_0 + db.inputs.uchar_arr_1
db.outputs.uint_0 = db.inputs.uint_0 + db.inputs.uint_1
db.outputs.uint_arr_0 = db.inputs.uint_arr_0 + db.inputs.uint_arr_1
db.outputs.uint64_0 = db.inputs.uint64_0 + db.inputs.uint64_1
db.outputs.uint64_arr_0 = db.inputs.uint64_arr_0 + db.inputs.uint64_arr_1
db.outputs.vectord3_0 = db.inputs.vectord3_0 + db.inputs.vectord3_1
db.outputs.vectord3_arr_0 = db.inputs.vectord3_arr_0 + db.inputs.vectord3_arr_1
db.outputs.vectorf3_0 = db.inputs.vectorf3_0 + db.inputs.vectorf3_1
db.outputs.vectorf3_arr_0 = db.inputs.vectorf3_arr_0 + db.inputs.vectorf3_arr_1
db.outputs.vectorh3_0 = db.inputs.vectorh3_0 + db.inputs.vectorh3_1
db.outputs.vectorh3_arr_0 = db.inputs.vectorh3_arr_0 + db.inputs.vectorh3_arr_1
return True
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/utility/OgnDynamicSwitch.ogn | {
"DynamicSwitch" : {
"description": ["A switch node that will enable the left side or right side depending on the input. Requires dynamic scheduling to work"],
"categories": "examples",
"version": 1,
"metadata": {
"uiName": "Dynamic Switch"
},
"language": "python",
"exclude": ["usd"],
"inputs": {
"switch": {
"type": "int",
"description": ["Enables right value if greater than 0, else left value"],
"default": 0
},
"left_value": {
"type": "int",
"description": ["Left value to output"],
"default": -1
},
"right_value": {
"type": "int",
"description": ["Right value to output"],
"default": 1
}
},
"outputs": {
"left_out": {
"type": "int",
"description": ["Left side output"],
"default": 0
},
"right_out": {
"type": "int",
"description": ["Right side output"],
"default": 0
}
}
}
}
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/utility/OgnDynamicSwitch.py | """
Implementation of an stateful OmniGraph node that enables 1 branch or another using dynamic scheduling
"""
class OgnDynamicSwitch:
@staticmethod
def compute(db):
db.node.set_dynamic_downstream_control(True)
left_out_attr = db.node.get_attribute("outputs:left_out")
right_out_attr = db.node.get_attribute("outputs:right_out")
if db.inputs.switch > 0:
left_out_attr.set_disable_dynamic_downstream_work(True)
right_out_attr.set_disable_dynamic_downstream_work(False)
else:
left_out_attr.set_disable_dynamic_downstream_work(False)
right_out_attr.set_disable_dynamic_downstream_work(True)
db.outputs.left_out = db.inputs.left_value
db.outputs.right_out = db.inputs.right_value
return True
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/stateful/OgnCountTo.py | """
Implementation of an stateful OmniGraph node that counts to a number defined by countTo
"""
class OgnCountTo:
@staticmethod
def compute(db):
if db.inputs.reset:
db.outputs.count = 0
else:
db.outputs.count = db.outputs.count + db.inputs.increment
if db.outputs.count > db.inputs.countTo:
db.outputs.count = db.inputs.countTo
else:
db.node.set_compute_incomplete()
return True
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/stateful/OgnIntCounter.ogn | {
"IntCounter": {
"version": 1,
"categories": "examples",
"description": ["Example stateful node that increments every time it's evaluated"],
"language": "python",
"metadata": {
"uiName": "Int Counter"
},
"inputs": {
"reset": {
"type": "bool",
"description": ["Whether to reset the count"],
"default": false
},
"increment": {
"type": "int",
"description": ["Increment to count by"],
"default": 1
}
},
"outputs": {
"count": {
"type": "int",
"description": ["The current count"],
"default": 0
}
}
}
}
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/stateful/OgnCountTo.ogn | {
"CountTo": {
"version": 1,
"categories": "examples",
"description": ["Example stateful node that counts to countTo by a certain increment"],
"language": "python",
"metadata": {
"uiName": "Count To"
},
"inputs": {
"trigger": {
"description": "Position to be used as a trigger for the counting",
"type": "double[3]",
"default": [0.0, 0.0, 0.0]
},
"reset": {
"type": "bool",
"description": ["Whether to reset the count"],
"default": false
},
"countTo": {
"type": "double",
"description": ["The ceiling to count to"],
"default": 3
},
"increment": {
"type": "double",
"description": ["Increment to count by"],
"default": 0.1
}
},
"outputs": {
"count": {
"type": "double",
"description": ["The current count"],
"default": 0.0
}
}
}
}
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/stateful/OgnIntCounter.py | """
Implementation of an stateful OmniGraph node that counts up by an increment
"""
class OgnIntCounter:
@staticmethod
def compute(db):
if db.inputs.reset:
db.outputs.count = 0
else:
db.outputs.count = db.outputs.count + db.inputs.increment
return True
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/tests/OgnTestInitNode.py | import omni.graph.core as og
class OgnTestInitNode:
@staticmethod
def initialize(context, node):
_ = og.Controller()
@staticmethod
def release(node):
pass
@staticmethod
def compute(db):
db.outputs.value = 1.0
return True
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/tests/OgnTestSingleton.py | class OgnTestSingleton:
@staticmethod
def compute(db):
db.outputs.out = 88.8
return True
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/tests/OgnTestInitNode.ogn | {
"TestInitNode": {
"version": 1,
"categories": "examples",
"description": ["Test Init Node"],
"uiName": "TestInitNode",
"language": "python",
"outputs": {
"value": {
"type": "float",
"description": ["Value"]
}
}
}
}
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/tests/OgnTestSingleton.ogn | {
"TestSingleton": {
"version": 1,
"categories": "examples",
"description": [ "Example node that showcases the use of singleton nodes (nodes that can have only 1 instance)" ],
"language": "python",
"metadata": {
"uiName": "Test Singleton",
"singleton": "True"
},
"outputs": {
"out": {
"type": "double",
"description": [ "The unique output of the only instance of this node" ]
}
}
}
}
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/deformers/OgnVersionedDeformerPy.py | """
Implementation of a Python node that handles a simple version upgrade where the different versions contain
different attributes:
Version 0: multiplier
Version 1: multiplier, wavelength
Version 2: wavelength
Depending on the version that was received the upgrade will remove the obsolete "multiplier" attribute and/or
insert the new "wavelength" attribute.
"""
import numpy as np
import omni.graph.core as og
class OgnVersionedDeformerPy:
@staticmethod
def compute(db):
input_points = db.inputs.points
if len(input_points) <= 0:
return False
wavelength = db.inputs.wavelength
if wavelength <= 0.0:
wavelength = 310.0
db.outputs.points_size = input_points.shape[0]
# Nothing to evaluate if there are no input points
if db.outputs.points_size == 0:
return True
output_points = db.outputs.points
pt = input_points.copy() # we still need to do a copy here because we do not want to modify points
tx = (pt[:, 0] - wavelength) / wavelength
ty = (pt[:, 1] - wavelength) / wavelength
disp = 10.0 * (np.sin(tx * 10.0) + np.cos(ty * 15.0))
pt[:, 2] += disp * 5
output_points[:] = pt[:] # we modify output_points in memory so we do not need to set the value again
return True
@staticmethod
def update_node_version(context, node, old_version, new_version):
if old_version < new_version:
if old_version < 1:
node.create_attribute(
"inputs:wavelength",
og.Type(og.BaseDataType.FLOAT),
og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT,
50.0,
)
if old_version < 2:
node.remove_attribute("inputs:multiplier")
return True
return False
@staticmethod
def initialize_type(node_type):
node_type.add_input("test_input", "int", True)
node_type.add_output("test_output", "float", True)
node_type.add_extended_input(
"test_union_input", "float,double", True, og.ExtendedAttributeType.EXTENDED_ATTR_TYPE_UNION
)
return True
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/deformers/OgnDeformerGpu.ogn | {
"DeformerPyGpu": {
"version": 1,
"categories": "examples",
"description": ["Example node applying a sine wave deformation to a set of points, written in Python for the GPU"],
"language": "python",
"memoryType": "cuda",
"metadata": {
"uiName": "Sine Wave Deformer Z-axis (Python GPU)"
},
"inputs": {
"multiplier": {
"type": "float",
"description": ["The multiplier for the amplitude of the sine wave"],
"default": 1
},
"points": {
"type": "pointf[3][]",
"description": ["The input points to be deformed"],
"default": []
}
},
"outputs": {
"points": {
"type": "pointf[3][]",
"description": ["The deformed output points"]
}
}
}
} |
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/deformers/OgnDeformerCpu.py | """
Implementation of an OmniGraph node that deforms a surface using a sine wave
"""
import numpy as np
class OgnDeformerCpu:
@staticmethod
def compute(db):
"""Deform the input points by a multiple of the sine wave"""
points = db.inputs.points
multiplier = db.inputs.multiplier
db.outputs.points_size = points.shape[0]
# Nothing to evaluate if there are no input points
if db.outputs.points_size == 0:
return True
output_points = db.outputs.points
pt = points.copy() # we still need to do a copy here because we do not want to modify points
tx = (pt[:, 0] - 310.0) / 310.0
ty = (pt[:, 1] - 310.0) / 310.0
disp = 10.0 * (np.sin(tx * 10.0) + np.cos(ty * 15.0))
pt[:, 2] += disp * multiplier
output_points[:] = pt[:] # we modify output_points in memory so we do not need to set the value again
return True
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/deformers/OgnDeformerCpu.ogn | {
"DeformerPy": {
"version": 1,
"categories": "examples",
"description": ["Example node applying a sine wave deformation to a set of points, written in Python"],
"language": "python",
"metadata": {
"uiName": "Sine Wave Deformer Z-axis (Python)"
},
"inputs": {
"multiplier": {
"type": "float",
"description": ["The multiplier for the amplitude of the sine wave"],
"default": 1.0
},
"points": {
"type": "pointf[3][]",
"description": ["The input points to be deformed"],
"default": []
}
},
"outputs": {
"points": {
"type": "pointf[3][]",
"description": ["The deformed output points"]
}
},
"tests": [
{ "inputs:points": [[1.0, 2.0, 3.0]], "inputs:multiplier": 2.0, "outputs:points": [[1.0, 2.0, -0.53249073]]}
]
}
} |
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/deformers/OgnDeformerGpu.py | """
Implementation of an OmniGraph node that runs a simple deformer on the GPU
"""
from contextlib import suppress
with suppress(ImportError):
import torch
class OgnDeformerGpu:
@staticmethod
def compute(db) -> bool:
try:
# TODO: This method of GPU compute isn't recommended. Use CPU compute or Warp.
if torch:
input_points = db.inputs.points
multiplier = db.inputs.multiplier
db.outputs.points_size = input_points.shape[0]
# Nothing to evaluate if there are no input points
if db.outputs.points_size == 0:
return True
output_points = db.outputs.points
pt = input_points.copy()
tx = (pt[:, 0] - 310.0) / 310.0
ty = (pt[:, 1] - 310.0) / 310.0
disp = 10.0 * (torch.sin(tx * 10.0) + torch.cos(ty * 15.0))
pt[:, 2] += disp * multiplier
output_points[:] = pt[:]
return True
except NameError:
db.log_warning("Torch not found, no compute")
return False
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/python/nodes/deformers/OgnVersionedDeformerPy.ogn | {
"VersionedDeformerPy" : {
"description": ["Test node to confirm version upgrading works.",
"Performs a basic deformation on some points."],
"version": 2,
"categories": "examples",
"uiName": "VersionedDeformerPy",
"language": "python",
"inputs": {
"points": {
"description": ["Set of points to be deformed"],
"type": "pointf[3][]",
"default": []
},
"wavelength": {
"description": ["Wavelength of sinusodal deformer function"],
"type": "float",
"default": 50.0
}
},
"outputs": {
"points": {
"description": ["Set of deformed points"],
"type": "pointf[3][]"
}
},
"tests": [
{
"inputs:points": [[1.0, 2.0, 3.0], [3.0, 4.0, 5.0]],
"inputs:wavelength": 3.0,
"outputs:points": [[1.0, 2.0, -1.5244665], [3.0, 4.0, 19.18311]]
}
]
}
} |
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/tests/TestOgnBouncingCubesGpu.py | import omni.kit.test
import omni.graph.core as og
import omni.graph.core.tests as ogts
from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode
from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene
from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene
from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene
class TestOgn(ogts.OmniGraphTestCase):
async def test_data_access(self):
from omni.graph.examples.python.ogn.OgnBouncingCubesGpuDatabase import OgnBouncingCubesGpuDatabase
(_, (test_node,), _, _) = og.Controller.edit("/TestGraph", {
og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_examples_python_BouncingCubesGpu", "omni.graph.examples.python.BouncingCubesGpu")
})
database = OgnBouncingCubesGpuDatabase(test_node)
self.assertTrue(test_node.is_valid())
node_type_name = test_node.get_type_name()
self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1)
def _attr_error(attribute: og.Attribute, usd_test: bool) -> str:
test_type = "USD Load" if usd_test else "Database Access"
return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error"
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/tests/TestOgnAbsDouble.py | import os
import omni.kit.test
import omni.graph.core as og
import omni.graph.core.tests as ogts
from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode
from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene
from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene
from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene
class TestOgn(ogts.OmniGraphTestCase):
TEST_DATA = [
{
'inputs': [
['inputs:num', -8.0, False],
],
'outputs': [
['outputs:out', 8.0, False],
],
},
{
'inputs': [
['inputs:num', 8.0, False],
],
'outputs': [
['outputs:out', 8.0, False],
],
},
{
'inputs': [
['inputs:num', -0.0, False],
],
'outputs': [
['outputs:out', 0.0, False],
],
},
]
async def test_generated(self):
test_info = _TestGraphAndNode()
controller = og.Controller()
for i, test_run in enumerate(self.TEST_DATA):
await _test_clear_scene(self, test_run)
test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_examples_python_AbsDouble", "omni.graph.examples.python.AbsDouble", test_run, test_info)
await controller.evaluate(test_info.graph)
_test_verify_scene(self, controller, test_run, test_info, f"omni.graph.examples.python.AbsDouble User test case #{i+1}")
async def test_vectorized_generated(self):
test_info = _TestGraphAndNode()
controller = og.Controller()
for i, test_run in enumerate(self.TEST_DATA):
await _test_clear_scene(self, test_run)
test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_examples_python_AbsDouble","omni.graph.examples.python.AbsDouble", test_run, test_info, 16)
await controller.evaluate(test_info.graph)
_test_verify_scene(self, controller, test_run, test_info, f"omni.graph.examples.python.AbsDouble User test case #{i+1}", 16)
async def test_data_access(self):
from omni.graph.examples.python.ogn.OgnAbsDoubleDatabase import OgnAbsDoubleDatabase
test_file_name = "OgnAbsDoubleTemplate.usda"
usd_path = os.path.join(os.path.dirname(__file__), "usd", test_file_name)
if not os.path.exists(usd_path):
self.assertTrue(False, f"{usd_path} not found for loading test")
(result, error) = await ogts.load_test_file(usd_path)
self.assertTrue(result, f'{error} on {usd_path}')
test_node = og.Controller.node("/TestGraph/Template_omni_graph_examples_python_AbsDouble")
database = OgnAbsDoubleDatabase(test_node)
self.assertTrue(test_node.is_valid())
node_type_name = test_node.get_type_name()
self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1)
def _attr_error(attribute: og.Attribute, usd_test: bool) -> str:
test_type = "USD Load" if usd_test else "Database Access"
return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error"
self.assertTrue(test_node.get_attribute_exists("inputs:num"))
attribute = test_node.get_attribute("inputs:num")
db_value = database.inputs.num
expected_value = 0
actual_value = og.Controller.get(attribute)
ogts.verify_values(expected_value, actual_value, _attr_error(attribute, True))
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("outputs:out"))
attribute = test_node.get_attribute("outputs:out")
db_value = database.outputs.out
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/tests/TestOgnDynamicSwitch.py | import omni.kit.test
import omni.graph.core as og
import omni.graph.core.tests as ogts
from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode
from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene
from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene
from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene
class TestOgn(ogts.OmniGraphTestCase):
async def test_data_access(self):
from omni.graph.examples.python.ogn.OgnDynamicSwitchDatabase import OgnDynamicSwitchDatabase
(_, (test_node,), _, _) = og.Controller.edit("/TestGraph", {
og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_examples_python_DynamicSwitch", "omni.graph.examples.python.DynamicSwitch")
})
database = OgnDynamicSwitchDatabase(test_node)
self.assertTrue(test_node.is_valid())
node_type_name = test_node.get_type_name()
self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1)
def _attr_error(attribute: og.Attribute, usd_test: bool) -> str:
test_type = "USD Load" if usd_test else "Database Access"
return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error"
self.assertTrue(test_node.get_attribute_exists("inputs:left_value"))
attribute = test_node.get_attribute("inputs:left_value")
db_value = database.inputs.left_value
expected_value = -1
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:right_value"))
attribute = test_node.get_attribute("inputs:right_value")
db_value = database.inputs.right_value
expected_value = 1
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:switch"))
attribute = test_node.get_attribute("inputs:switch")
db_value = database.inputs.switch
expected_value = 0
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("outputs:left_out"))
attribute = test_node.get_attribute("outputs:left_out")
db_value = database.outputs.left_out
self.assertTrue(test_node.get_attribute_exists("outputs:right_out"))
attribute = test_node.get_attribute("outputs:right_out")
db_value = database.outputs.right_out
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/tests/TestOgnExecSwitch.py | import omni.kit.test
import omni.graph.core as og
import omni.graph.core.tests as ogts
from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode
from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene
from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene
from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene
class TestOgn(ogts.OmniGraphTestCase):
async def test_data_access(self):
from omni.graph.examples.python.ogn.OgnExecSwitchDatabase import OgnExecSwitchDatabase
(_, (test_node,), _, _) = og.Controller.edit("/TestGraph", {
og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_examples_python_ExecSwitch", "omni.graph.examples.python.ExecSwitch")
})
database = OgnExecSwitchDatabase(test_node)
self.assertTrue(test_node.is_valid())
node_type_name = test_node.get_type_name()
self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1)
def _attr_error(attribute: og.Attribute, usd_test: bool) -> str:
test_type = "USD Load" if usd_test else "Database Access"
return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error"
self.assertTrue(test_node.get_attribute_exists("inputs:execIn"))
attribute = test_node.get_attribute("inputs:execIn")
db_value = database.inputs.execIn
self.assertTrue(test_node.get_attribute_exists("inputs:switch"))
attribute = test_node.get_attribute("inputs:switch")
db_value = database.inputs.switch
expected_value = False
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("outputs:execLeftOut"))
attribute = test_node.get_attribute("outputs:execLeftOut")
db_value = database.outputs.execLeftOut
self.assertTrue(test_node.get_attribute_exists("outputs:execRightOut"))
attribute = test_node.get_attribute("outputs:execRightOut")
db_value = database.outputs.execRightOut
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/tests/TestOgnPyUniversalAdd.py | import omni.kit.test
import omni.graph.core as og
import omni.graph.core.tests as ogts
from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode
from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene
from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene
from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene
class TestOgn(ogts.OmniGraphTestCase):
async def test_data_access(self):
from omni.graph.examples.python.ogn.OgnPyUniversalAddDatabase import OgnPyUniversalAddDatabase
(_, (test_node,), _, _) = og.Controller.edit("/TestGraph", {
og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_examples_python_UniversalAdd", "omni.graph.examples.python.UniversalAdd")
})
database = OgnPyUniversalAddDatabase(test_node)
self.assertTrue(test_node.is_valid())
node_type_name = test_node.get_type_name()
self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1)
def _attr_error(attribute: og.Attribute, usd_test: bool) -> str:
test_type = "USD Load" if usd_test else "Database Access"
return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error"
self.assertTrue(test_node.get_attribute_exists("inputs:bool_0"))
attribute = test_node.get_attribute("inputs:bool_0")
db_value = database.inputs.bool_0
expected_value = False
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:bool_1"))
attribute = test_node.get_attribute("inputs:bool_1")
db_value = database.inputs.bool_1
expected_value = False
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:bool_arr_0"))
attribute = test_node.get_attribute("inputs:bool_arr_0")
db_value = database.inputs.bool_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:bool_arr_1"))
attribute = test_node.get_attribute("inputs:bool_arr_1")
db_value = database.inputs.bool_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:colord3_0"))
attribute = test_node.get_attribute("inputs:colord3_0")
db_value = database.inputs.colord3_0
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:colord3_1"))
attribute = test_node.get_attribute("inputs:colord3_1")
db_value = database.inputs.colord3_1
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:colord3_arr_0"))
attribute = test_node.get_attribute("inputs:colord3_arr_0")
db_value = database.inputs.colord3_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:colord3_arr_1"))
attribute = test_node.get_attribute("inputs:colord3_arr_1")
db_value = database.inputs.colord3_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:colord4_0"))
attribute = test_node.get_attribute("inputs:colord4_0")
db_value = database.inputs.colord4_0
expected_value = [0.0, 0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:colord4_1"))
attribute = test_node.get_attribute("inputs:colord4_1")
db_value = database.inputs.colord4_1
expected_value = [0.0, 0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:colord4_arr_0"))
attribute = test_node.get_attribute("inputs:colord4_arr_0")
db_value = database.inputs.colord4_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:colord4_arr_1"))
attribute = test_node.get_attribute("inputs:colord4_arr_1")
db_value = database.inputs.colord4_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:colorf3_0"))
attribute = test_node.get_attribute("inputs:colorf3_0")
db_value = database.inputs.colorf3_0
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:colorf3_1"))
attribute = test_node.get_attribute("inputs:colorf3_1")
db_value = database.inputs.colorf3_1
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:colorf3_arr_0"))
attribute = test_node.get_attribute("inputs:colorf3_arr_0")
db_value = database.inputs.colorf3_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:colorf3_arr_1"))
attribute = test_node.get_attribute("inputs:colorf3_arr_1")
db_value = database.inputs.colorf3_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:colorf4_0"))
attribute = test_node.get_attribute("inputs:colorf4_0")
db_value = database.inputs.colorf4_0
expected_value = [0.0, 0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:colorf4_1"))
attribute = test_node.get_attribute("inputs:colorf4_1")
db_value = database.inputs.colorf4_1
expected_value = [0.0, 0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:colorf4_arr_0"))
attribute = test_node.get_attribute("inputs:colorf4_arr_0")
db_value = database.inputs.colorf4_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:colorf4_arr_1"))
attribute = test_node.get_attribute("inputs:colorf4_arr_1")
db_value = database.inputs.colorf4_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:colorh3_0"))
attribute = test_node.get_attribute("inputs:colorh3_0")
db_value = database.inputs.colorh3_0
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:colorh3_1"))
attribute = test_node.get_attribute("inputs:colorh3_1")
db_value = database.inputs.colorh3_1
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:colorh3_arr_0"))
attribute = test_node.get_attribute("inputs:colorh3_arr_0")
db_value = database.inputs.colorh3_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:colorh3_arr_1"))
attribute = test_node.get_attribute("inputs:colorh3_arr_1")
db_value = database.inputs.colorh3_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:colorh4_0"))
attribute = test_node.get_attribute("inputs:colorh4_0")
db_value = database.inputs.colorh4_0
expected_value = [0.0, 0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:colorh4_1"))
attribute = test_node.get_attribute("inputs:colorh4_1")
db_value = database.inputs.colorh4_1
expected_value = [0.0, 0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:colorh4_arr_0"))
attribute = test_node.get_attribute("inputs:colorh4_arr_0")
db_value = database.inputs.colorh4_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:colorh4_arr_1"))
attribute = test_node.get_attribute("inputs:colorh4_arr_1")
db_value = database.inputs.colorh4_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:double2_0"))
attribute = test_node.get_attribute("inputs:double2_0")
db_value = database.inputs.double2_0
expected_value = [0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:double2_1"))
attribute = test_node.get_attribute("inputs:double2_1")
db_value = database.inputs.double2_1
expected_value = [0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:double2_arr_0"))
attribute = test_node.get_attribute("inputs:double2_arr_0")
db_value = database.inputs.double2_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:double2_arr_1"))
attribute = test_node.get_attribute("inputs:double2_arr_1")
db_value = database.inputs.double2_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:double3_0"))
attribute = test_node.get_attribute("inputs:double3_0")
db_value = database.inputs.double3_0
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:double3_1"))
attribute = test_node.get_attribute("inputs:double3_1")
db_value = database.inputs.double3_1
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:double3_arr_0"))
attribute = test_node.get_attribute("inputs:double3_arr_0")
db_value = database.inputs.double3_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:double3_arr_1"))
attribute = test_node.get_attribute("inputs:double3_arr_1")
db_value = database.inputs.double3_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:double4_0"))
attribute = test_node.get_attribute("inputs:double4_0")
db_value = database.inputs.double4_0
expected_value = [0.0, 0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:double4_1"))
attribute = test_node.get_attribute("inputs:double4_1")
db_value = database.inputs.double4_1
expected_value = [0.0, 0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:double4_arr_0"))
attribute = test_node.get_attribute("inputs:double4_arr_0")
db_value = database.inputs.double4_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:double4_arr_1"))
attribute = test_node.get_attribute("inputs:double4_arr_1")
db_value = database.inputs.double4_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:double_0"))
attribute = test_node.get_attribute("inputs:double_0")
db_value = database.inputs.double_0
expected_value = 0.0
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:double_1"))
attribute = test_node.get_attribute("inputs:double_1")
db_value = database.inputs.double_1
expected_value = 0.0
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:double_arr_0"))
attribute = test_node.get_attribute("inputs:double_arr_0")
db_value = database.inputs.double_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:double_arr_1"))
attribute = test_node.get_attribute("inputs:double_arr_1")
db_value = database.inputs.double_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:float2_0"))
attribute = test_node.get_attribute("inputs:float2_0")
db_value = database.inputs.float2_0
expected_value = [0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:float2_1"))
attribute = test_node.get_attribute("inputs:float2_1")
db_value = database.inputs.float2_1
expected_value = [0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:float2_arr_0"))
attribute = test_node.get_attribute("inputs:float2_arr_0")
db_value = database.inputs.float2_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:float2_arr_1"))
attribute = test_node.get_attribute("inputs:float2_arr_1")
db_value = database.inputs.float2_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:float3_0"))
attribute = test_node.get_attribute("inputs:float3_0")
db_value = database.inputs.float3_0
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:float3_1"))
attribute = test_node.get_attribute("inputs:float3_1")
db_value = database.inputs.float3_1
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:float3_arr_0"))
attribute = test_node.get_attribute("inputs:float3_arr_0")
db_value = database.inputs.float3_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:float3_arr_1"))
attribute = test_node.get_attribute("inputs:float3_arr_1")
db_value = database.inputs.float3_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:float4_0"))
attribute = test_node.get_attribute("inputs:float4_0")
db_value = database.inputs.float4_0
expected_value = [0.0, 0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:float4_1"))
attribute = test_node.get_attribute("inputs:float4_1")
db_value = database.inputs.float4_1
expected_value = [0.0, 0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:float4_arr_0"))
attribute = test_node.get_attribute("inputs:float4_arr_0")
db_value = database.inputs.float4_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:float4_arr_1"))
attribute = test_node.get_attribute("inputs:float4_arr_1")
db_value = database.inputs.float4_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:float_0"))
attribute = test_node.get_attribute("inputs:float_0")
db_value = database.inputs.float_0
expected_value = 0.0
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:float_1"))
attribute = test_node.get_attribute("inputs:float_1")
db_value = database.inputs.float_1
expected_value = 0.0
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:float_arr_0"))
attribute = test_node.get_attribute("inputs:float_arr_0")
db_value = database.inputs.float_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:float_arr_1"))
attribute = test_node.get_attribute("inputs:float_arr_1")
db_value = database.inputs.float_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:frame4_0"))
attribute = test_node.get_attribute("inputs:frame4_0")
db_value = database.inputs.frame4_0
expected_value = [[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]]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:frame4_1"))
attribute = test_node.get_attribute("inputs:frame4_1")
db_value = database.inputs.frame4_1
expected_value = [[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]]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:frame4_arr_0"))
attribute = test_node.get_attribute("inputs:frame4_arr_0")
db_value = database.inputs.frame4_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:frame4_arr_1"))
attribute = test_node.get_attribute("inputs:frame4_arr_1")
db_value = database.inputs.frame4_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:half2_0"))
attribute = test_node.get_attribute("inputs:half2_0")
db_value = database.inputs.half2_0
expected_value = [0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:half2_1"))
attribute = test_node.get_attribute("inputs:half2_1")
db_value = database.inputs.half2_1
expected_value = [0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:half2_arr_0"))
attribute = test_node.get_attribute("inputs:half2_arr_0")
db_value = database.inputs.half2_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:half2_arr_1"))
attribute = test_node.get_attribute("inputs:half2_arr_1")
db_value = database.inputs.half2_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:half3_0"))
attribute = test_node.get_attribute("inputs:half3_0")
db_value = database.inputs.half3_0
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:half3_1"))
attribute = test_node.get_attribute("inputs:half3_1")
db_value = database.inputs.half3_1
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:half3_arr_0"))
attribute = test_node.get_attribute("inputs:half3_arr_0")
db_value = database.inputs.half3_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:half3_arr_1"))
attribute = test_node.get_attribute("inputs:half3_arr_1")
db_value = database.inputs.half3_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:half4_0"))
attribute = test_node.get_attribute("inputs:half4_0")
db_value = database.inputs.half4_0
expected_value = [0.0, 0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:half4_1"))
attribute = test_node.get_attribute("inputs:half4_1")
db_value = database.inputs.half4_1
expected_value = [0.0, 0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:half4_arr_0"))
attribute = test_node.get_attribute("inputs:half4_arr_0")
db_value = database.inputs.half4_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:half4_arr_1"))
attribute = test_node.get_attribute("inputs:half4_arr_1")
db_value = database.inputs.half4_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:half_0"))
attribute = test_node.get_attribute("inputs:half_0")
db_value = database.inputs.half_0
expected_value = 0.0
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:half_1"))
attribute = test_node.get_attribute("inputs:half_1")
db_value = database.inputs.half_1
expected_value = 0.0
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:half_arr_0"))
attribute = test_node.get_attribute("inputs:half_arr_0")
db_value = database.inputs.half_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:half_arr_1"))
attribute = test_node.get_attribute("inputs:half_arr_1")
db_value = database.inputs.half_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:int2_0"))
attribute = test_node.get_attribute("inputs:int2_0")
db_value = database.inputs.int2_0
expected_value = [0, 0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:int2_1"))
attribute = test_node.get_attribute("inputs:int2_1")
db_value = database.inputs.int2_1
expected_value = [0, 0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:int2_arr_0"))
attribute = test_node.get_attribute("inputs:int2_arr_0")
db_value = database.inputs.int2_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:int2_arr_1"))
attribute = test_node.get_attribute("inputs:int2_arr_1")
db_value = database.inputs.int2_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:int3_0"))
attribute = test_node.get_attribute("inputs:int3_0")
db_value = database.inputs.int3_0
expected_value = [0, 0, 0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:int3_1"))
attribute = test_node.get_attribute("inputs:int3_1")
db_value = database.inputs.int3_1
expected_value = [0, 0, 0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:int3_arr_0"))
attribute = test_node.get_attribute("inputs:int3_arr_0")
db_value = database.inputs.int3_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:int3_arr_1"))
attribute = test_node.get_attribute("inputs:int3_arr_1")
db_value = database.inputs.int3_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:int4_0"))
attribute = test_node.get_attribute("inputs:int4_0")
db_value = database.inputs.int4_0
expected_value = [0, 0, 0, 0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:int4_1"))
attribute = test_node.get_attribute("inputs:int4_1")
db_value = database.inputs.int4_1
expected_value = [0, 0, 0, 0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:int4_arr_0"))
attribute = test_node.get_attribute("inputs:int4_arr_0")
db_value = database.inputs.int4_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:int4_arr_1"))
attribute = test_node.get_attribute("inputs:int4_arr_1")
db_value = database.inputs.int4_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:int64_0"))
attribute = test_node.get_attribute("inputs:int64_0")
db_value = database.inputs.int64_0
expected_value = 0
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:int64_1"))
attribute = test_node.get_attribute("inputs:int64_1")
db_value = database.inputs.int64_1
expected_value = 0
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:int64_arr_0"))
attribute = test_node.get_attribute("inputs:int64_arr_0")
db_value = database.inputs.int64_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:int64_arr_1"))
attribute = test_node.get_attribute("inputs:int64_arr_1")
db_value = database.inputs.int64_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:int_0"))
attribute = test_node.get_attribute("inputs:int_0")
db_value = database.inputs.int_0
expected_value = 0
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:int_1"))
attribute = test_node.get_attribute("inputs:int_1")
db_value = database.inputs.int_1
expected_value = 0
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:int_arr_0"))
attribute = test_node.get_attribute("inputs:int_arr_0")
db_value = database.inputs.int_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:int_arr_1"))
attribute = test_node.get_attribute("inputs:int_arr_1")
db_value = database.inputs.int_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:matrixd2_0"))
attribute = test_node.get_attribute("inputs:matrixd2_0")
db_value = database.inputs.matrixd2_0
expected_value = [[0.0, 0.0], [0.0, 0.0]]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:matrixd2_1"))
attribute = test_node.get_attribute("inputs:matrixd2_1")
db_value = database.inputs.matrixd2_1
expected_value = [[0.0, 0.0], [0.0, 0.0]]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:matrixd2_arr_0"))
attribute = test_node.get_attribute("inputs:matrixd2_arr_0")
db_value = database.inputs.matrixd2_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:matrixd2_arr_1"))
attribute = test_node.get_attribute("inputs:matrixd2_arr_1")
db_value = database.inputs.matrixd2_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:matrixd3_0"))
attribute = test_node.get_attribute("inputs:matrixd3_0")
db_value = database.inputs.matrixd3_0
expected_value = [[0.0, 0.0, 0.0], [0.0, 0.0, 0.0], [0.0, 0.0, 0.0]]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:matrixd3_1"))
attribute = test_node.get_attribute("inputs:matrixd3_1")
db_value = database.inputs.matrixd3_1
expected_value = [[0.0, 0.0, 0.0], [0.0, 0.0, 0.0], [0.0, 0.0, 0.0]]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:matrixd3_arr_0"))
attribute = test_node.get_attribute("inputs:matrixd3_arr_0")
db_value = database.inputs.matrixd3_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:matrixd3_arr_1"))
attribute = test_node.get_attribute("inputs:matrixd3_arr_1")
db_value = database.inputs.matrixd3_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:matrixd4_0"))
attribute = test_node.get_attribute("inputs:matrixd4_0")
db_value = database.inputs.matrixd4_0
expected_value = [[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]]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:matrixd4_1"))
attribute = test_node.get_attribute("inputs:matrixd4_1")
db_value = database.inputs.matrixd4_1
expected_value = [[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]]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:matrixd4_arr_0"))
attribute = test_node.get_attribute("inputs:matrixd4_arr_0")
db_value = database.inputs.matrixd4_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:matrixd4_arr_1"))
attribute = test_node.get_attribute("inputs:matrixd4_arr_1")
db_value = database.inputs.matrixd4_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:normald3_0"))
attribute = test_node.get_attribute("inputs:normald3_0")
db_value = database.inputs.normald3_0
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:normald3_1"))
attribute = test_node.get_attribute("inputs:normald3_1")
db_value = database.inputs.normald3_1
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:normald3_arr_0"))
attribute = test_node.get_attribute("inputs:normald3_arr_0")
db_value = database.inputs.normald3_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:normald3_arr_1"))
attribute = test_node.get_attribute("inputs:normald3_arr_1")
db_value = database.inputs.normald3_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:normalf3_0"))
attribute = test_node.get_attribute("inputs:normalf3_0")
db_value = database.inputs.normalf3_0
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:normalf3_1"))
attribute = test_node.get_attribute("inputs:normalf3_1")
db_value = database.inputs.normalf3_1
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:normalf3_arr_0"))
attribute = test_node.get_attribute("inputs:normalf3_arr_0")
db_value = database.inputs.normalf3_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:normalf3_arr_1"))
attribute = test_node.get_attribute("inputs:normalf3_arr_1")
db_value = database.inputs.normalf3_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:normalh3_0"))
attribute = test_node.get_attribute("inputs:normalh3_0")
db_value = database.inputs.normalh3_0
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:normalh3_1"))
attribute = test_node.get_attribute("inputs:normalh3_1")
db_value = database.inputs.normalh3_1
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:normalh3_arr_0"))
attribute = test_node.get_attribute("inputs:normalh3_arr_0")
db_value = database.inputs.normalh3_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:normalh3_arr_1"))
attribute = test_node.get_attribute("inputs:normalh3_arr_1")
db_value = database.inputs.normalh3_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:pointd3_0"))
attribute = test_node.get_attribute("inputs:pointd3_0")
db_value = database.inputs.pointd3_0
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:pointd3_1"))
attribute = test_node.get_attribute("inputs:pointd3_1")
db_value = database.inputs.pointd3_1
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:pointd3_arr_0"))
attribute = test_node.get_attribute("inputs:pointd3_arr_0")
db_value = database.inputs.pointd3_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:pointd3_arr_1"))
attribute = test_node.get_attribute("inputs:pointd3_arr_1")
db_value = database.inputs.pointd3_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:pointf3_0"))
attribute = test_node.get_attribute("inputs:pointf3_0")
db_value = database.inputs.pointf3_0
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:pointf3_1"))
attribute = test_node.get_attribute("inputs:pointf3_1")
db_value = database.inputs.pointf3_1
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:pointf3_arr_0"))
attribute = test_node.get_attribute("inputs:pointf3_arr_0")
db_value = database.inputs.pointf3_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:pointf3_arr_1"))
attribute = test_node.get_attribute("inputs:pointf3_arr_1")
db_value = database.inputs.pointf3_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:pointh3_0"))
attribute = test_node.get_attribute("inputs:pointh3_0")
db_value = database.inputs.pointh3_0
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:pointh3_1"))
attribute = test_node.get_attribute("inputs:pointh3_1")
db_value = database.inputs.pointh3_1
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:pointh3_arr_0"))
attribute = test_node.get_attribute("inputs:pointh3_arr_0")
db_value = database.inputs.pointh3_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:pointh3_arr_1"))
attribute = test_node.get_attribute("inputs:pointh3_arr_1")
db_value = database.inputs.pointh3_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:quatd4_0"))
attribute = test_node.get_attribute("inputs:quatd4_0")
db_value = database.inputs.quatd4_0
expected_value = [0.0, 0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:quatd4_1"))
attribute = test_node.get_attribute("inputs:quatd4_1")
db_value = database.inputs.quatd4_1
expected_value = [0.0, 0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:quatd4_arr_0"))
attribute = test_node.get_attribute("inputs:quatd4_arr_0")
db_value = database.inputs.quatd4_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:quatd4_arr_1"))
attribute = test_node.get_attribute("inputs:quatd4_arr_1")
db_value = database.inputs.quatd4_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:quatf4_0"))
attribute = test_node.get_attribute("inputs:quatf4_0")
db_value = database.inputs.quatf4_0
expected_value = [0.0, 0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:quatf4_1"))
attribute = test_node.get_attribute("inputs:quatf4_1")
db_value = database.inputs.quatf4_1
expected_value = [0.0, 0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:quatf4_arr_0"))
attribute = test_node.get_attribute("inputs:quatf4_arr_0")
db_value = database.inputs.quatf4_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:quatf4_arr_1"))
attribute = test_node.get_attribute("inputs:quatf4_arr_1")
db_value = database.inputs.quatf4_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:quath4_0"))
attribute = test_node.get_attribute("inputs:quath4_0")
db_value = database.inputs.quath4_0
expected_value = [0.0, 0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:quath4_1"))
attribute = test_node.get_attribute("inputs:quath4_1")
db_value = database.inputs.quath4_1
expected_value = [0.0, 0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:quath4_arr_0"))
attribute = test_node.get_attribute("inputs:quath4_arr_0")
db_value = database.inputs.quath4_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:quath4_arr_1"))
attribute = test_node.get_attribute("inputs:quath4_arr_1")
db_value = database.inputs.quath4_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:texcoordd2_0"))
attribute = test_node.get_attribute("inputs:texcoordd2_0")
db_value = database.inputs.texcoordd2_0
expected_value = [0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:texcoordd2_1"))
attribute = test_node.get_attribute("inputs:texcoordd2_1")
db_value = database.inputs.texcoordd2_1
expected_value = [0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:texcoordd2_arr_0"))
attribute = test_node.get_attribute("inputs:texcoordd2_arr_0")
db_value = database.inputs.texcoordd2_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:texcoordd2_arr_1"))
attribute = test_node.get_attribute("inputs:texcoordd2_arr_1")
db_value = database.inputs.texcoordd2_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:texcoordd3_0"))
attribute = test_node.get_attribute("inputs:texcoordd3_0")
db_value = database.inputs.texcoordd3_0
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:texcoordd3_1"))
attribute = test_node.get_attribute("inputs:texcoordd3_1")
db_value = database.inputs.texcoordd3_1
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:texcoordd3_arr_0"))
attribute = test_node.get_attribute("inputs:texcoordd3_arr_0")
db_value = database.inputs.texcoordd3_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:texcoordd3_arr_1"))
attribute = test_node.get_attribute("inputs:texcoordd3_arr_1")
db_value = database.inputs.texcoordd3_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:texcoordf2_0"))
attribute = test_node.get_attribute("inputs:texcoordf2_0")
db_value = database.inputs.texcoordf2_0
expected_value = [0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:texcoordf2_1"))
attribute = test_node.get_attribute("inputs:texcoordf2_1")
db_value = database.inputs.texcoordf2_1
expected_value = [0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:texcoordf2_arr_0"))
attribute = test_node.get_attribute("inputs:texcoordf2_arr_0")
db_value = database.inputs.texcoordf2_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:texcoordf2_arr_1"))
attribute = test_node.get_attribute("inputs:texcoordf2_arr_1")
db_value = database.inputs.texcoordf2_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:texcoordf3_0"))
attribute = test_node.get_attribute("inputs:texcoordf3_0")
db_value = database.inputs.texcoordf3_0
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:texcoordf3_1"))
attribute = test_node.get_attribute("inputs:texcoordf3_1")
db_value = database.inputs.texcoordf3_1
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:texcoordf3_arr_0"))
attribute = test_node.get_attribute("inputs:texcoordf3_arr_0")
db_value = database.inputs.texcoordf3_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:texcoordf3_arr_1"))
attribute = test_node.get_attribute("inputs:texcoordf3_arr_1")
db_value = database.inputs.texcoordf3_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:texcoordh2_0"))
attribute = test_node.get_attribute("inputs:texcoordh2_0")
db_value = database.inputs.texcoordh2_0
expected_value = [0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:texcoordh2_1"))
attribute = test_node.get_attribute("inputs:texcoordh2_1")
db_value = database.inputs.texcoordh2_1
expected_value = [0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:texcoordh2_arr_0"))
attribute = test_node.get_attribute("inputs:texcoordh2_arr_0")
db_value = database.inputs.texcoordh2_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:texcoordh2_arr_1"))
attribute = test_node.get_attribute("inputs:texcoordh2_arr_1")
db_value = database.inputs.texcoordh2_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:texcoordh3_0"))
attribute = test_node.get_attribute("inputs:texcoordh3_0")
db_value = database.inputs.texcoordh3_0
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:texcoordh3_1"))
attribute = test_node.get_attribute("inputs:texcoordh3_1")
db_value = database.inputs.texcoordh3_1
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:texcoordh3_arr_0"))
attribute = test_node.get_attribute("inputs:texcoordh3_arr_0")
db_value = database.inputs.texcoordh3_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:texcoordh3_arr_1"))
attribute = test_node.get_attribute("inputs:texcoordh3_arr_1")
db_value = database.inputs.texcoordh3_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:timecode_0"))
attribute = test_node.get_attribute("inputs:timecode_0")
db_value = database.inputs.timecode_0
expected_value = 0.0
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:timecode_1"))
attribute = test_node.get_attribute("inputs:timecode_1")
db_value = database.inputs.timecode_1
expected_value = 0.0
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:timecode_arr_0"))
attribute = test_node.get_attribute("inputs:timecode_arr_0")
db_value = database.inputs.timecode_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:timecode_arr_1"))
attribute = test_node.get_attribute("inputs:timecode_arr_1")
db_value = database.inputs.timecode_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:token_0"))
attribute = test_node.get_attribute("inputs:token_0")
db_value = database.inputs.token_0
expected_value = "default_token"
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:token_1"))
attribute = test_node.get_attribute("inputs:token_1")
db_value = database.inputs.token_1
expected_value = "default_token"
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:token_arr_0"))
attribute = test_node.get_attribute("inputs:token_arr_0")
db_value = database.inputs.token_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:token_arr_1"))
attribute = test_node.get_attribute("inputs:token_arr_1")
db_value = database.inputs.token_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:transform4_0"))
attribute = test_node.get_attribute("inputs:transform4_0")
db_value = database.inputs.transform4_0
expected_value = [[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]]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:transform4_1"))
attribute = test_node.get_attribute("inputs:transform4_1")
db_value = database.inputs.transform4_1
expected_value = [[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]]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:transform4_arr_0"))
attribute = test_node.get_attribute("inputs:transform4_arr_0")
db_value = database.inputs.transform4_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:transform4_arr_1"))
attribute = test_node.get_attribute("inputs:transform4_arr_1")
db_value = database.inputs.transform4_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:uchar_0"))
attribute = test_node.get_attribute("inputs:uchar_0")
db_value = database.inputs.uchar_0
expected_value = 0
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:uchar_1"))
attribute = test_node.get_attribute("inputs:uchar_1")
db_value = database.inputs.uchar_1
expected_value = 0
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:uchar_arr_0"))
attribute = test_node.get_attribute("inputs:uchar_arr_0")
db_value = database.inputs.uchar_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:uchar_arr_1"))
attribute = test_node.get_attribute("inputs:uchar_arr_1")
db_value = database.inputs.uchar_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:uint64_0"))
attribute = test_node.get_attribute("inputs:uint64_0")
db_value = database.inputs.uint64_0
expected_value = 0
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:uint64_1"))
attribute = test_node.get_attribute("inputs:uint64_1")
db_value = database.inputs.uint64_1
expected_value = 0
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:uint64_arr_0"))
attribute = test_node.get_attribute("inputs:uint64_arr_0")
db_value = database.inputs.uint64_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:uint64_arr_1"))
attribute = test_node.get_attribute("inputs:uint64_arr_1")
db_value = database.inputs.uint64_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:uint_0"))
attribute = test_node.get_attribute("inputs:uint_0")
db_value = database.inputs.uint_0
expected_value = 0
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:uint_1"))
attribute = test_node.get_attribute("inputs:uint_1")
db_value = database.inputs.uint_1
expected_value = 0
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:uint_arr_0"))
attribute = test_node.get_attribute("inputs:uint_arr_0")
db_value = database.inputs.uint_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:uint_arr_1"))
attribute = test_node.get_attribute("inputs:uint_arr_1")
db_value = database.inputs.uint_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:vectord3_0"))
attribute = test_node.get_attribute("inputs:vectord3_0")
db_value = database.inputs.vectord3_0
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:vectord3_1"))
attribute = test_node.get_attribute("inputs:vectord3_1")
db_value = database.inputs.vectord3_1
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:vectord3_arr_0"))
attribute = test_node.get_attribute("inputs:vectord3_arr_0")
db_value = database.inputs.vectord3_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:vectord3_arr_1"))
attribute = test_node.get_attribute("inputs:vectord3_arr_1")
db_value = database.inputs.vectord3_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:vectorf3_0"))
attribute = test_node.get_attribute("inputs:vectorf3_0")
db_value = database.inputs.vectorf3_0
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:vectorf3_1"))
attribute = test_node.get_attribute("inputs:vectorf3_1")
db_value = database.inputs.vectorf3_1
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:vectorf3_arr_0"))
attribute = test_node.get_attribute("inputs:vectorf3_arr_0")
db_value = database.inputs.vectorf3_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:vectorf3_arr_1"))
attribute = test_node.get_attribute("inputs:vectorf3_arr_1")
db_value = database.inputs.vectorf3_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:vectorh3_0"))
attribute = test_node.get_attribute("inputs:vectorh3_0")
db_value = database.inputs.vectorh3_0
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:vectorh3_1"))
attribute = test_node.get_attribute("inputs:vectorh3_1")
db_value = database.inputs.vectorh3_1
expected_value = [0.0, 0.0, 0.0]
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:vectorh3_arr_0"))
attribute = test_node.get_attribute("inputs:vectorh3_arr_0")
db_value = database.inputs.vectorh3_arr_0
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:vectorh3_arr_1"))
attribute = test_node.get_attribute("inputs:vectorh3_arr_1")
db_value = database.inputs.vectorh3_arr_1
expected_value = []
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("outputs:bool_0"))
attribute = test_node.get_attribute("outputs:bool_0")
db_value = database.outputs.bool_0
self.assertTrue(test_node.get_attribute_exists("outputs:bool_arr_0"))
attribute = test_node.get_attribute("outputs:bool_arr_0")
db_value = database.outputs.bool_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:colord3_0"))
attribute = test_node.get_attribute("outputs:colord3_0")
db_value = database.outputs.colord3_0
self.assertTrue(test_node.get_attribute_exists("outputs:colord3_arr_0"))
attribute = test_node.get_attribute("outputs:colord3_arr_0")
db_value = database.outputs.colord3_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:colord4_0"))
attribute = test_node.get_attribute("outputs:colord4_0")
db_value = database.outputs.colord4_0
self.assertTrue(test_node.get_attribute_exists("outputs:colord4_arr_0"))
attribute = test_node.get_attribute("outputs:colord4_arr_0")
db_value = database.outputs.colord4_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:colorf3_0"))
attribute = test_node.get_attribute("outputs:colorf3_0")
db_value = database.outputs.colorf3_0
self.assertTrue(test_node.get_attribute_exists("outputs:colorf3_arr_0"))
attribute = test_node.get_attribute("outputs:colorf3_arr_0")
db_value = database.outputs.colorf3_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:colorf4_0"))
attribute = test_node.get_attribute("outputs:colorf4_0")
db_value = database.outputs.colorf4_0
self.assertTrue(test_node.get_attribute_exists("outputs:colorf4_arr_0"))
attribute = test_node.get_attribute("outputs:colorf4_arr_0")
db_value = database.outputs.colorf4_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:colorh3_0"))
attribute = test_node.get_attribute("outputs:colorh3_0")
db_value = database.outputs.colorh3_0
self.assertTrue(test_node.get_attribute_exists("outputs:colorh3_arr_0"))
attribute = test_node.get_attribute("outputs:colorh3_arr_0")
db_value = database.outputs.colorh3_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:colorh4_0"))
attribute = test_node.get_attribute("outputs:colorh4_0")
db_value = database.outputs.colorh4_0
self.assertTrue(test_node.get_attribute_exists("outputs:colorh4_arr_0"))
attribute = test_node.get_attribute("outputs:colorh4_arr_0")
db_value = database.outputs.colorh4_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:double2_0"))
attribute = test_node.get_attribute("outputs:double2_0")
db_value = database.outputs.double2_0
self.assertTrue(test_node.get_attribute_exists("outputs:double2_arr_0"))
attribute = test_node.get_attribute("outputs:double2_arr_0")
db_value = database.outputs.double2_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:double3_0"))
attribute = test_node.get_attribute("outputs:double3_0")
db_value = database.outputs.double3_0
self.assertTrue(test_node.get_attribute_exists("outputs:double3_arr_0"))
attribute = test_node.get_attribute("outputs:double3_arr_0")
db_value = database.outputs.double3_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:double4_0"))
attribute = test_node.get_attribute("outputs:double4_0")
db_value = database.outputs.double4_0
self.assertTrue(test_node.get_attribute_exists("outputs:double4_arr_0"))
attribute = test_node.get_attribute("outputs:double4_arr_0")
db_value = database.outputs.double4_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:double_0"))
attribute = test_node.get_attribute("outputs:double_0")
db_value = database.outputs.double_0
self.assertTrue(test_node.get_attribute_exists("outputs:double_arr_0"))
attribute = test_node.get_attribute("outputs:double_arr_0")
db_value = database.outputs.double_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:float2_0"))
attribute = test_node.get_attribute("outputs:float2_0")
db_value = database.outputs.float2_0
self.assertTrue(test_node.get_attribute_exists("outputs:float2_arr_0"))
attribute = test_node.get_attribute("outputs:float2_arr_0")
db_value = database.outputs.float2_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:float3_0"))
attribute = test_node.get_attribute("outputs:float3_0")
db_value = database.outputs.float3_0
self.assertTrue(test_node.get_attribute_exists("outputs:float3_arr_0"))
attribute = test_node.get_attribute("outputs:float3_arr_0")
db_value = database.outputs.float3_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:float4_0"))
attribute = test_node.get_attribute("outputs:float4_0")
db_value = database.outputs.float4_0
self.assertTrue(test_node.get_attribute_exists("outputs:float4_arr_0"))
attribute = test_node.get_attribute("outputs:float4_arr_0")
db_value = database.outputs.float4_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:float_0"))
attribute = test_node.get_attribute("outputs:float_0")
db_value = database.outputs.float_0
self.assertTrue(test_node.get_attribute_exists("outputs:float_arr_0"))
attribute = test_node.get_attribute("outputs:float_arr_0")
db_value = database.outputs.float_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:frame4_0"))
attribute = test_node.get_attribute("outputs:frame4_0")
db_value = database.outputs.frame4_0
self.assertTrue(test_node.get_attribute_exists("outputs:frame4_arr_0"))
attribute = test_node.get_attribute("outputs:frame4_arr_0")
db_value = database.outputs.frame4_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:half2_0"))
attribute = test_node.get_attribute("outputs:half2_0")
db_value = database.outputs.half2_0
self.assertTrue(test_node.get_attribute_exists("outputs:half2_arr_0"))
attribute = test_node.get_attribute("outputs:half2_arr_0")
db_value = database.outputs.half2_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:half3_0"))
attribute = test_node.get_attribute("outputs:half3_0")
db_value = database.outputs.half3_0
self.assertTrue(test_node.get_attribute_exists("outputs:half3_arr_0"))
attribute = test_node.get_attribute("outputs:half3_arr_0")
db_value = database.outputs.half3_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:half4_0"))
attribute = test_node.get_attribute("outputs:half4_0")
db_value = database.outputs.half4_0
self.assertTrue(test_node.get_attribute_exists("outputs:half4_arr_0"))
attribute = test_node.get_attribute("outputs:half4_arr_0")
db_value = database.outputs.half4_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:half_0"))
attribute = test_node.get_attribute("outputs:half_0")
db_value = database.outputs.half_0
self.assertTrue(test_node.get_attribute_exists("outputs:half_arr_0"))
attribute = test_node.get_attribute("outputs:half_arr_0")
db_value = database.outputs.half_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:int2_0"))
attribute = test_node.get_attribute("outputs:int2_0")
db_value = database.outputs.int2_0
self.assertTrue(test_node.get_attribute_exists("outputs:int2_arr_0"))
attribute = test_node.get_attribute("outputs:int2_arr_0")
db_value = database.outputs.int2_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:int3_0"))
attribute = test_node.get_attribute("outputs:int3_0")
db_value = database.outputs.int3_0
self.assertTrue(test_node.get_attribute_exists("outputs:int3_arr_0"))
attribute = test_node.get_attribute("outputs:int3_arr_0")
db_value = database.outputs.int3_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:int4_0"))
attribute = test_node.get_attribute("outputs:int4_0")
db_value = database.outputs.int4_0
self.assertTrue(test_node.get_attribute_exists("outputs:int4_arr_0"))
attribute = test_node.get_attribute("outputs:int4_arr_0")
db_value = database.outputs.int4_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:int64_0"))
attribute = test_node.get_attribute("outputs:int64_0")
db_value = database.outputs.int64_0
self.assertTrue(test_node.get_attribute_exists("outputs:int64_arr_0"))
attribute = test_node.get_attribute("outputs:int64_arr_0")
db_value = database.outputs.int64_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:int_0"))
attribute = test_node.get_attribute("outputs:int_0")
db_value = database.outputs.int_0
self.assertTrue(test_node.get_attribute_exists("outputs:int_arr_0"))
attribute = test_node.get_attribute("outputs:int_arr_0")
db_value = database.outputs.int_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:matrixd2_0"))
attribute = test_node.get_attribute("outputs:matrixd2_0")
db_value = database.outputs.matrixd2_0
self.assertTrue(test_node.get_attribute_exists("outputs:matrixd2_arr_0"))
attribute = test_node.get_attribute("outputs:matrixd2_arr_0")
db_value = database.outputs.matrixd2_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:matrixd3_0"))
attribute = test_node.get_attribute("outputs:matrixd3_0")
db_value = database.outputs.matrixd3_0
self.assertTrue(test_node.get_attribute_exists("outputs:matrixd3_arr_0"))
attribute = test_node.get_attribute("outputs:matrixd3_arr_0")
db_value = database.outputs.matrixd3_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:matrixd4_0"))
attribute = test_node.get_attribute("outputs:matrixd4_0")
db_value = database.outputs.matrixd4_0
self.assertTrue(test_node.get_attribute_exists("outputs:matrixd4_arr_0"))
attribute = test_node.get_attribute("outputs:matrixd4_arr_0")
db_value = database.outputs.matrixd4_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:normald3_0"))
attribute = test_node.get_attribute("outputs:normald3_0")
db_value = database.outputs.normald3_0
self.assertTrue(test_node.get_attribute_exists("outputs:normald3_arr_0"))
attribute = test_node.get_attribute("outputs:normald3_arr_0")
db_value = database.outputs.normald3_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:normalf3_0"))
attribute = test_node.get_attribute("outputs:normalf3_0")
db_value = database.outputs.normalf3_0
self.assertTrue(test_node.get_attribute_exists("outputs:normalf3_arr_0"))
attribute = test_node.get_attribute("outputs:normalf3_arr_0")
db_value = database.outputs.normalf3_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:normalh3_0"))
attribute = test_node.get_attribute("outputs:normalh3_0")
db_value = database.outputs.normalh3_0
self.assertTrue(test_node.get_attribute_exists("outputs:normalh3_arr_0"))
attribute = test_node.get_attribute("outputs:normalh3_arr_0")
db_value = database.outputs.normalh3_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:pointd3_0"))
attribute = test_node.get_attribute("outputs:pointd3_0")
db_value = database.outputs.pointd3_0
self.assertTrue(test_node.get_attribute_exists("outputs:pointd3_arr_0"))
attribute = test_node.get_attribute("outputs:pointd3_arr_0")
db_value = database.outputs.pointd3_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:pointf3_0"))
attribute = test_node.get_attribute("outputs:pointf3_0")
db_value = database.outputs.pointf3_0
self.assertTrue(test_node.get_attribute_exists("outputs:pointf3_arr_0"))
attribute = test_node.get_attribute("outputs:pointf3_arr_0")
db_value = database.outputs.pointf3_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:pointh3_0"))
attribute = test_node.get_attribute("outputs:pointh3_0")
db_value = database.outputs.pointh3_0
self.assertTrue(test_node.get_attribute_exists("outputs:pointh3_arr_0"))
attribute = test_node.get_attribute("outputs:pointh3_arr_0")
db_value = database.outputs.pointh3_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:quatd4_0"))
attribute = test_node.get_attribute("outputs:quatd4_0")
db_value = database.outputs.quatd4_0
self.assertTrue(test_node.get_attribute_exists("outputs:quatd4_arr_0"))
attribute = test_node.get_attribute("outputs:quatd4_arr_0")
db_value = database.outputs.quatd4_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:quatf4_0"))
attribute = test_node.get_attribute("outputs:quatf4_0")
db_value = database.outputs.quatf4_0
self.assertTrue(test_node.get_attribute_exists("outputs:quatf4_arr_0"))
attribute = test_node.get_attribute("outputs:quatf4_arr_0")
db_value = database.outputs.quatf4_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:quath4_0"))
attribute = test_node.get_attribute("outputs:quath4_0")
db_value = database.outputs.quath4_0
self.assertTrue(test_node.get_attribute_exists("outputs:quath4_arr_0"))
attribute = test_node.get_attribute("outputs:quath4_arr_0")
db_value = database.outputs.quath4_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:texcoordd2_0"))
attribute = test_node.get_attribute("outputs:texcoordd2_0")
db_value = database.outputs.texcoordd2_0
self.assertTrue(test_node.get_attribute_exists("outputs:texcoordd2_arr_0"))
attribute = test_node.get_attribute("outputs:texcoordd2_arr_0")
db_value = database.outputs.texcoordd2_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:texcoordd3_0"))
attribute = test_node.get_attribute("outputs:texcoordd3_0")
db_value = database.outputs.texcoordd3_0
self.assertTrue(test_node.get_attribute_exists("outputs:texcoordd3_arr_0"))
attribute = test_node.get_attribute("outputs:texcoordd3_arr_0")
db_value = database.outputs.texcoordd3_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:texcoordf2_0"))
attribute = test_node.get_attribute("outputs:texcoordf2_0")
db_value = database.outputs.texcoordf2_0
self.assertTrue(test_node.get_attribute_exists("outputs:texcoordf2_arr_0"))
attribute = test_node.get_attribute("outputs:texcoordf2_arr_0")
db_value = database.outputs.texcoordf2_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:texcoordf3_0"))
attribute = test_node.get_attribute("outputs:texcoordf3_0")
db_value = database.outputs.texcoordf3_0
self.assertTrue(test_node.get_attribute_exists("outputs:texcoordf3_arr_0"))
attribute = test_node.get_attribute("outputs:texcoordf3_arr_0")
db_value = database.outputs.texcoordf3_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:texcoordh2_0"))
attribute = test_node.get_attribute("outputs:texcoordh2_0")
db_value = database.outputs.texcoordh2_0
self.assertTrue(test_node.get_attribute_exists("outputs:texcoordh2_arr_0"))
attribute = test_node.get_attribute("outputs:texcoordh2_arr_0")
db_value = database.outputs.texcoordh2_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:texcoordh3_0"))
attribute = test_node.get_attribute("outputs:texcoordh3_0")
db_value = database.outputs.texcoordh3_0
self.assertTrue(test_node.get_attribute_exists("outputs:texcoordh3_arr_0"))
attribute = test_node.get_attribute("outputs:texcoordh3_arr_0")
db_value = database.outputs.texcoordh3_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:timecode_0"))
attribute = test_node.get_attribute("outputs:timecode_0")
db_value = database.outputs.timecode_0
self.assertTrue(test_node.get_attribute_exists("outputs:timecode_arr_0"))
attribute = test_node.get_attribute("outputs:timecode_arr_0")
db_value = database.outputs.timecode_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:token_0"))
attribute = test_node.get_attribute("outputs:token_0")
db_value = database.outputs.token_0
self.assertTrue(test_node.get_attribute_exists("outputs:token_arr_0"))
attribute = test_node.get_attribute("outputs:token_arr_0")
db_value = database.outputs.token_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:transform4_0"))
attribute = test_node.get_attribute("outputs:transform4_0")
db_value = database.outputs.transform4_0
self.assertTrue(test_node.get_attribute_exists("outputs:transform4_arr_0"))
attribute = test_node.get_attribute("outputs:transform4_arr_0")
db_value = database.outputs.transform4_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:uchar_0"))
attribute = test_node.get_attribute("outputs:uchar_0")
db_value = database.outputs.uchar_0
self.assertTrue(test_node.get_attribute_exists("outputs:uchar_arr_0"))
attribute = test_node.get_attribute("outputs:uchar_arr_0")
db_value = database.outputs.uchar_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:uint64_0"))
attribute = test_node.get_attribute("outputs:uint64_0")
db_value = database.outputs.uint64_0
self.assertTrue(test_node.get_attribute_exists("outputs:uint64_arr_0"))
attribute = test_node.get_attribute("outputs:uint64_arr_0")
db_value = database.outputs.uint64_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:uint_0"))
attribute = test_node.get_attribute("outputs:uint_0")
db_value = database.outputs.uint_0
self.assertTrue(test_node.get_attribute_exists("outputs:uint_arr_0"))
attribute = test_node.get_attribute("outputs:uint_arr_0")
db_value = database.outputs.uint_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:vectord3_0"))
attribute = test_node.get_attribute("outputs:vectord3_0")
db_value = database.outputs.vectord3_0
self.assertTrue(test_node.get_attribute_exists("outputs:vectord3_arr_0"))
attribute = test_node.get_attribute("outputs:vectord3_arr_0")
db_value = database.outputs.vectord3_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:vectorf3_0"))
attribute = test_node.get_attribute("outputs:vectorf3_0")
db_value = database.outputs.vectorf3_0
self.assertTrue(test_node.get_attribute_exists("outputs:vectorf3_arr_0"))
attribute = test_node.get_attribute("outputs:vectorf3_arr_0")
db_value = database.outputs.vectorf3_arr_0
self.assertTrue(test_node.get_attribute_exists("outputs:vectorh3_0"))
attribute = test_node.get_attribute("outputs:vectorh3_0")
db_value = database.outputs.vectorh3_0
self.assertTrue(test_node.get_attribute_exists("outputs:vectorh3_arr_0"))
attribute = test_node.get_attribute("outputs:vectorh3_arr_0")
db_value = database.outputs.vectorh3_arr_0
|
omniverse-code/kit/exts/omni.graph.examples.python/omni/graph/examples/python/ogn/tests/TestOgnComposeDouble3.py | import os
import omni.kit.test
import omni.graph.core as og
import omni.graph.core.tests as ogts
from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode
from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene
from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene
from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene
class TestOgn(ogts.OmniGraphTestCase):
TEST_DATA = [
{
'inputs': [
['inputs:x', 1.0, False],
['inputs:y', 2.0, False],
['inputs:z', 3.0, False],
],
'outputs': [
['outputs:double3', [1.0, 2.0, 3.0], False],
],
},
]
async def test_generated(self):
test_info = _TestGraphAndNode()
controller = og.Controller()
for i, test_run in enumerate(self.TEST_DATA):
await _test_clear_scene(self, test_run)
test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_examples_python_ComposeDouble3", "omni.graph.examples.python.ComposeDouble3", test_run, test_info)
await controller.evaluate(test_info.graph)
_test_verify_scene(self, controller, test_run, test_info, f"omni.graph.examples.python.ComposeDouble3 User test case #{i+1}")
async def test_vectorized_generated(self):
test_info = _TestGraphAndNode()
controller = og.Controller()
for i, test_run in enumerate(self.TEST_DATA):
await _test_clear_scene(self, test_run)
test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_examples_python_ComposeDouble3","omni.graph.examples.python.ComposeDouble3", test_run, test_info, 16)
await controller.evaluate(test_info.graph)
_test_verify_scene(self, controller, test_run, test_info, f"omni.graph.examples.python.ComposeDouble3 User test case #{i+1}", 16)
async def test_data_access(self):
from omni.graph.examples.python.ogn.OgnComposeDouble3Database import OgnComposeDouble3Database
test_file_name = "OgnComposeDouble3Template.usda"
usd_path = os.path.join(os.path.dirname(__file__), "usd", test_file_name)
if not os.path.exists(usd_path):
self.assertTrue(False, f"{usd_path} not found for loading test")
(result, error) = await ogts.load_test_file(usd_path)
self.assertTrue(result, f'{error} on {usd_path}')
test_node = og.Controller.node("/TestGraph/Template_omni_graph_examples_python_ComposeDouble3")
database = OgnComposeDouble3Database(test_node)
self.assertTrue(test_node.is_valid())
node_type_name = test_node.get_type_name()
self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1)
def _attr_error(attribute: og.Attribute, usd_test: bool) -> str:
test_type = "USD Load" if usd_test else "Database Access"
return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error"
self.assertTrue(test_node.get_attribute_exists("inputs:x"))
attribute = test_node.get_attribute("inputs:x")
db_value = database.inputs.x
expected_value = 0
actual_value = og.Controller.get(attribute)
ogts.verify_values(expected_value, actual_value, _attr_error(attribute, True))
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:y"))
attribute = test_node.get_attribute("inputs:y")
db_value = database.inputs.y
expected_value = 0
actual_value = og.Controller.get(attribute)
ogts.verify_values(expected_value, actual_value, _attr_error(attribute, True))
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("inputs:z"))
attribute = test_node.get_attribute("inputs:z")
db_value = database.inputs.z
expected_value = 0
actual_value = og.Controller.get(attribute)
ogts.verify_values(expected_value, actual_value, _attr_error(attribute, True))
ogts.verify_values(expected_value, db_value, _attr_error(attribute, False))
self.assertTrue(test_node.get_attribute_exists("outputs:double3"))
attribute = test_node.get_attribute("outputs:double3")
db_value = database.outputs.double3
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.