usd-ingest-kit 0.2.7__cp312-none-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,51 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+ import os
4
+
5
+ from .version import __version__, get_version
6
+
7
+ # Skip the Kit plugin registrations below when the Kit-free pytest runner is driving the
8
+ # suite (see the repo-root conftest.py, which sets USD_INGEST_PYTEST). Those plugins back onto
9
+ # omni.usd contexts / carb interfaces that only work inside a live Kit app. The Kit
10
+ # libraries can *import* in a plain interpreter (so the try/except guards below wouldn't
11
+ # catch it), but using them without a running app faults -- so gate on the marker instead.
12
+ # Inside a real Kit runtime USD_INGEST_PYTEST is unset and registration proceeds exactly as before.
13
+ _SKIP_KIT_PLUGIN_REGISTRATION = bool(os.environ.get("USD_INGEST_PYTEST"))
14
+
15
+ if not _SKIP_KIT_PLUGIN_REGISTRATION:
16
+ # Prefer registering after KitApp.startup() (see kit.app.usd_ingest._ensure_kit_runtime_plugins).
17
+ # At ``python -m usd_ingest.kit...`` import time, carb/omni.usd often are not on
18
+ # sys.path yet — skip quietly and let the IngestApp entry point register once ready.
19
+ try:
20
+ import carb # noqa: F401
21
+ except ImportError:
22
+ carb = None # type: ignore[assignment]
23
+
24
+ if carb is not None:
25
+ # Register the Kit config plugins into the core config: the carb ${...} token resolver and the
26
+ # Kit-only config.toml layer (which supplies tokenized mdl.lib_paths).
27
+ try:
28
+ from . import config as _config
29
+
30
+ _config.register()
31
+ except Exception: # pragma: no cover
32
+ import logging
33
+
34
+ logging.getLogger(__name__).warning("Failed to register the Kit config plugins.", exc_info=True)
35
+
36
+ # Stage opener needs omni.usd (extension); skip until Kit has enabled USD libs.
37
+ try:
38
+ import omni.usd # noqa: F401
39
+ except ImportError:
40
+ pass
41
+ else:
42
+ try:
43
+ from . import common as _common
44
+
45
+ _common.register()
46
+ except Exception: # pragma: no cover
47
+ import logging
48
+
49
+ logging.getLogger(__name__).warning("Failed to register the Kit collector/stage plugins.", exc_info=True)
50
+
51
+ __all__ = ["__version__", "get_version"]
@@ -0,0 +1,3 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+ """Kit app layer for USD Ingest CLI entry points."""
@@ -0,0 +1,21 @@
1
+ # Kit-only USD Ingest settings, merged above the core defaults (usd_ingest/core/app/config.toml)
2
+ # and below the user config / --set-config overrides. Registered as a config layer by
3
+ # usd_ingest.kit when running in a Kit runtime.
4
+ #
5
+ # ${...} tokens are resolved via carb (Kit only); see usd_ingest.kit.config.token_resolver.
6
+
7
+ [mdl]
8
+ # Built-in Kit shaders (e.g. @OmniPBR.mdl@) are referenced without a leading './' or '../', so
9
+ # these directories must be on omni.client's default search path for Asset Validation and
10
+ # Collection. Normally set up by omni.kit.material.library, which USD Ingest avoids to keep dependencies
11
+ # minimal.
12
+ lib_paths = [
13
+ "${kit}/mdl/core/Base",
14
+ "${kit}/mdl/core/Volume",
15
+ "${kit}/mdl/core/mdl",
16
+ "${kit}/mdl/core/Blender",
17
+ "${kit}/mdl/core/Ue4",
18
+ "${kit}/mdl/core/VRay",
19
+ # OpenPBRUber class definitions (omni.usd.config adds this to the default search path).
20
+ "${kit}/mdl/core/OpenPBR",
21
+ ]
@@ -0,0 +1,44 @@
1
+ [app]
2
+ name = "content_pipeline"
3
+ versionFile = "${kit}/../VERSION"
4
+ fastShutdown = true
5
+ settings.standalone_mode = true
6
+ enableStdoutOutput = false
7
+ python.interceptSysStdOutput = false # keep print() on process stdout for subprocess PIPE capture
8
+ exts.folders."++" = ["${kit}/../exts", "${kit}/../extsbuild", "${kit}/../extscache"]
9
+ exts.enabled = [
10
+ "omni.kit.loop-default",
11
+ "omni.client",
12
+ "omni.kit.commands",
13
+ "omni.usd.libs",
14
+ "omni.usd",
15
+ "omni.usdex.libs",
16
+ "omni.usd_resolver",
17
+ "omni.scene.optimizer.core",
18
+ "omni.physx",
19
+ "omni.asset_validator.core",
20
+ "omni.usd.schema.physx",
21
+ "omni.usd.schema.anim",
22
+ "omni.usd.schema.render_settings.rtx",
23
+ "omni.anim.behavior.schema",
24
+ "omni.anim.retarget.core",
25
+ "omni.usd.schema.omni_sensors",
26
+ "omni.usd.schema.omnigraph",
27
+ "isaacsim.robot.schema", # usd.schema.isaac for the Mega robot asset type
28
+ "omni.physx.asset_validator",
29
+ ]
30
+
31
+ [log]
32
+ # Quiet Kit bootstrap; USD Ingest CLI defaults to info and ``usd_ingest run --verbosity`` raises omni.log.
33
+ level = "Error"
34
+ outputStreamLevel = "Verbose" # Gate stream with omni.log.level (set after startup)
35
+ debugConsoleLevel = "Verbose"
36
+
37
+ # USD Ingest extension settings live in config.toml (same directory). Override locally via the user
38
+ # config file or at runtime with --set-config KEY=VALUE (repeatable).
39
+ #
40
+ # Examples:
41
+ # cip --set-config gitlab.uri=https://gitlab.example.com run ...
42
+ # cip --set-config lookdev.light_rig_path=data/lookdev/light_rig run ...
43
+ # cip --show-config
44
+ # usd_ingest config
@@ -0,0 +1,14 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+
5
+ class LOGGING(object):
6
+ import omni.log
7
+
8
+ LOG_LEVELS = {
9
+ "fatal": omni.log.Level.FATAL,
10
+ "error": omni.log.Level.ERROR,
11
+ "warn": omni.log.Level.WARN,
12
+ "info": omni.log.Level.INFO,
13
+ "verbose": omni.log.Level.VERBOSE,
14
+ }