file_path
stringlengths
32
153
content
stringlengths
0
3.14M
omniverse-code/kit/exts/omni.kit.app_snippets/omni/kit/app_snippets/__init__.py
from ._app_snippets import *
omniverse-code/kit/exts/omni.kit.app_snippets/omni/kit/app_snippets/_app_snippets.pyi
from __future__ import annotations import omni.kit.app_snippets._app_snippets import typing __all__ = [ "IAppSnippets", "acquire_app_snippets_interface", "release_app_snippets_interface" ] class IAppSnippets(): def execute(self) -> int: ... def shutdown(self) -> None: ... def startup(self) ->...
omniverse-code/kit/exts/omni.kit.app_snippets/omni/kit/app_snippets/tests/__init__.py
from .test_app_snippets import *
omniverse-code/kit/exts/omni.kit.app_snippets/omni/kit/app_snippets/tests/test_app_snippets.py
import inspect import carb import carb.settings import omni.kit.app import omni.kit.test import omni.kit.app_snippets class RendererTest(omni.kit.test.AsyncTestCase): async def setUp(self): self._settings = carb.settings.acquire_settings_interface() self._app_snippets = omni.kit.app_snippets.acq...
omniverse-code/kit/exts/omni.graph.scriptnode/ogn/nodes.json
{ "nodes": { "omni.graph.scriptnode.ScriptNode": { "description": "This script node allows you to execute arbitrary Python code", "version": 1, "extension": "omni.graph.scriptnode", "language": "Python" } } }
omniverse-code/kit/exts/omni.graph.scriptnode/ogn/docs/OgnScriptNode.rst
.. _omni_graph_scriptnode_ScriptNode_2: .. _omni_graph_scriptnode_ScriptNode: .. ================================================================================ .. THIS PAGE IS AUTO-GENERATED. DO NOT MANUALLY EDIT. .. ================================================================================ :orphan: .. meta...
omniverse-code/kit/exts/omni.graph.scriptnode/PACKAGE-LICENSES/omni.graph.scriptnode-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.scriptnode/config/extension.toml
[package] # Semantic Versioning is used: https://semver.org/ version = "0.10.0" authors = ["NVIDIA"] title = "Script Node" description="Python Node for OmniGraph" readme = "docs/README.md" repository = "" category = "graph" keywords = ["script"] changelog="docs/CHANGELOG.md" preview_image = "data/preview.png" icon =...
omniverse-code/kit/exts/omni.graph.scriptnode/omni/graph/scriptnode/__init__.py
"""The public API """ __all__ = [] from ._impl.extension import _PublicExtension # noqa: F401
omniverse-code/kit/exts/omni.graph.scriptnode/omni/graph/scriptnode/ogn/OgnScriptNodeDatabase.py
"""Support for simplified access to data on nodes of type omni.graph.scriptnode.ScriptNode This script node allows you to execute arbitrary Python code. `import` statements, function/class definitions, and global variables may be placed outside of the callbacks, and variables may be added to the ``db.internal_state`...
omniverse-code/kit/exts/omni.graph.scriptnode/omni/graph/scriptnode/ogn/python/nodes/OgnScriptNode.ogn
{ "ScriptNode": { "version": 2, "description": [ "This script node allows you to execute arbitrary Python code.\n", "`import` statements, function/class definitions, and global variables may be placed\n", "outside of the callbacks, and variables may be added to th...
omniverse-code/kit/exts/omni.graph.scriptnode/omni/graph/scriptnode/ogn/python/nodes/OgnScriptNode.py
import inspect import os import tempfile import traceback import omni.client import omni.graph.core as og import omni.graph.tools.ogn as ogn import omni.usd from omni.graph.scriptnode.ogn.OgnScriptNodeDatabase import OgnScriptNodeDatabase # A hacky context manager that captures local variable name declarations and s...
omniverse-code/kit/exts/omni.graph.scriptnode/omni/graph/scriptnode/ogn/tests/TestOgnScriptNode.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.scriptnode/omni/graph/scriptnode/ogn/tests/__init__.py
"""====== GENERATED BY omni.graph.tools - DO NOT EDIT ======""" import omni.graph.tools._internal as ogi ogi.import_tests_in_directory(__file__, __name__)
omniverse-code/kit/exts/omni.graph.scriptnode/omni/graph/scriptnode/ogn/tests/usd/OgnScriptNodeTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnScriptNode.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimul...
omniverse-code/kit/exts/omni.graph.scriptnode/omni/graph/scriptnode/_impl/extension.py
"""Support required by the Carbonite extension loader""" import asyncio from contextlib import suppress from typing import List import carb import carb.dictionary import omni.ext import omni.graph.core as og from omni.kit.app import get_app SCRIPTNODE_OPT_IN_SETTING = "/app/omni.graph.scriptnode/opt_in" SCRIPTNODE_EN...
omniverse-code/kit/exts/omni.graph.scriptnode/omni/graph/scriptnode/_impl/scriptnode_example_scripts.py
# This file contains the set of example scripts for the script node. # User can click on the Code Snippets button in the UI to display these scripts. # To add new example scripts to the script node, # simply add the delimiter to the bottom of this file, followed by the new script. # Declare og to suppress linter warni...
omniverse-code/kit/exts/omni.graph.scriptnode/omni/graph/scriptnode/_impl/templates/template_omni.graph.scriptnode.ScriptNode.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and rel...
omniverse-code/kit/exts/omni.graph.scriptnode/omni/graph/scriptnode/tests/test_scriptnode_ui.py
"""Tests for scriptnode which exercise the UI""" import os import tempfile import omni.graph.core as og import omni.graph.ui._impl.omnigraph_attribute_base as ogab import omni.kit.app import omni.kit.commands import omni.kit.test import omni.ui as ui import omni.usd from omni.kit import ui_test from omni.kit.test_sui...
omniverse-code/kit/exts/omni.graph.scriptnode/omni/graph/scriptnode/tests/test_api.py
"""Testing the stability of the API in this module""" import omni.graph.core.tests as ogts import omni.graph.scriptnode as ogs from omni.graph.tools.tests.internal_utils import _check_module_api_consistency, _check_public_api_contents # ====================================================================== class _Tes...
omniverse-code/kit/exts/omni.graph.scriptnode/omni/graph/scriptnode/tests/__init__.py
"""There is no public API to this module.""" __all__ = [] scan_for_test_modules = True """The presence of this object causes the test runner to automatically scan the directory for unit test cases"""
omniverse-code/kit/exts/omni.graph.scriptnode/omni/graph/scriptnode/tests/test_scriptnode.py
"""Basic tests of the action graph""" import omni.graph.core as og import omni.graph.core.tests as ogts import omni.usd from pxr import OmniGraphSchemaTools # ====================================================================== class TestScriptNode(ogts.OmniGraphTestCase): """Tests for Script Node""" # ---...
omniverse-code/kit/exts/omni.graph.scriptnode/omni/graph/scriptnode/tests/data/TestScriptNode.usda
#usda 1.0 def Xform "World" { def OmniGraph "ActionGraph" { token evaluator:type = "execution" token fabricCacheBacking = "Shared" int2 fileFormatVersion = (1, 6) token pipelineStage = "pipelineStageSimulation" def ComputeGraphSettings "computegraphSettings" ( ...
omniverse-code/kit/exts/omni.graph.scriptnode/docs/CHANGELOG.md
# CHANGELOG ## [0.10.0] - 2023-01-23 ### Changed - opt-in is enabled by /app/omni.graph.scriptnode/enable_opt_in - modify the dialog to appear after loading - disable all graphs until opt-in is verified ## [0.9.3] - 2022-10-16 ### Changed - opt-in mechanism reads from remote file instead of app setting ## [0.9.2] - ...
omniverse-code/kit/exts/omni.graph.scriptnode/docs/README.md
# OgnScriptNode [omni.graph.scriptnode] Provides the Script Node for use in OmniGraph graphs. This node allows custom python code to be executed when the node is computed. The python code is compiled and computed when the graph runs using the embedded interpreter in Kit. The python script itself is stored as an attrib...
omniverse-code/kit/exts/omni.graph.scriptnode/docs/index.rst
OmniGraph Script Node ##################### Provides the Script Node for use in OmniGraph graphs. This node allows custom python code to be executed when the node is computed. The python code is compiled and computed when the graph runs using the embedded interpreter in Kit. The python script itself is stored as an at...
omniverse-code/kit/exts/omni.graph.scriptnode/docs/Overview.md
# OmniGraph Script Node Provides the Script Node for use in OmniGraph graphs. This node allows custom python code to be executed when the node is computed. The python code is compiled and computed when the graph runs using the embedded interpreter in Kit. The python script itself is stored as an attribute value in the...
omniverse-code/kit/exts/omni.graph.scriptnode/data/example.usda
#usda 1.0 ( customLayerData = { dictionary cameraSettings = { dictionary Front = { double radius = 500 double3 target = (0, 0, 0) } dictionary Perspective = { double3 position = (804.005735367578, 410.68477877274694, 232.538...
omniverse-code/kit/exts/omni.rtx.window.settings/PACKAGE-LICENSES/omni.rtx.window.settings-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.rtx.window.settings/config/extension.toml
[package] # Semantic Versioning is used: https://semver.org/ version = "0.6.2" # Lists people or organizations that are considered the "authors" of the package. authors = ["NVIDIA"] # The title and description fields are primarily for displaying extension info in UI title = "RTX Settings Window" description="Core ext...
omniverse-code/kit/exts/omni.rtx.window.settings/omni/rtx/window/settings/rtx_settings_widget.py
from pathlib import Path from typing import Callable, Dict, List import os import traceback import sys import omni.ui as ui import carb import omni.kit.commands import omni.kit.app from omni.kit.widget.settings import get_style, get_ui_style_name from .rtx_settings_stack import RTXSettingsStack from omni.kit.window.fi...
omniverse-code/kit/exts/omni.rtx.window.settings/omni/rtx/window/settings/rtx_settings_window.py
import omni.ui as ui import carb from typing import Callable, Dict, List from .rtx_settings_widget import RTXSettingsWidget class RTXSettingsWindow: def __init__(self): self._window = None if carb.settings.get_settings().get("/exts/omni.rtx.window.settings/startup/autoCreateWindow"): s...
omniverse-code/kit/exts/omni.rtx.window.settings/omni/rtx/window/settings/commands.py
import carb import carb.dictionary import carb.settings import omni.kit.commands from omni.rtx.window.settings.rendersettingsdefaults import RenderSettingsDefaults from omni.rtx.window.settings import RendererSettingsFactory class RestoreDefaultRenderSettingCommand(omni.kit.commands.Command): """ Restore defa...
omniverse-code/kit/exts/omni.rtx.window.settings/omni/rtx/window/settings/rtx_settings_stack.py
import omni.ui as ui from omni.rtx.window.settings.settings_collection_frame import SettingsCollectionFrame class RTXSettingsStack: """ define a stack of Settings Widgets """ def __init__(self) -> None: self._stack: ui.VStack = None def set_visible(self, value: bool): if self._stack: ...
omniverse-code/kit/exts/omni.rtx.window.settings/omni/rtx/window/settings/extension.py
from functools import partial from typing import Callable, List import omni.ext import omni.kit.ui import omni.ui as ui import carb.settings from .rtx_settings_window import RTXSettingsWindow class RTXSettingsExtension(omni.ext.IExt): """The entry point for the extension""" WINDOW_NAME = "Render Settings" ...
omniverse-code/kit/exts/omni.rtx.window.settings/omni/rtx/window/settings/__init__.py
from .extension import * from .commands import *
omniverse-code/kit/exts/omni.rtx.window.settings/omni/rtx/window/settings/usd_serializer.py
import carb import os.path import omni.kit.commands import rtx.settings from omni.rtx.window.settings.rendersettingsdefaults import RenderSettingsDefaults from pxr import Usd, Gf class USDSettingsSerialiser: """ Save and Load RTX settings to/from USD @TOOD: get rtx:fog:fogColor working """ d...
omniverse-code/kit/exts/omni.rtx.window.settings/omni/rtx/window/settings/rendersettingsdefaults.py
import carb.dictionary import carb.settings class SettingsDefaultHandler: def __init__(self): self._settings = carb.settings.get_settings() self._dictionary = carb.dictionary.get_dictionary() def _get_sanitized_path(self, path): if path is not None and len(path) > 0 and path[0] == "/"...
omniverse-code/kit/exts/omni.rtx.window.settings/omni/rtx/window/settings/settings_collection_frame.py
from typing import Union, Any import carb.settings from omni.kit.widget.settings import SettingType import omni.kit.commands import omni.rtx.window.settings import omni.ui as ui from omni.kit.widget.settings import create_setting_widget, create_setting_widget_combo from omni.kit.widget.settings import SettingsWidget...
omniverse-code/kit/exts/omni.rtx.window.settings/omni/rtx/window/settings/tests/test_defaults.py
import omni.kit.test import carb.settings from omni.rtx.window.settings.rendersettingsdefaults import RenderSettingsDefaults from omni.rtx.window.settings import commands from omni.kit.test_suite.helpers import open_stage, get_test_data_path, select_prims, wait_stage_loading, arrange_windows import omni.kit.commands ...
omniverse-code/kit/exts/omni.rtx.window.settings/omni/rtx/window/settings/tests/test_serialiser.py
import os import tempfile import omni.kit.test import carb.settings import omni.kit.commands from omni.rtx.window.settings import RendererSettingsFactory from omni.kit.test.async_unittest import AsyncTestCase from omni.kit import ui_test from omni.kit.test_suite.helpers import open_stage, get_test_data_path, select_pri...
omniverse-code/kit/exts/omni.rtx.window.settings/omni/rtx/window/settings/tests/__init__.py
from .test_defaults import * from .test_ui import * from .test_serialiser import *
omniverse-code/kit/exts/omni.rtx.window.settings/omni/rtx/window/settings/tests/test_ui.py
import omni.kit.test import carb.settings import omni.kit.commands from omni.rtx.window.settings import RendererSettingsFactory import random class SettingsIterator(object): def __init__(self, output_dict): self._settings = carb.settings.get_settings() self._output_dict = output_dict def iter...
omniverse-code/kit/exts/omni.rtx.window.settings/rtx/settings.pyi
"""pybind11 rtx.settings bindings""" from __future__ import annotations import rtx.settings import typing __all__ = [ "SETTING_FLAGS_NONE", "SETTING_FLAGS_RESET_DISABLED", "SETTING_FLAGS_TRANSIENT", "get_associated_setting_flags_path", "get_internal_setting_string" ] def get_associated_setting_fl...
omniverse-code/kit/exts/omni.rtx.window.settings/docs/CHANGELOG.md
# CHANGELOG This document records all notable changes to ``omni.rtx.window.settings`` extension. This project adheres to `Semantic Versioning <https://semver.org/>`. ## [Unreleased] ### Added ### Changed ### Removed ## [0.6.2] - 2022-09-20 ### Added - API to switch to explicitly switch to a renderer's settings a...
omniverse-code/kit/exts/omni.rtx.window.settings/docs/README.md
# The RTX Renderer Settings Window Framework [omni.rtx.window.settings] This extensions build the Base settings window and API so different rendering extensions can register their settings
omniverse-code/kit/exts/omni.rtx.window.settings/docs/index.rst
omni.rtx.window.settings ########################### .. toctree:: :maxdepth: 1 CHANGELOG
omniverse-code/kit/exts/omni.kit.mainwindow/omni/kit/mainwindow/__init__.py
from .scripts.extension import *
omniverse-code/kit/exts/omni.kit.mainwindow/omni/kit/mainwindow/scripts/main_window.py
import asyncio import carb.settings import omni.kit.app import omni.ui as ui class MainWindow(object): def __init__(self): # Show gray color the first several frames. It will hode the windows # that are not yet docked. self._ui_main_window = ui.MainWindow(show_foreground=True) # th...
omniverse-code/kit/exts/omni.kit.mainwindow/omni/kit/mainwindow/scripts/extension.py
import omni.ext from .main_window import MainWindow global g_main_window g_main_window = None def get_main_window() -> MainWindow: global g_main_window return g_main_window class MainWindowExtension(omni.ext.IExt): # ext_id is current extension id. It can be used with extension manager to query additi...
omniverse-code/kit/exts/omni.kit.mainwindow/omni/kit/mainwindow/tests/test_main_window.py
## Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved. ## ## NVIDIA CORPORATION and its licensors retain all intellectual property ## and proprietary rights in and to this software, related documentation ## and any modifications thereto. Any use, reproduction, disclosure or ## distribution of this softw...
omniverse-code/kit/exts/omni.kit.mainwindow/omni/kit/mainwindow/tests/__init__.py
from .test_main_window import *
omniverse-code/kit/exts/omni.kit.mainwindow/docs/index.rst
omni.kit.mainwindow ########################### This class describe the MainWindow workflow, that include 3 main components # MainMenuBar # DockSpace # StatusBar Python API Reference ********************* .. automodule:: omni.kit.mainwindow :platform: Windows-x86_64, Linux-x86_64 :members: :undoc-member...
omniverse-code/kit/exts/omni.kit.window.stats/PACKAGE-LICENSES/omni.kit.window.stats-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.kit.window.stats/config/extension.toml
[package] version = "0.1.2" category = "Core" feature = true [dependencies] "omni.stats" = {} "omni.ui" = {} "omni.usd.libs" = {} "omni.kit.menu.utils" = {} [[python.module]] name = "omni.kit.window.stats" [[test]] args = [ "--/app/window/dpiScaleOverride=1.0", "--/app/window/scaleToMonitor=false", "--n...
omniverse-code/kit/exts/omni.kit.window.stats/omni/kit/window/stats/stats_window.py
import carb import sys import os import omni.ext import omni.ui import omni.kit.ui import omni.kit.app import omni.stats import carb.settings WINDOW_NAME = "Statistics" class Extension(omni.ext.IExt): """Statistics view extension""" class ComboBoxItem(omni.ui.AbstractItem): def __init__(self, text):...
omniverse-code/kit/exts/omni.kit.window.stats/omni/kit/window/stats/__init__.py
from .stats_window import *
omniverse-code/kit/exts/omni.kit.window.stats/omni/kit/window/stats/tests/__init__.py
from .test_stats import *
omniverse-code/kit/exts/omni.kit.window.stats/omni/kit/window/stats/tests/test_stats.py
import asyncio import carb import unittest import carb import omni.kit.test import omni.usd import omni.ui as ui from omni.kit import ui_test class TestStats(omni.kit.test.AsyncTestCase): async def setUp(self): pass async def tearDown(self): pass async def test_stats_window(self): ...
omniverse-code/kit/exts/omni.kit.window.stats/docs/index.rst
omni.kit.window.stats ########################### Window to display omni.stats
omniverse-code/kit/exts/omni.kit.manipulator.prim/omni/kit/manipulator/prim/tools.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and rel...
omniverse-code/kit/exts/omni.kit.manipulator.prim/omni/kit/manipulator/prim/extension.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and rel...
omniverse-code/kit/exts/omni.kit.manipulator.prim/omni/kit/manipulator/prim/__init__.py
from .extension import * from .model import * from .toolbar_registry import *
omniverse-code/kit/exts/omni.kit.manipulator.prim/omni/kit/manipulator/prim/prim_transform_manipulator.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.kit.manipulator.prim/omni/kit/manipulator/prim/tool_models.py
# 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 rel...
omniverse-code/kit/exts/omni.kit.manipulator.prim/omni/kit/manipulator/prim/settings_constants.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.kit.manipulator.prim/omni/kit/manipulator/prim/utils.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.kit.manipulator.prim/omni/kit/manipulator/prim/toolbar_registry.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and rel...
omniverse-code/kit/exts/omni.kit.manipulator.prim/omni/kit/manipulator/prim/reference_prim_marker.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and rel...
omniverse-code/kit/exts/omni.kit.manipulator.prim/omni/kit/manipulator/prim/model.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.kit.manipulator.prim/omni/kit/manipulator/prim/pivot_button_group.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and rel...
omniverse-code/kit/exts/omni.kit.manipulator.prim/omni/kit/manipulator/prim/prim_transform_manipulator_registry.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and rel...
omniverse-code/kit/exts/omni.kit.manipulator.prim/omni/kit/manipulator/prim/tests/__init__.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.kit.manipulator.prim/omni/kit/manipulator/prim/tests/test_manipulator_prim.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and rel...
omniverse-code/kit/exts/omni.kit.manipulator.prim/docs/index.rst
omni.kit.manipulator.prim ########################### Prim Manipulator Extension .. toctree:: :maxdepth: 1 README CHANGELOG .. automodule:: omni.kit.manipulator.prim :platform: Windows-x86_64, Linux-x86_64 :members: :undoc-members: :show-inheritance: :imported-members: :exclude-me...
omniverse-code/kit/exts/omni.kit.window.inspector/PACKAGE-LICENSES/omni.kit.window.inspector-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.kit.window.inspector/config/extension.toml
[package] title = "Inspector Window (Preview)" description = "Inspect your UI Elements" version = "1.0.6" category = "Developer" authors = ["NVIDIA"] repository = "" keywords = ["stage", "outliner", "scene"] changelog = "docs/CHANGELOG.md" readme = "docs/README.md" preview_image = "data/inspector_full.png" icon = "data...
omniverse-code/kit/exts/omni.kit.window.inspector/omni/kit/window/inspector/inspector_preview.py
__all__ = ["InspectorPreview"] from typing import Union import omni.ui as ui import omni.kit.app import carb.events import carb from omni.ui_query import OmniUIQuery from omni.kit.widget.inspector import InspectorWidget, PreviewMode class InspectorPreview: """The Stage widget""" def destroy(self): ...
omniverse-code/kit/exts/omni.kit.window.inspector/omni/kit/window/inspector/inspector_window.py
# Copyright (c) 2018-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 an...
omniverse-code/kit/exts/omni.kit.window.inspector/omni/kit/window/inspector/inspector_tests.py
# Copyright (c) 2018-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 an...
omniverse-code/kit/exts/omni.kit.window.inspector/omni/kit/window/inspector/demo_window.py
# Copyright (c) 2018-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 an...
omniverse-code/kit/exts/omni.kit.window.inspector/omni/kit/window/inspector/inspector_widget.py
__all__ = ["InspectorWidget"] import omni.ui as ui from .tree.inspector_tree import InspectorTreeView from .style.style_tree import StyleTreeView from .property.inspector_property_widget import InspectorPropertyWidget from .inspector_preview import InspectorPreview from omni.ui_query import OmniUIQuery # move the ...
omniverse-code/kit/exts/omni.kit.window.inspector/omni/kit/window/inspector/extension.py
# Copyright (c) 2018-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 an...
omniverse-code/kit/exts/omni.kit.window.inspector/omni/kit/window/inspector/__init__.py
# Copyright (c) 2018-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 an...
omniverse-code/kit/exts/omni.kit.window.inspector/omni/kit/window/inspector/inspector_style.py
__all__ = ["INSPECTOR_STYLE"] import omni.ui as ui KIT_GREEN = 0xFF888888 DARK_BACKGROUND = 0xFF333333 INSPECTOR_STYLE = { "Rectangle::background": {"background_color": DARK_BACKGROUND}, # toolbutton "Button.Label::toolbutton": {"color": 0xFF7B7B7B}, "Button.Label::toolbutton:checked": {"color": 0x...
omniverse-code/kit/exts/omni.kit.window.inspector/omni/kit/window/inspector/style/style_model.py
# Copyright (c) 2018-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 an...
omniverse-code/kit/exts/omni.kit.window.inspector/omni/kit/window/inspector/style/style_delegate.py
__all__ = ["StyleTreeDelegate"] import omni.ui as ui from typing import Union from .style_model import StyleGroupItem, StyleModel, StyleItem, StylePropertyType from .widget_styles import ClassStyles from pathlib import Path ICON_PATH = Path(__file__).parent.parent.parent.parent.parent.parent.joinpath("icons") LIN...
omniverse-code/kit/exts/omni.kit.window.inspector/omni/kit/window/inspector/style/resolved_style.py
__all__ = ["ResolvedStyleWidget"] from typing import Union import omni.ui as ui from .widget_styles import ClassStyles from .style_model import get_property_type, StylePropertyType, StyleColorModel, StyleComboItemModel, get_enum_class class ResolvedStyleWidget: """The Stage widget""" def __init__(self, *...
omniverse-code/kit/exts/omni.kit.window.inspector/omni/kit/window/inspector/style/style_tree.py
__all__ = ["StyleTreeView"] from typing import Dict, cast from ..tree.inspector_tree import ICON_PATH import omni.ui as ui import omni.kit.app import carb.events from omni.ui_query import OmniUIQuery from .style_model import StyleModel from .style_delegate import StyleTreeDelegate from .resolved_style import Resol...
omniverse-code/kit/exts/omni.kit.window.inspector/omni/kit/window/inspector/style/widget_styles.py
__all__ = ["ClassStyles"] ClassStyles = { "AbstractField": ["background_selected_color", "color", "padding"], "AbstractSlider": [ "background_color", "border_color", "border_radius", "border_width", "color", "draw_mode", "padding", "secondary_col...
omniverse-code/kit/exts/omni.kit.window.inspector/omni/kit/window/inspector/tree/inspector_tree.py
__all__ = ["WindowItem", "WindowListModel", "InspectorTreeView"] from typing import List, cast import asyncio import omni.ui as ui import omni.kit.app import carb import carb.events from .inspector_tree_model import InspectorTreeModel, WidgetItem from .inspector_tree_delegate import InspectorTreeDelegate from omni.u...
omniverse-code/kit/exts/omni.kit.window.inspector/omni/kit/window/inspector/tree/inspector_tree_model.py
# Copyright (c) 2018-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 an...
omniverse-code/kit/exts/omni.kit.window.inspector/omni/kit/window/inspector/tree/inspector_tree_delegate.py
__all__ = ["InspectorTreeDelegate"] import os.path import omni.ui as ui import omni.kit.app import carb from .inspector_tree_model import WidgetItem, InspectorTreeModel from pathlib import Path ICON_PATH = Path(__file__).parent.parent.parent.parent.parent.parent.joinpath("icons") class InspectorTreeDelegate(ui.Abs...
omniverse-code/kit/exts/omni.kit.window.inspector/omni/kit/window/inspector/property/create_widget.py
__all__ = ["get_property_enum_class", "PropertyType", "create_property_widget"] from typing import Tuple, Union, Callable import omni.ui as ui import enum from .widget_model import WidgetModel, WidgetComboItemModel from .widget_builder import PropertyWidgetBuilder def get_property_enum_class(property: str) -> Call...
omniverse-code/kit/exts/omni.kit.window.inspector/omni/kit/window/inspector/property/widget_builder.py
__all__ = ["PropertyWidgetBuilder"] import omni.ui as ui LABEL_HEIGHT = 18 HORIZONTAL_SPACING = 4 LABEL_WIDTH = 150 class PropertyWidgetBuilder: @classmethod def _build_reset_button(cls, path) -> ui.Rectangle: with ui.VStack(width=0, height=0): ui.Spacer() with ui.ZStack(wid...
omniverse-code/kit/exts/omni.kit.window.inspector/omni/kit/window/inspector/property/widget_model.py
__all__ = ["WidgetModel", "WidgetComboValueModel", "WidgetComboNameValueItem", "WidgetComboItemModel"] from typing import Callable import omni.ui as ui class WidgetModel(ui.AbstractValueModel): """ Model for widget Properties """ def __init__(self, widget: ui.Widget, property: str, dragable=True): ...
omniverse-code/kit/exts/omni.kit.window.inspector/omni/kit/window/inspector/property/inspector_property_widget.py
__all__ = ["InspectorPropertyWidget"] import omni.ui as ui import carb.events import omni.kit.app from omni.ui_query import OmniUIQuery from .widgets.button import ButtonPropertyFrame from .widgets.canvas_frame import CanvasPropertyFrame from .widgets.circle import CirclePropertyFrame from .widgets.collapsable_fram...
omniverse-code/kit/exts/omni.kit.window.inspector/omni/kit/window/inspector/property/base_frame.py
__all__ = ["WidgetCollectionFrame"] # from typing import Union, Any from .create_widget import PropertyType import omni.ui as ui from .create_widget import create_property_widget from .widget_builder import PropertyWidgetBuilder class WidgetCollectionFrame: parents = {} # For later deletion of parents ...
omniverse-code/kit/exts/omni.kit.window.inspector/omni/kit/window/inspector/property/widgets/button.py
__all__ = ["ButtonPropertyFrame"] import omni.ui as ui from ..base_frame import WidgetCollectionFrame from ..create_widget import PropertyType class ButtonPropertyFrame(WidgetCollectionFrame): def __init__(self, frame_label: str, widget: ui.Widget) -> None: super().__init__(frame_label, widget) def...
omniverse-code/kit/exts/omni.kit.window.inspector/omni/kit/window/inspector/property/widgets/canvas_frame.py
__all__ = ["CanvasPropertyFrame"] import omni.ui as ui from ..base_frame import WidgetCollectionFrame from ..create_widget import PropertyType class CanvasPropertyFrame(WidgetCollectionFrame): def __init__(self, frame_label: str, widget: ui.Widget) -> None: super().__init__(frame_label, widget) def...