file_path
stringlengths
32
153
content
stringlengths
0
3.14M
omniverse-code/kit/exts/omni.graph/omni/graph/core/_impl/autonode/event.py
import codecs import pickle from abc import ABC, abstractmethod from enum import Enum from typing import Callable, Iterable, Optional, Tuple import carb.events # import omni.graph.core as og import omni.kit.app from .type_definitions import AutoNodeDefinitionGenerator, AutoNodeDefinitionWrapper, TypeRegistry from .u...
omniverse-code/kit/exts/omni.graph/omni/graph/core/_impl/autonode/type_definitions.py
import enum from abc import ABC, abstractmethod from collections import namedtuple from typing import Callable, Dict, Iterable, NewType, Optional, Tuple import numpy as np Vector3d = NewType("Vector3d", np.ndarray) Vector3f = NewType("Vector3f", np.ndarray) Vector3h = NewType("Vector3h", np.ndarray) Float = NewType(...
omniverse-code/kit/exts/omni.graph/omni/graph/core/_impl/autonode/__init__.py
omniverse-code/kit/exts/omni.graph/omni/graph/core/_impl/autonode/core.py
import importlib from typing import Callable import omni.graph.tools.ogn as ogn from ..settings import Settings from .type_definitions import AutoNodeDefinitionWrapper, TypeRegistry # ============================================================================================================== class AutoNode: @...
omniverse-code/kit/exts/omni.graph/omni/graph/core/_impl/autonode/autonode.py
""" AutoNode - module for decorating code to populate it into OmniGraph nodes. Allows generating nodes by decorating free functions, classes and modules by adding `@AutoFunc()` or `@AutoClass()` to the declaration of the class. Generating code relies on function signatures provided by python's type annotations, there...
omniverse-code/kit/exts/omni.graph/omni/graph/core/_impl/autonode/property.py
# ================================================================================ class AutoPropertyWrapper: """Wrapper to generate a getter and setter from a property in a class""" def __init__(self, target_class, name: str, *, type_override: type = None) -> None: try: self._type = type_o...
omniverse-code/kit/exts/omni.graph/omni/graph/core/_impl/autonode/enum_wrappers.py
from typing import Dict, Iterable, OrderedDict, Tuple import carb from .type_definitions import AutoNodeDefinitionGenerator, AutoNodeDefinitionWrapper from .util import GeneratedCode # ================================================================================ class OgnEnumExecutionWrapper: def __init_subc...
omniverse-code/kit/exts/omni.graph/omni/graph/core/_impl/v1_5_0/update_file_format.py
"""File format upgrade utilities""" from typing import Any, Dict, List, Optional, Tuple import carb import omni.graph.core as og import omni.usd from omni.kit.commands import execute from pxr import Gf, OmniGraphSchema, Usd from .utils import ALLOW_IMPLICIT_GRAPH_SETTING, USE_SCHEMA_PRIMS_SETTING EXTENDED_ATTRIBUTE_...
omniverse-code/kit/exts/omni.graph/omni/graph/core/_impl/v1_5_0/omnigraph_helper.py
# noqa: PLC0302 r"""Deprecated class that handles interactions with the OmniGraphs - use og.Controller instead _____ ______ _____ _____ ______ _____ _______ ______ _____ | __ \ | ____|| __ \ | __ \ | ____|/ ____| /\ |__ __|| ____|| __ \ | | | || |__ | |__) || |__) || |__ | | ...
omniverse-code/kit/exts/omni.graph/omni/graph/core/_impl/v1_5_0/__init__.py
omniverse-code/kit/exts/omni.graph/omni/graph/core/_impl/v1_5_0/context_helper.py
r"""Deprecated accessor of attribute values within a graph context. Use og.DataView or og.Controller instead. _____ ______ _____ _____ ______ _____ _______ ______ _____ | __ \ | ____|| __ \ | __ \ | ____|/ ____| /\ |__ __|| ____|| __ \ | | | || |__ | |__) || |__) || |__ | | ...
omniverse-code/kit/exts/omni.graph/omni/graph/core/_impl/v1_5_0/utils.py
r"""Deprecated utilities _____ ______ _____ _____ ______ _____ _______ ______ _____ | __ \ | ____|| __ \ | __ \ | ____|/ ____| /\ |__ __|| ____|| __ \ | | | || |__ | |__) || |__) || |__ | | / \ | | | |__ | | | | | | | || __| | ___/ | _ / | __| | | / /\...
omniverse-code/kit/exts/omni.graph/omni/graph/core/_impl/v1_5_0/replaced_functions.py
r"""Deprecation support for functions that have been replaced by equivalents _____ ______ _____ _____ ______ _____ _______ ______ _____ | __ \ | ____|| __ \ | __ \ | ____|/ ____| /\ |__ __|| ____|| __ \ | | | || |__ | |__) || |__) || |__ | | / \ | | | |__ | | | | |...
omniverse-code/kit/exts/omni.graph/omni/graph/core/tests/test_bundle_changes.py
import omni.graph.core as og import omni.graph.core.tests as ogt class BundleTestSetup(ogt.OmniGraphTestCase): async def setUp(self): """Set up test environment, to be torn down when done""" await super().setUp() self.graph = og.Controller.create_graph("/graph") self.context = sel...
omniverse-code/kit/exts/omni.graph/omni/graph/core/tests/test_bundle_cow.py
import omni.graph.core as og import omni.graph.core.tests as ogt class TestBundleCow(ogt.OmniGraphTestCase): async def setUp(self): await super().setUp() self.graph = og.Controller.create_graph("/graph") self.context = self.graph.get_default_graph_context() self.factory = og.IBund...
omniverse-code/kit/exts/omni.graph/omni/graph/core/tests/test_omnigraph_utils.py
""" Suite of tests to exercise small pieces of the OmniGraph utility scripts. These tests are like unit tests in that they all only focus on one piece of functionality, not the integration of many pieces, as these tests usually do. """ import json from contextlib import suppress from pathlib import Path import carb im...
omniverse-code/kit/exts/omni.graph/omni/graph/core/tests/test_register_ogn_nodes.py
""" Contains support for testing methods in ../scripts/register_ogn_nodes """ import os from pathlib import Path from tempfile import TemporaryDirectory import omni.graph.core.tests as ogts import omni.graph.tools.ogn as ogn from .._impl.register_ogn_nodes import find_import_locations class TestRegisterOgnNodes(ogt...
omniverse-code/kit/exts/omni.graph/omni/graph/core/tests/omnigraph_test_utils.py
# noqa: PLC0302 """A set of utilities useful for testing OmniGraph. Note that this file should not be imported directly, the API is in omni.graph.core.tests. Available in this module are: - omni.graph.core.tests.DataTypeHelper - a utility class to help iterate over all available data types - omni.graph.core.tests.fin...
omniverse-code/kit/exts/omni.graph/omni/graph/core/tests/test_internal_registration.py
# pylint: disable=too-many-lines """Tests the correct generation of node type definitions into the cache""" from __future__ import annotations import sys from contextlib import ExitStack from pathlib import Path from tempfile import TemporaryDirectory import omni.graph.core as og import omni.graph.core.tests as ogts ...
omniverse-code/kit/exts/omni.graph/omni/graph/core/tests/_internal_utils.py
"""Helpers for configuring and running local tests, not meant for general use""" from __future__ import annotations import json from collections import defaultdict from pathlib import Path import omni.ext import omni.graph.tools._internal as ogi import omni.graph.tools.ogn as ogn import omni.kit from omni.graph.tools...
omniverse-code/kit/exts/omni.graph/omni/graph/core/tests/test_api.py
"""Testing the stability of the API in this module""" import omni.graph.core as og import omni.graph.core._impl.commands as ogc import omni.graph.core.autonode as autonode import omni.graph.core.typing as ogty import omni.kit from omni.graph.tools.tests.internal_utils import _check_module_api_consistency, _check_public...
omniverse-code/kit/exts/omni.graph/omni/graph/core/tests/__init__.py
""" Imports from the test module are only recommended for use in OmniGraph tests. To get documentation on this module and methods import this file into a Python interpreter and run dir/help, like this: .. code-block:: python import omni.graph.core.tests as ogts dir(ogts) help(ogts.load_test_file) """ # f...
omniverse-code/kit/exts/omni.graph/omni/graph/core/tests/test_bundle_dirty_id.py
import omni.graph.core as og import omni.graph.core.tests as ogt class BundleTestSetup(ogt.OmniGraphTestCase): async def setUp(self): """Set up test environment, to be torn down when done""" await super().setUp() self.graph = og.Controller.create_graph("/graph") self.context = se...
omniverse-code/kit/exts/omni.graph/omni/graph/core/tests/test_unittest_support.py
"""Tests that exercise the capabilities provided for OmniGraph unit testing""" from contextlib import asynccontextmanager, contextmanager import carb import omni.graph.core.tests as ogts import omni.graph.tools as ogt import omni.kit.test import omni.usd # Name of a fake setting that will be used for testing TEST_SET...
omniverse-code/kit/exts/omni.graph/omni/graph/core/tests/_unittest_support.py
"""Support for creating unittest style test cases that use OmniGraph components. Note the leading underscore in the file name, indicating that it should not be imported directly. Instead use this: .. code-block:: python import omni.graph.core.tests as ogts There are three primary workflows for setting up unit t...
omniverse-code/kit/exts/omni.graph/omni/graph/core/tests/test_node_type_forwarding.py
"""Tests that exercise the INodeTypeForwarding interface""" import omni.graph.core._unstable as ogu import omni.graph.core.tests as ogts import omni.kit.test import omni.usd # ============================================================================================================== class TestNodeTypeForwarding(om...
omniverse-code/kit/exts/omni.graph/omni/graph/core/tests/test_extension_unloads.py
""" Tests related to omnigraph state/api when extensions get unloaded. """ from contextlib import suppress import carb import omni.graph.core as og import omni.graph.core.tests as ogt import omni.kit.app import omni.kit.commands import omni.kit.test import omni.usd # =================================================...
omniverse-code/kit/exts/omni.graph/omni/graph/core/tests/expected_error.py
# -------------------------------------------------------------------------------------------------------------- class ExpectedError: """ Helper class used to prefix any pending error messages with [Expected Error] stdoutFailPatterns.exclude (defined in extension.toml) will cause these errors to be igno...
omniverse-code/kit/exts/omni.graph/omni/graph/core/tests/test_bundle_hierarchy.py
import omni.graph.core as og import omni.graph.core.tests as ogt class BundleTestSetup(ogt.OmniGraphTestCase): async def setUp(self): """Set up test environment, to be torn down when done""" await super().setUp() self.graph = og.Controller.create_graph("/graph") self.context = se...
omniverse-code/kit/exts/omni.graph/omni/graph/core/tests/validation.py
"""Support for validation of content""" import inspect from enum import Enum # ============================================================================================================== class _FunctionType(Enum): """Enumeration to make an easy tag type for function type definitions""" FUNCTION = "functio...
omniverse-code/kit/exts/omni.graph/omni/graph/core/tests/test_bundles.py
import omni.core as oc import omni.graph.core as og import omni.graph.core.tests as ogt class BundleTestCase(ogt.OmniGraphTestCase): async def setUp(self): """Set up test environment, to be torn down when done""" await super().setUp() self.graph = og.Controller.create_graph("/graph") ...
omniverse-code/kit/exts/omni.graph/omni/graph/core/tests/test_bundle_attribute_data_access.py
import omni.graph.core as og import omni.graph.core.tests as ogt class TestBundleAttributeAccess(ogt.OmniGraphTestCase): async def setUp(self): await super().setUp() self.graph = og.Controller.create_graph("/graph") self.context = self.graph.get_default_graph_context() self.factor...
omniverse-code/kit/exts/omni.graph/omni/graph/core/tests/test_data_wrapper.py
"""Suite of tests to exercise the DataWrapper class as a unit.""" import omni.graph.core as og import omni.kit.test # The test needs some non-standard imports to do its thing from omni.graph.core._impl.dtypes import ( Bool, BundleOutput, Double, Double2, Double3, Double4, Float, Float2,...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/ExampleThreeDeformersDirtyPush.usda
#usda 1.0 def "World" { def Mesh "inputGrid" { uniform bool doubleSided = 1 int[] faceVertexCounts = [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/TestUnionTypes.usda
#usda 1.0 ( customLayerData = { dictionary cameraSettings = { dictionary Front = { double radius = 500 double3 target = (0, 0, 0) } dictionary Perspective = { double3 position = (500.0000000000001, 500.0000000000001, 499.999...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/ExampleConnectionType.usda
#usda 1.0 ( doc = """Generated from Composed Stage of root layer """ ) def Xform "World" { def Xform "inputPrim" { custom float value = 0.5 } def ComputeNode "SimpleNode" { custom float input:value ( customData = { token AttributeConnectionType = "DataOnly...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/ExampleCubeWithSettings.usda
#usda 1.0 ( doc = """Generated from Composed Stage of root layer """ ) def Xform "World" { def Xform "inputPrim" { custom float value = 0.5 def ComputeGraphSettings "graphSettings" { custom token graph:path = "/World" } } def ComputeNode "SimpleNode" { custom float input...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/ExampleGridDeformerNonUSD.usda
#usda 1.0 ( doc = """Generated from Composed Stage of root layer """ ) def Xform "defaultPrim" { def Mesh "inputGrid" { uniform bool doubleSided = 1 int[] faceVertexCounts = [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, ...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/ExampleIK.usda
#usda 1.0 ( customLayerData = { dictionary cameraSettings = { dictionary Front = { double3 position = (1000.0000000000002, -2.220446049250313e-13, 0) double radius = 500 double3 target = (0, 0, 0) } dictionary Perspective = ...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/ExampleTimeSampledTransform_SplineInterp_UITest.usda
#usda 1.0 ( endTimeCode = 72 metersPerUnit = 0.009999999776482582 ) def Xform "defaultPrim" { # Select prim "cube", Use Menu "Animation/Xform Interpolation“ to generate the interpolation pipeline def Cube "cube" { double size = 0.5 float3 xformOp:translate = (0, 0, 3)( c...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/ExampleGridDeformer.usda
#usda 1.0 ( doc = """Generated from Composed Stage of root layer """ ) def Xform "defaultPrim" { def Mesh "inputGrid" { uniform bool doubleSided = 1 int[] faceVertexCounts = [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, ...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/TestDynamicScheduling.usda
#usda 1.0 ( customLayerData = { dictionary cameraSettings = { dictionary Front = { double radius = 500 double3 target = (0, 0, 0) } dictionary Perspective = { double3 position = (500.0000000000001, 500.0000000000001, 499.999...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/ExampleSmoothNeighbors.usda
#usda 1.0 ( doc = """Smooth Neighbors Example""" ) def Xform "defaultPrim" { def Mesh "inputMesh" { uniform bool doubleSided = 1 uniform token orientation = "leftHanded" int[] faceVertexCounts = [4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, ...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/ExampleTwoDeformers_push_pull.usda
#usda 1.0 ( doc = """Generated from Composed Stage of root layer """ ) def Xform "defaultPrim" { def Mesh "inputGrid" { uniform bool doubleSided = 1 int[] faceVertexCounts = [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, ...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/ExampleGridPrimDeformer.usda
#usda 1.0 ( doc = """Generated from Composed Stage of root layer """ ) def Xform "defaultPrim" { def Mesh "inputGrid" { uniform bool doubleSided = 1 int[] faceVertexCounts = [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, ...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/ExampleThreeDeformersTruePull.usda
#usda 1.0 ( doc = """Generated from Composed Stage of root layer """ ) def Xform "defaultPrim" { def Mesh "inputGrid" { uniform bool doubleSided = 1 int[] faceVertexCounts = [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, ...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/ExampleGridDeformerPython.usda
#usda 1.0 ( doc = """Generated from Composed Stage of root layer """ ) def Xform "defaultPrim" { def Mesh "inputGrid" { uniform bool doubleSided = 1 int[] faceVertexCounts = [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/ExampleCube.usda
#usda 1.0 ( doc = """Generated from Composed Stage of root layer """ ) def Xform "World" { def Xform "inputPrim" { custom float value = 0.5 } def OmniGraph "graph" { custom token evaluator:type = "push" custom int2 fileFormatVersion = (1, 4) token fabricCacheBac...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/ExampleScaleCubeWithOutputPrim.usda
#usda 1.0 ( doc = """Generated from Composed Stage of root layer """ ) def Xform "World" { def Xform "inputPrim" { custom float value = 0.5 } def ComputeNode "SimpleNode" { custom float input:value prepend float input:value.connect = </World/inputPrim.value> custom f...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/ExampleTwoPrimDeformers.usda
#usda 1.0 ( doc = """Generated from Composed Stage of root layer """ ) def Xform "defaultPrim" { def Mesh "inputGrid" { uniform bool doubleSided = 1 int[] faceVertexCounts = [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, ...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/ExampleCubeWithGather.usda
#usda 1.0 ( doc = """Generated from Composed Stage of root layer """ ) def Xform "defaultPrim" { def Cube "cube0" { custom float value = 1 double size float3 xformOp:translate = (0, 0, 0) uniform token[] xformOpOrder = ["xformOp:translate"] } def Cube ...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/ExampleGridPrimDeformerCuda.usda
#usda 1.0 ( doc = """Generated from Composed Stage of root layer """ ) def Xform "defaultPrim" { def Mesh "inputGrid" { uniform bool doubleSided = 1 int[] faceVertexCounts = [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, ...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/ExampleGridDeformerOGN.usda
#usda 1.0 ( doc = """Generated from Composed Stage of root layer """ ) def Xform "defaultPrim" { def Mesh "inputGrid" { uniform bool doubleSided = 1 int[] faceVertexCounts = [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, ...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/ExampleTestNonUSD.usda
#usda 1.0 ( doc = """This file is generated using UniversalAddGenerator.py """ ) def Xform "defaultPrim" { def Xform "in_0" { bool bool_0 = true bool[] bool_arr_0 = ['false', 'true', 'false', 'true'] color3d colord3_0 = (-2.4949365863755943, 4.097462559682402, 4.827854760376532) color4d colord4_0 = (-0....
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/ExampleTwoDeformers.usda
#usda 1.0 ( doc = """Generated from Composed Stage of root layer """ ) def Xform "defaultPrim" { def Mesh "inputGrid" { uniform bool doubleSided = 1 int[] faceVertexCounts = [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, ...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/ExampleGridDeformerCuda.usda
#usda 1.0 ( doc = """Generated from Composed Stage of root layer """ ) def Xform "defaultPrim" { def Mesh "inputGrid" { uniform bool doubleSided = 1 int[] faceVertexCounts = [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, ...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/ExampleScaleCube.usda
#usda 1.0 ( doc = """Generated from Composed Stage of root layer """ ) def Xform "World" { def Xform "inputPrim" { custom float value = 0.5 } def ComputeNode "SimpleNode" { custom float inputs:value prepend float inputs:value.connect = </World/inputPrim.value> custom...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/anim_deformer/morph/simplemorphtest_computegraph_GPU.usda
#usda 1.0 ( defaultPrim = "Root" endTimeCode = 120 startTimeCode = 0 timeCodesPerSecond = 24 upAxis = "Z" ) def "Root" ( kind = "component" ) { def Xform "MorphMesh"( references = @./simplemorphtest.usda@</Root> ) { over Mesh "base" { token visibi...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/anim_deformer/morph/simplemorphtest.usda
#usda 1.0 ( defaultPrim = "Root" endTimeCode = 120 startTimeCode = 0 timeCodesPerSecond = 24 upAxis = "Z" ) def "Root" ( kind = "component" ) { def Mesh "base" ( prepend apiSchemas = ["ShadowAPI"] ) { uniform bool doubleSided = 1 float3[] extent = [(-2.5, -2....
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/anim_deformer/morph/simplemorphtest_computegraph.usda
#usda 1.0 ( defaultPrim = "Root" endTimeCode = 120 startTimeCode = 0 timeCodesPerSecond = 24 upAxis = "Z" ) def "Root" ( kind = "component" ) { def Xform "MorphMesh"( references = @./simplemorphtest.usda@</Root> ) { over Mesh "base" { token visibi...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/anim_deformer/morph/simplemorphtest_points.usda
#usda 1.0 ( defaultPrim = "Root" endTimeCode = 120 startTimeCode = 0 timeCodesPerSecond = 24 upAxis = "Z" ) def "Root" ( kind = "component" ) { def Mesh "base" ( prepend apiSchemas = ["ShadowAPI"] ) { uniform bool doubleSided = 1 float3[] extent.timeSamples =...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/anim_deformer/skinning/skelTwoCylinders.usda
#usda 1.0 ( defaultPrim = "Root" endTimeCode = 120 startTimeCode = 1 timeCodesPerSecond = 24 upAxis = "Z" ) def "Root" ( kind = "component" ) { def SkelRoot "group1" { matrix4d xformOp:transform = ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1) ) uniform token[]...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/anim_deformer/skinning/skelcylinder_computegraph_GPU.usda
#usda 1.0 ( defaultPrim = "Root" endTimeCode = 120 startTimeCode = 1 timeCodesPerSecond = 24 upAxis = "Z" ) def "Root" ( references = @./skelcylinder.usda@</Root> ) { over "group1" { over "pCylinder1" { token visibility = "invisible" uniform token...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/anim_deformer/skinning/skelcylinder.usda
#usda 1.0 ( defaultPrim = "Root" endTimeCode = 120 startTimeCode = 1 timeCodesPerSecond = 24 upAxis = "Z" ) def "Root" ( kind = "component" ) { def SkelRoot "group1" { matrix4d xformOp:transform = ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1) ) uniform token[]...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/anim_deformer/PostSkinMorph/simplepostskinmorph2.usda
#usda 1.0 ( defaultPrim = "Root" endTimeCode = 120 startTimeCode = 1 timeCodesPerSecond = 24 upAxis = "Y" ) def "Root" ( kind = "component" ) { def SkelRoot "group1" { def Mesh "base" ( prepend apiSchemas = ["SkelBindingAPI", "ShadowAPI"] ) { ...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/anim_deformer/PostSkinMorph/simplepostskinmorph_computegraph_GPU.usda
#usda 1.0 ( defaultPrim = "Root" endTimeCode = 120 metersPerUnit = 0.009999999776482582 startTimeCode = 0 timeCodesPerSecond = 24 upAxis = "Y" ) def "Root" ( references = @./simplepostskinmorph.usda@</Root> ) { over "group1" { over "base" { rel deformedPr...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/anim_deformer/PostSkinMorph/simplepostskinmorph_computegraph.usda
#usda 1.0 ( defaultPrim = "Root" endTimeCode = 120 metersPerUnit = 0.009999999776482582 startTimeCode = 0 timeCodesPerSecond = 24 upAxis = "Y" ) def "Root" ( references = @./simplepostskinmorph.usda@</Root> ) { over "group1" { over "base" { rel deformedPr...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/anim_deformer/PostSkinMorph/simplepostskinmorph.usda
#usda 1.0 ( defaultPrim = "Root" endTimeCode = 120 startTimeCode = 1 timeCodesPerSecond = 24 upAxis = "Y" ) def "Root" ( kind = "component" ) { def SkelRoot "group1" { def Mesh "base" ( prepend apiSchemas = ["SkelBindingAPI", "ShadowAPI"] ) { ...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/anim_deformer/PostSkinMorph/simplepostskinmorph2_computegraph_GPU.usda
#usda 1.0 ( defaultPrim = "Root" endTimeCode = 120 metersPerUnit = 0.009999999776482582 startTimeCode = 0 timeCodesPerSecond = 24 upAxis = "Y" ) def "Root" ( references = @./simplepostskinmorph2.usda@</Root> ) { over "group1" { over "base" { rel deformedP...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/anim_deformer/PostSkinMorph/simplepostskinmorph2_computegraph.usda
#usda 1.0 ( defaultPrim = "Root" endTimeCode = 120 metersPerUnit = 0.009999999776482582 startTimeCode = 0 timeCodesPerSecond = 24 upAxis = "Y" ) def "Root" ( references = @./simplepostskinmorph2.usda@</Root> ) { over "group1" { over "base" { rel deformedP...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/anim_deformer/JointManipulator/skelcylinder_jointManipulator_computegraph.usda
#usda 1.0 ( defaultPrim = "Root" endTimeCode = 120 startTimeCode = 1 timeCodesPerSecond = 24 upAxis = "Z" ) def "Root" ( references = @./skelcylinder.usda@</Root> ) { over "group1" { over "pCylinder1" { token visibility = "invisible" uniform token...
omniverse-code/kit/exts/omni.graph/omni/graph/core/data/anim_deformer/JointManipulator/skelcylinder.usda
#usda 1.0 ( defaultPrim = "Root" endTimeCode = 120 startTimeCode = 1 timeCodesPerSecond = 24 upAxis = "Z" ) def "Root" ( kind = "component" ) { def SkelRoot "group1" { matrix4d xformOp:transform = ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1) ) uniform token[]...
omniverse-code/kit/exts/omni.graph/docs/testing.rst
.. _set_up_omnigraph_tests: Set Up OmniGraph Tests ====================== Much of the testing for a node can be set up through the .ogn file's :ref:`test section<ogn_defining_automatic_tests>`, however there are a number of situations that require more detailed setup or more flexible checking than the automatically g...
omniverse-code/kit/exts/omni.graph/docs/runtimeInitialize.rst
.. _runtime_attribute_value_initialization_in_omnigraph_nodes: Runtime Attribute Value Initialization In OmniGraph Nodes ========================================================= Normally you will specify attribute default values in your .ogn files and the attributes will be given those values when the node is create...
omniverse-code/kit/exts/omni.graph/docs/autonode.rst
.. _autonode_ref: AutoNode - Autogenerating Nodes From Code ================================================================================ This is a description of the automated node generator for python code in OmniGraph. It turns this: .. code-block:: python import omni.graph.core as og @og.AutoFunc(...
omniverse-code/kit/exts/omni.graph/docs/running_one_script.rst
.. _run_omnigraph_python_script: Running Minimal Kit With OmniGraph ================================== The Kit application at its core is a basic framework from plugging in extensions with a common communication method. We can take advantage of this to run a script that works with OmniGraph without pulling in the ent...
omniverse-code/kit/exts/omni.graph/docs/controller.rst
.. _omnigraph_controller_class: OmniGraph Controller Class ========================== .. _howto_omnigraph_controller: The primary interface you can use for interacting with OmniGraph is the `Controller` class. It is in the main module so you can access it like this: .. code-block:: python import omni.graph.cor...
omniverse-code/kit/exts/omni.graph/docs/omni.graph.core.bindings.rst
omni.graph.core.bindings ======================== All of the OmniGraph ABI interfaces have Python bindings on top of them, as well as additional bindings that provide convenient Pythonic access to some of the data. See the full description in the :ref:`Python API<omnigraph_python_api>`
omniverse-code/kit/exts/omni.graph/docs/commands.rst
OmniGraph Commands ================== Like other extensions, the OmniGraph extensions expose undoable functionality through some basic commands. A lot of the functionality of the commands can be accessed from the *og.Controller* object, described above. OmniGraph has created a shortcut to allow more natural expressio...
omniverse-code/kit/exts/omni.graph/docs/CHANGELOG.md
# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] ## [1.50.2] - 2023-02-14 ### Fixed - Made test fil...
omniverse-code/kit/exts/omni.graph/docs/python_api.rst
.. _omnigraph_python_api: OmniGraph Python API Documentation ********************************** .. automodule:: omni.graph.core :platform: Windows-x86_64, Linux-x86_64, Linux-aarch64 :members: :undoc-members: :imported-members:
omniverse-code/kit/exts/omni.graph/docs/README.md
# OmniGraph [omni.graph] This extension provides the Python bindings, script support, data files, and other non-core support for the OmniGraph implementation extension `omni.graph.core`. It behaves as an addition to that extension, so you will still use the Python import path `omni.graph.core` for scripts in this dir...
omniverse-code/kit/exts/omni.graph/docs/index.rst
.. _omnigraph_python_scripting: OmniGraph Python Scripting ########################## .. tabularcolumns:: |L|R| .. csv-table:: :width: 100% **Extension**: omni.graph,**Documentation Generated**: |today| While the core part of OmniGraph is built in C++ there are Python bindings and scripts built on top of it ...
omniverse-code/kit/exts/omni.graph/docs/Overview.md
# OmniGraph Python Scripting ```{csv-table} **Extension**: omni.graph,**Documentation Generated**: {sub-ref}`today` ``` While the core part of OmniGraph is built in C++ there are Python bindings and scripts built on top of it to make it easier to work with. ## Importing The Python interface is exposed in a consist...
omniverse-code/kit/exts/omni.graph/data/ExampleThreeDeformersDirtyPush.usda
#usda 1.0 def "World" { def Mesh "inputGrid" { uniform bool doubleSided = 1 int[] faceVertexCounts = [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3...
omniverse-code/kit/exts/omni.graph/data/TestUnionTypes.usda
#usda 1.0 ( customLayerData = { dictionary cameraSettings = { dictionary Front = { double radius = 500 double3 target = (0, 0, 0) } dictionary Perspective = { double3 position = (500.0000000000001, 500.0000000000001, 499.999...
omniverse-code/kit/exts/omni.graph/data/ExampleConnectionType.usda
#usda 1.0 ( doc = """Generated from Composed Stage of root layer """ ) def Xform "World" { def Xform "inputPrim" { custom float value = 0.5 } def ComputeNode "SimpleNode" { custom float input:value ( customData = { token AttributeConnectionType = "DataOnly...
omniverse-code/kit/exts/omni.graph/data/ExampleCubeWithSettings.usda
#usda 1.0 ( doc = """Generated from Composed Stage of root layer """ ) def Xform "World" { def Xform "inputPrim" { custom float value = 0.5 def ComputeGraphSettings "graphSettings" { custom token graph:path = "/World" } } def ComputeNode "SimpleNode" { custom float input...
omniverse-code/kit/exts/omni.graph/data/ExampleGridDeformerNonUSD.usda
#usda 1.0 ( doc = """Generated from Composed Stage of root layer """ ) def Xform "defaultPrim" { def Mesh "inputGrid" { uniform bool doubleSided = 1 int[] faceVertexCounts = [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, ...
omniverse-code/kit/exts/omni.graph/data/ExampleIK.usda
#usda 1.0 ( customLayerData = { dictionary cameraSettings = { dictionary Front = { double3 position = (1000.0000000000002, -2.220446049250313e-13, 0) double radius = 500 double3 target = (0, 0, 0) } dictionary Perspective = ...
omniverse-code/kit/exts/omni.graph/data/ExampleTimeSampledTransform_SplineInterp_UITest.usda
#usda 1.0 ( endTimeCode = 72 metersPerUnit = 0.009999999776482582 ) def Xform "defaultPrim" { # Select prim "cube", Use Menu "Animation/Xform Interpolation“ to generate the interpolation pipeline def Cube "cube" { double size = 0.5 float3 xformOp:translate = (0, 0, 3)( c...
omniverse-code/kit/exts/omni.graph/data/ExampleGridDeformer.usda
#usda 1.0 ( doc = """Generated from Composed Stage of root layer """ ) def Xform "defaultPrim" { def Mesh "inputGrid" { uniform bool doubleSided = 1 int[] faceVertexCounts = [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, ...
omniverse-code/kit/exts/omni.graph/data/TestDynamicScheduling.usda
#usda 1.0 ( customLayerData = { dictionary cameraSettings = { dictionary Front = { double radius = 500 double3 target = (0, 0, 0) } dictionary Perspective = { double3 position = (500.0000000000001, 500.0000000000001, 499.999...
omniverse-code/kit/exts/omni.graph/data/ExampleSmoothNeighbors.usda
#usda 1.0 ( doc = """Smooth Neighbors Example""" ) def Xform "defaultPrim" { def Mesh "inputMesh" { uniform bool doubleSided = 1 uniform token orientation = "leftHanded" int[] faceVertexCounts = [4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, ...
omniverse-code/kit/exts/omni.graph/data/ExampleTwoDeformers_push_pull.usda
#usda 1.0 ( doc = """Generated from Composed Stage of root layer """ ) def Xform "defaultPrim" { def Mesh "inputGrid" { uniform bool doubleSided = 1 int[] faceVertexCounts = [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, ...
omniverse-code/kit/exts/omni.graph/data/ExampleGridPrimDeformer.usda
#usda 1.0 ( doc = """Generated from Composed Stage of root layer """ ) def Xform "defaultPrim" { def Mesh "inputGrid" { uniform bool doubleSided = 1 int[] faceVertexCounts = [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, ...
omniverse-code/kit/exts/omni.graph/data/ExampleThreeDeformersTruePull.usda
#usda 1.0 ( doc = """Generated from Composed Stage of root layer """ ) def Xform "defaultPrim" { def Mesh "inputGrid" { uniform bool doubleSided = 1 int[] faceVertexCounts = [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, ...
omniverse-code/kit/exts/omni.graph/data/ExampleGridDeformerPython.usda
#usda 1.0 ( doc = """Generated from Composed Stage of root layer """ ) def Xform "defaultPrim" { def Mesh "inputGrid" { uniform bool doubleSided = 1 int[] faceVertexCounts = [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,...
omniverse-code/kit/exts/omni.graph/data/ExampleCube.usda
#usda 1.0 ( doc = """Generated from Composed Stage of root layer """ ) def Xform "World" { def Xform "inputPrim" { custom float value = 0.5 } def OmniGraph "graph" { custom token evaluator:type = "push" custom int2 fileFormatVersion = (1, 4) token fabricCacheBac...
omniverse-code/kit/exts/omni.graph/data/ExampleScaleCubeWithOutputPrim.usda
#usda 1.0 ( doc = """Generated from Composed Stage of root layer """ ) def Xform "World" { def Xform "inputPrim" { custom float value = 0.5 } def ComputeNode "SimpleNode" { custom float input:value prepend float input:value.connect = </World/inputPrim.value> custom f...