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 docume...
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" = {} "...
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", ...
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.V...
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 rel...
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...
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. .. =======================================================================...
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. .. ================================================================================ :or...
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. .. =============================================================================...
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: .. ...
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. .. ===============================================================================...
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. .. ================================================================================ :...
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. .. ================================================================================ ...
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...
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. .. =============================================================================...
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. .. ================================================================================ :...
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. .. ================================================================================ :orph...
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. .. ================================================================================ :...
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...
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...
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: ...
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. .. ================================================================================ :or...
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. .. ================================================================================ ...
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...
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. .. ================================================================================ :...
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. .. ================================================================================ :...
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 docume...
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 in...
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 OgnSubtract...
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 OgnAbsDoubleDat...
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 ...
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 ...
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.g...
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.grap...
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 ...
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 OgnIn...
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 OgnBouncingCubesGpuDataba...
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...
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.gra...
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 ...
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._...
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_co...
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 OgnBouncingCube...
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 i...
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...
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...
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.Data...
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 _...
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)" }, "...
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": { ...
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": { ...
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)" }, "inpu...
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 ...
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: ...
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": { ...
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] retur...
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", ...
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 Deform...
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)"], ...
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): ...
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 No...
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:...
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 ...
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": { "veloc...
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)" }, "languag...
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.col...
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"...
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 = ...
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.o...
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": { ...
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": { "...
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":...
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" attr...
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 ...
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 ...
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)" }, ...
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 ...
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...
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.grap...
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...
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.grap...
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.grap...
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.grap...
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...