file_path
stringlengths
32
153
content
stringlengths
0
3.14M
omniverse-code/kit/exts/omni.kit.window.filepicker/omni/kit/window/filepicker/datetime/timezone_widget.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.window.filepicker/omni/kit/window/filepicker/datetime/calendar.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.window.filepicker/omni/kit/window/filepicker/datetime/time_widget.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.window.filepicker/omni/kit/window/filepicker/datetime/models.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.window.filepicker/omni/kit/window/filepicker/datetime/date_widget.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.window.filepicker/omni/kit/window/filepicker/tests/test_file_ops.py
import os import omni.kit.test from pathlib import Path from omni.kit import ui_test from typing import List from ..dialog import FilePickerDialog from tempfile import TemporaryDirectory, NamedTemporaryFile, gettempprefix from ..test_helper import FilePickerTestHelper from ..file_ops import move_items, delete_items, ob...
omniverse-code/kit/exts/omni.kit.window.filepicker/omni/kit/window/filepicker/tests/test_dialog.py
## Copyright (c) 2018-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 softw...
omniverse-code/kit/exts/omni.kit.window.filepicker/omni/kit/window/filepicker/tests/test_api.py
## Copyright (c) 2018-2019, 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.window.filepicker/omni/kit/window/filepicker/tests/test_search_delegate.py
## Copyright (c) 2018-2019, 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.window.filepicker/omni/kit/window/filepicker/tests/__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 softw...
omniverse-code/kit/exts/omni.kit.window.filepicker/omni/kit/window/filepicker/tests/test_search_field.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 softw...
omniverse-code/kit/exts/omni.kit.window.filepicker/omni/kit/window/filepicker/tests/test_connections.py
## Copyright (c) 2018-2019, 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.window.filepicker/omni/kit/window/filepicker/tests/test_auto_refresh.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 softw...
omniverse-code/kit/exts/omni.kit.window.filepicker/omni/kit/window/filepicker/tests/test_context_menu.py
import os from pathlib import Path from tempfile import TemporaryDirectory, NamedTemporaryFile import omni.kit.test from omni.kit import ui_test from omni.kit.widget.filebrowser import TREEVIEW_PANE, LISTVIEW_PANE from omni import ui from ..test_helper import FilePickerTestHelper from ..dialog import FilePickerDialog...
omniverse-code/kit/exts/omni.kit.window.filepicker/omni/kit/window/filepicker/tests/test_file_info.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 a...
omniverse-code/kit/exts/omni.kit.window.filepicker/omni/kit/window/filepicker/tests/test_bookmarks.py
## Copyright (c) 2018-2019, 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.window.filepicker/omni/kit/window/filepicker/tests/test_asset_types.py
## Copyright (c) 2018-2019, 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.window.filepicker/omni/kit/window/filepicker/tests/test_navigate.py
## Copyright (c) 2018-2019, 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.window.filepicker/omni/kit/window/filepicker/tests/test_datetime.py
import omni.kit.test import omni.kit.ui_test as ui_test import omni.ui as ui import omni.kit.app from ..datetime.date_widget import DateWidget from ..datetime.time_widget import TimeWidget from ..datetime.timezone_widget import TimezoneWidget from ..datetime.models import ZoneModel import datetime import random import...
omniverse-code/kit/exts/omni.kit.window.filepicker/omni/kit/window/filepicker/tests/test_test_helper.py
## Copyright (c) 2018-2019, 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.window.filepicker/omni/kit/window/filepicker/tests/test_timestamp.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 a...
omniverse-code/kit/exts/omni.kit.window.filepicker/docs/CHANGELOG.md
# Changelog The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [2.7.15] - 2023-02-21 ### Fixed - Fix issue with unexpectedly filtered items. ## [2.7.14] - 2023-02-01 ### Fixed - OM-79367: Fix rename nucleus connection does not work issue. ## [2.7.13] - 2023-01-31 ### Fixed - OM-79359...
omniverse-code/kit/exts/omni.kit.window.filepicker/docs/README.md
# Kit FilePicker Window [omni.kit.window.filepicker] This Kit extension provides both a popup dialog as well as an embeddable widget that you can add to your code for browsing the filesystem.
omniverse-code/kit/exts/omni.kit.window.filepicker/docs/index.rst
omni.kit.window.filepicker ########################### Kit Filepicker Dialog and embeddable Widget. .. toctree:: :maxdepth: 1 CHANGELOG .. automodule:: omni.kit.window.filepicker :platform: Windows-x86_64, Linux-x86_64 :members: :show-inheritance: :undoc-members: .. autoclass:: FilePicke...
omniverse-code/kit/exts/omni.kit.collaboration.viewport.camera/PACKAGE-LICENSES/omni.kit.collaboration.viewport.camera-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.collaboration.viewport.camera/config/extension.toml
[package] title = "Viewport Widget: Camera Name" description = "The viewport widget that displays camera name of users joined the same stage." version = "2.0.2" changelog = "docs/CHANGELOG.md" readme = "docs/README.md" category = "Collaboration" feature = true # URL of the extension source repository. repository = ...
omniverse-code/kit/exts/omni.kit.collaboration.viewport.camera/omni/kit/collaboration/viewport/camera/peer_user_shared_data.py
import asyncio import carb import omni.usd import omni.kit.app import omni.kit.usd.layers as layers import omni.kit.notification_manager as nm import omni.kit.collaboration.presence_layer as pl from pxr import Sdf, Usd, Tf, UsdGeom from .manipulator import PeerUserCamera from .local_user_shared_data import LocalUserS...
omniverse-code/kit/exts/omni.kit.collaboration.viewport.camera/omni/kit/collaboration/viewport/camera/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.collaboration.viewport.camera/omni/kit/collaboration/viewport/camera/__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.collaboration.viewport.camera/omni/kit/collaboration/viewport/camera/utils.py
import carb import omni.kit.commands import omni.kit.undo from pxr import Sdf, Usd, UsdGeom from omni.kit.viewport.utility import get_active_viewport_window, get_active_viewport_camera_path class CarbProfilerScope: # pragma: no cover def __init__(self, id, name): self._id = id self._name = name ...
omniverse-code/kit/exts/omni.kit.collaboration.viewport.camera/omni/kit/collaboration/viewport/camera/stage_listener.py
import asyncio import carb import time import omni.client import omni.usd import omni.kit.app as app import omni.kit.usd.layers as layers import omni.kit.viewport.menubar.camera as viewport_camera_menu import omni.ui as ui import omni.kit.notification_manager as nm import omni.kit.collaboration.presence_layer as pl fr...
omniverse-code/kit/exts/omni.kit.collaboration.viewport.camera/omni/kit/collaboration/viewport/camera/local_user_shared_data.py
import carb import omni.usd import omni.kit.usd.layers as layers import omni.kit.collaboration.presence_layer as pl from pxr import Usd, Sdf from omni.kit.viewport.utility import get_active_viewport_camera_path, get_active_viewport_window class LocalUserSharedData: def __init__(self, usd_context: omni.usd.UsdCo...
omniverse-code/kit/exts/omni.kit.collaboration.viewport.camera/omni/kit/collaboration/viewport/camera/menubar_camera_widget_delegate.py
__all__ = ["MenuBarLiveSessionCameraFollowerButtonDelegate", "MenuBarLiveSessionCameraFollowerMenuItemDelegate"] import omni.ui as ui from omni.kit.viewport.menubar.camera import AbstractCameraButtonDelegate, AbstractCameraMenuItemDelegate from omni.kit.widget.live_session_management import LiveSessionCameraFollowerL...
omniverse-code/kit/exts/omni.kit.collaboration.viewport.camera/omni/kit/collaboration/viewport/camera/peer_user_menu_item.py
import omni.ui as ui import omni.kit.usd.layers as layers import omni.kit.widget.live_session_management as lsm from typing import Callable from omni.kit.viewport.menubar.core import ViewportMenuDelegate, LabelMenuDelegate class PeerUserMenuItem(ui.MenuItem): """ A single menu item represent a Live Sesson Us...
omniverse-code/kit/exts/omni.kit.collaboration.viewport.camera/omni/kit/collaboration/viewport/camera/manipulator/peer_user_camera_manipulator_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.collaboration.viewport.camera/omni/kit/collaboration/viewport/camera/manipulator/__init__.py
from .peer_user_camera import PeerUserCamera
omniverse-code/kit/exts/omni.kit.collaboration.viewport.camera/omni/kit/collaboration/viewport/camera/manipulator/peer_user_camera.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.collaboration.viewport.camera/omni/kit/collaboration/viewport/camera/manipulator/peer_user_camera_manipulator.py
## Copyright (c) 2018-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 softw...
omniverse-code/kit/exts/omni.kit.collaboration.viewport.camera/omni/kit/collaboration/viewport/camera/tests/__init__.py
from .test_widgets import TestCollaborationViewportCamera
omniverse-code/kit/exts/omni.kit.collaboration.viewport.camera/omni/kit/collaboration/viewport/camera/tests/test_widgets.py
import carb import omni.kit.test import omni.kit.ui_test as ui_test import omni.usd import omni.ui as ui import omni.client import unittest import omni.kit.app import omni.kit.usd.layers as layers import omni.kit.clipboard import omni.kit.collaboration.presence_layer as pl import omni.kit.collaboration.presence_layer.u...
omniverse-code/kit/exts/omni.kit.collaboration.viewport.camera/docs/CHANGELOG.md
# Changelog ## [2.0.2] - 2023-02-02 ### Changed - Fix Sdf logging spew. - Cherry-pick perf improvements to speed up camera label construction. - Clear shared data only when root layer is merged. ## [2.0.1] - 2022-11-16 ### Changed - Fix lag issue of camera label. ## [2.0.0] - 2022-11-02 ### Changed - Supports cam...
omniverse-code/kit/exts/omni.kit.collaboration.viewport.camera/docs/README.md
# Viewport Widget: Camera Name [omni.kit.collaboration.viewport.camera] This extension utilizes omni.kit.collaboration.channel_manager to exchange camera information between users in the same stage, and display a widget under camera to visualize current focused camera of users.
omniverse-code/kit/exts/omni.kit.collaboration.viewport.camera/docs/index.rst
omni.kit.collaboration.viewport.camera ###################################### Viewport Widget: Camera Name Introduction ============ This extension is part of the Live Session applications, which utitlizes omni.kit.collaboration.presence_layer to share camera location in realtime, and provides widgets for Viewport to...
omniverse-code/kit/exts/omni.kit.widget.opengl/PACKAGE-LICENSES/omni.kit.widget.opengl-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.widget.opengl/config/extension.toml
[package] # Semantic Versionning is used: https://semver.org/ version = "1.0.0" # Lists people or organizations that are considered the "authors" of the package. authors = ["NVIDIA"] # The title and description fields are primarly for displaying extension info in UI title = "OmniUI OpenGL Widget" description="A simpl...
omniverse-code/kit/exts/omni.kit.widget.opengl/omni/kit/widget/opengl/__init__.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 a...
omniverse-code/kit/exts/omni.kit.widget.opengl/docs/CHANGELOG.md
# CHANGELOG This document records all notable changes to ``omni.kit.widget.opengl`` extension. This project adheres to `Semantic Versioning <https://semver.org/>`_. ## [1.0.0] - 2022-06-27 ### Added - Initial version.
omniverse-code/kit/exts/omni.kit.widget.opengl/docs/README.md
# OpenGL Widget Extension [omni.kit.widget.opengl] Simple extension for rendering OpenGL content into an omni.ui object.
omniverse-code/kit/exts/omni.kit.widget.opengl/docs/index.rst
omni.kit.widget.opengl ########################### OpenGL Widget .. toctree:: :maxdepth: 1 CHANGELOG .. automodule:: omni.kit.widget.opengl :platform: Windows-x86_64, Linux-x86_64 :members: :undoc-members: :show-inheritance: :imported-members:
omniverse-code/kit/exts/omni.kit.hydra_texture/PACKAGE-LICENSES/omni.kit.hydra_texture-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.hydra_texture/config/extension.toml
[package] version = "1.0.11" title = "Omniverse Kit RTX Hydra Texture" [dependencies] "omni.kit.renderer.core" = {} "omni.usd" = {} "omni.hydra.rtx" = { optional=true } "omni.hydra.iray" = { optional=true } "omni.hydra.pxr" = { optional=true } [[python.module]] name = "omni.kit.hydra_texture" [[native.plugin]] path ...
omniverse-code/kit/exts/omni.kit.hydra_texture/omni/hydratexture/__init__.py
from ._hydra_texture import *
omniverse-code/kit/exts/omni.kit.hydra_texture/omni/hydratexture/_hydra_texture.pyi
from __future__ import annotations import omni.hydratexture._hydra_texture import typing import carb._carb import carb.events._events import omni.gpu_foundation_factory._gpu_foundation_factory import omni.usd._usd __all__ = [ "EVENT_TYPE_DRAWABLE_CHANGED", "EVENT_TYPE_HYDRA_ENGINE_CHANGED", "EVENT_TYPE_REN...
omniverse-code/kit/exts/omni.kit.hydra_texture/omni/kit/hydra_texture/__init__.py
from .scripts.extension import *
omniverse-code/kit/exts/omni.kit.hydra_texture/omni/kit/hydra_texture/scripts/extension.py
import omni.ext import omni.hydratexture class Extension(omni.ext.IExt): def __init__(self): super().__init__() pass def on_startup(self): self._hydra_texture_factory = omni.hydratexture.acquire_hydra_texture_factory_interface() self._hydra_texture_factory.startup() def on...
omniverse-code/kit/exts/omni.kit.hydra_texture/omni/kit/hydra_texture/tests/test_hydra_texture.py
import pathlib import asyncio import carb import carb.settings import carb.tokens import omni.kit.app import omni.kit.test import omni.hydratexture import omni.usd from typing import Callable # FIXME: omni.ui.ImageProvider holds the carb.Format conversion routine import omni.ui from pxr import Gf, UsdRender EXTENS...
omniverse-code/kit/exts/omni.kit.hydra_texture/omni/kit/hydra_texture/tests/__init__.py
from .test_hydra_texture import *
omniverse-code/kit/exts/omni.kit.hydra_texture/data/tests/simple_cubes_mat.usda
#usda 1.0 ( customLayerData = { dictionary cameraSettings = { dictionary Front = { double radius = 500 double3 target = (0, 0, 0) } dictionary Perspective = { double3 position = (373.1252974382823, 206.01346173294246, 232.84...
omniverse-code/kit/exts/omni.kit.hydra_texture/data/tests/custom_product.usda
#usda 1.0 ( customLayerData = { dictionary cameraSettings = { dictionary Front = { double radius = 500 double3 target = (0, 0, 0) } dictionary Perspective = { double3 position = (373.1252974382823, 206.01346173294246, 232.84...
omniverse-code/kit/exts/omni.kit.widget.layers/PACKAGE-LICENSES/omni.kit.widget.layers-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.widget.layers/config/extension.toml
[package] title = "Omni::UI Layer View" category = "Internal" feature = true description = "Omniverse Kit Layer Window" version = "1.6.11" keywords = ["layers"] changelog = "docs/CHANGELOG.md" authors = ["NVIDIA"] repository = "" [dependencies] "omni.activity.core" = {} "omni.usd" = {} "omni.kit.clipboard" = {} "omni....
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/layer_link_window.py
import asyncio import re from typing import List import carb import carb.settings import omni.kit.app import omni.kit.ui import omni.ui as ui from .models.prim_model import PrimModel from .layer_model import LayerModel from .link_delegate import LayerLinkDelegate, PrimLinkDelegate from omni.kit.window.file import Dialo...
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/layer_color_scheme.py
from .singleton import Singleton @Singleton class LayerColorScheme: def __init__(self): import carb.settings self._style = carb.settings.get_settings().get_as_string("/persistent/app/window/uiStyle") or "NvidiaDark" # For now, the style is uniform for dark and light self.EDIT_TAR...
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/layer_delegate.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.widget.layers/omni/kit/widget/layers/layer_icons.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.widget.layers/omni/kit/widget/layers/globals.py
class LayerGlobals: _missing_layer_map = set([]) @staticmethod def on_stage_attached(stage): pass @staticmethod def on_stage_detached(): pass @staticmethod def is_layer_missing(layer_identifier: str) -> bool: return layer_identifier in LayerGlobals._missing_layer...
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/layer_item.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.widget.layers/omni/kit/widget/layers/external_drag_drop_helper.py
import omni.usd import omni.ui as ui from typing import List from pxr import Sdf from omni.kit.window.drop_support import ExternalDragDrop external_drag_drop = None def setup_external_drag_drop(window_name :str, model: ui.AbstractItemModel): global external_drag_drop destroy_external_drag_drop() external...
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/layer_model_utils.py
import omni import omni.client import omni.usd import weakref import os import carb import omni.kit.notification_manager as nm from .file_picker import FilePicker from .filebrowser import FileBrowserSelectionType, FileBrowserMode from .layer_settings import LayerSettings from typing import List from pxr import Sdf fro...
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/layer_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.widget.layers/omni/kit/widget/layers/selection_watch.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.widget.layers/omni/kit/widget/layers/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.widget.layers/omni/kit/widget/layers/__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.widget.layers/omni/kit/widget/layers/file_picker.py
import omni import os import omni.client from omni.kit.widget.prompt import PromptManager, PromptButtonInfo from typing import List, Tuple, Callable from omni.kit.widget.filebrowser import FileBrowserItem from .filebrowser import FileBrowserMode, FileBrowserSelectionType from .filebrowser.app_filebrowser import FileBr...
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/context_menu.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.widget.layers/omni/kit/widget/layers/layer_widgets.py
import carb import weakref from functools import partial from omni.kit.widget.live_session_management import stop_or_show_live_session_widget, build_live_session_user_layout from omni.kit.widget.live_session_management.reload_widget import build_reload_widget from omni import ui from .prim_spec_item import PrimSpecSpe...
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/prompt.py
# Keep it here for back compatibility as some extensions needs this package from omni.kit.widget.prompt import Prompt # pragma: no cover
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/actions.py
import carb import omni.kit.actions.core import weakref from typing import Callable from .prim_spec_item import PrimSpecItem from .layer_model_utils import LayerModelUtils ACTIONS_TAG = "Layers Actions" ACTION_DELETE_PRIM_SPEC_ITEMS = "delete_deltas" class Action: def __init__( self, extension_...
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/link_delegate.py
import omni.usd import omni.kit.usd.layers import weakref from .layer_item import LayerItem from .layer_icons import LayerIcons from omni import ui class LayerLinkDelegate(ui.AbstractItemDelegate): # pragma: no cover def __init__(self, usd_context): super().__init__() self._usd_context = usd_c...
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/path_utils.py
import os import omni.client class PathUtils: @staticmethod def is_omni_path(path: str): url = omni.client.break_url(path) return url and url.scheme == "omniverse" @staticmethod def is_omni_live(path: str): url = omni.client.break_url(path) if not url: retu...
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/prim_spec_item.py
import omni import omni.ui as ui import omni.usd from omni.kit.usd.layers import LayerUtils from typing import List, Set from .models.prim_name_model import PrimNameModel from .layer_settings import LayerSettings from .globals import LayerGlobals from pxr import Sdf, Trace class PrimSpecSpecifier: DEF_ONLY = 1 ...
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/singleton.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.widget.layers/omni/kit/widget/layers/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.widget.layers/omni/kit/widget/layers/layer_settings.py
import carb.settings import omni.kit.usd.layers as layers from .singleton import Singleton SETTINGS_SHOW_SESSION_LAYER = "/persistent/app/layerwindow/showSessionLayer" SETTINGS_SHOW_METRICSASSEMBLER_LAYER = "/persistent/app/layerwindow/showMetricsAssemblerLayer" SETTINGS_SHOW_LAYER_CONTENTS = "/persistent/app/layerwi...
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/filebrowser/__init__.py
class FileBrowserSelectionType: FILE_ONLY = 0 DIRECTORY_ONLY = 1 ALL = 2 class FileBrowserMode: OPEN = 0 SAVE = 1
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/filebrowser/app_filebrowser.py
import asyncio import os import re import carb import omni.ui import omni.client from typing import Callable, List, Tuple from omni.kit.window.filepicker import FilePickerDialog from omni.kit.widget.filebrowser import FileBrowserItem from . import FileBrowserSelectionType, FileBrowserMode LAST_LOCATION = "/persistent...
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/models/layer_name_model.py
import omni.ui as ui class LayerNameModel(ui.AbstractValueModel): def __init__(self, layer_item): super().__init__() self._layer_item = layer_item def destroy(self): self._layer_item = None def get_value_as_string(self): if not self._layer_item.model.normal_mode and s...
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/models/layer_scope_model.py
import omni.ui as ui class LayerScopeModel(ui.AbstractValueModel): def __init__(self, layer_model): super().__init__() self._layer_model = layer_model def destroy(self): self._layer_model = None def get_value_as_bool(self): # False means local mode return self...
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/models/layer_live_update_model.py
import omni.ui as ui class LayerLiveUpdateModel(ui.AbstractValueModel): def __init__(self, usd_context, layer_item): super().__init__() self._usd_context = usd_context self._layer_item = layer_item def destroy(self): self._usd_context = None self._layer_item = None...
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/models/layer_auto_authoring.py
import omni.ui as ui from omni.kit.widget.layers.layer_model_utils import LayerModelUtils class LayerAutoAuthoringModel(ui.AbstractValueModel): def __init__(self, layer_model): super().__init__() self._layer_model = layer_model def destroy(self): self._layer_model = None def ...
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/models/save_model.py
import weakref import omni import omni.ui as ui from omni.kit.widget.layers.layer_model_utils import LayerModelUtils class SaveModel(ui.AbstractValueModel): def __init__(self, layer_item): super().__init__() self._layer_item = layer_item def destroy(self): self._layer_item = None ...
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/models/live_session_user_model.py
import omni.ui as ui import omni.kit.usd.layers as layers class LiveSessionUserModel(ui.AbstractValueModel): def __init__(self, peer_user: layers.LiveSessionUser): super().__init__() self._peer_user = peer_user @property def peer_user(self): return self._peer_user @peer_user...
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/models/save_all_model.py
import omni.ui as ui from omni.kit.widget.layers.layer_model_utils import LayerModelUtils class SaveAllModel(ui.AbstractValueModel): def __init__(self, layer_model): super().__init__() self._layer_model = layer_model def destroy(self): self._layer_model = None def get_value_a...
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/models/prim_model.py
import re from pxr import Sdf, Usd from typing import List from typing import Optional import omni.usd import omni.ui as ui import omni.kit.usd.layers as layers from omni.kit.widget.stage.stage_model import StageModel, StageItem from ..layer_icons import LayerIcons class PrimItem(StageItem): # pragma: no cover d...
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/models/muteness_model.py
import weakref import omni.ui as ui import omni.kit.usd.layers as layers class MutenessModel(ui.AbstractValueModel): def __init__(self, usd_context, layer_item, local: bool): super().__init__() self.local = local self._layer_item = layer_item self._usd_context = usd_context ...
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/models/prim_name_model.py
import omni import weakref import omni.ui as ui class PrimNameModel(ui.AbstractValueModel): def __init__(self, prim_item): super().__init__() self._prim_item = prim_item def destroy(self): self._prim_item = None def get_value_as_string(self): return self._prim_item...
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/models/lock_model.py
import omni.ui as ui from omni.kit.widget.layers.layer_model_utils import LayerModelUtils class LockModel(ui.AbstractValueModel): def __init__(self, layer_item): super().__init__() self._layer_item = layer_item def destroy(self): self._layer_item = None def get_value_as_bool(...
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/models/layer_latest_model.py
import omni.ui as ui from omni.kit.widget.layers.layer_model_utils import LayerModelUtils class LayerLatestModel(ui.AbstractValueModel): def __init__(self, usd_context, layer_item): super().__init__() self._usd_context = usd_context self._layer_item = layer_item def destroy(self): ...
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/tests/test_selection.py
import omni.kit.test import os import uuid import omni.client import omni.kit.commands from .base import TestLayerUIBase from omni.kit.widget.layers import LayerUtils from pxr import Sdf, Usd class TestLayerSelection(TestLayerUIBase): async def setUp(self): await super().setUp() self.stage = await...
omniverse-code/kit/exts/omni.kit.widget.layers/omni/kit/widget/layers/tests/test_performance.py
import omni.kit.test import time from .base import TestLayerUIBase from pxr import Sdf, Usd class TestLayerPerformance(TestLayerUIBase): async def setUp(self): await super().setUp() self.stage = await self.prepare_empty_stage() async def tearDown(self): await self.usd_context.close_st...