Omniverse Cad To Simready
NVIDIAOfficialCreated by OmniverseDistributed by NVIDIA
- Skill
- Workflow
- Software development
- Apache-2.0
- Medium risk
- Has scripts
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill acts as an orchestrator for the CAD to SimReady pipeline, coordinating a series of specialized stages including asset conversion, material and physics assignment via Content Agents, validation, and final packaging. It is designed to manage the flow between discrete tools rather than replacing them, ensuring that assets meet specific simulation requirements through a structured, documentation-driven process.
What it does
- Coordinates end-to-end conversion from source CAD or mesh assets to SimReady USD.
- Manages property assignment for materials and physics using Content Agents.
- Performs multi-stage validation gates to ensure asset viability and conformance.
- Automates the assembly of deliverable packages including thumbnails and USD dependencies.
- Provides consolidated reporting on workflow status, validation findings, and stage outputs.
- Supports flexible execution modes including conversion-only and validation-only paths.
When to use it
- When you need to transform raw CAD or source assets into simulation-ready USD files.
- When you require automated material and physics assignment for 3D assets.
- When you need to validate assets against SimReady conformance profiles.
- When you are preparing assets for packaging and distribution in a simulation environment.
Advantages
- Provides a structured, repeatable pipeline for complex asset preparation.
- Integrates multiple specialized stages into a cohesive workflow.
- Ensures consistent validation and conformance across the asset lifecycle.
- Supports modular execution by allowing specific stages to be skipped or isolated.
Usage examples
- “Convert my CAD file at /path/to/model.step to a SimReady asset.”
- The agent will initiate the preflight check, convert the file to USD, apply material and physics properties, validate the result, and output a report.
- “Validate this existing USD file for SimReady conformance.”
- The agent will run the validation-only workflow, checking the provided USD against SimReady profiles and reporting any findings.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/nvidia/omniverse-cad-to-simready/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip omniverse-cad-to-simready.zip -d .agents/skills
Documentation by Omniverse
CAD to SimReady
When to Use
Use this workflow skill for an end-to-end pipeline from a source asset to a SimReady asset or package. It coordinates existing conversion, authoring, validation, conformance, rendering, and packaging references directly; do not replace it with a single monolithic runner command.
This skill is documentation-driven and does not ship scripts/run.py; it must
not depend on a repository checkout. Shell is declared because this workflow
invokes installed stage reference scripts directly, from each reference's
installed directory, and it still must not grow a monolithic runner.
Prerequisites
Prefer
preflightfirst for deterministic setup: it installs/verifies local upstream checkouts, writes acad-to-simready-preflight.jsonmanifest, and exportsPHYSICAL_AI_PREFLIGHT_MANIFESTplusPHYSICAL_AI_REQUIRE_PREFLIGHT=1for downstream references.Python 3.12 and
uv(per repoREADME.md).A Content Agents model provider key when local deployment will run, or explicit endpoint variables plus usage tokens for already-running endpoints; see
references/preflight/README.mdfor the full list.Docker, NVIDIA Container Toolkit, and an NVIDIA GPU for Content Agents and OVRTX stages.
Local upstream checkouts under
${OMNIVERSE_CAD_TO_SIMREADY_UPSTREAM_ROOT:-$HOME/.omniverse-cad-to-simready/upstreams}when a stage needs upstream scripts or specs.
First Action
For any broad CAD/source-asset to SimReady request, assume
property_assignment_intent=run unless the user explicitly asks for
conversion-only, validation-only, or no material/physics assignment.
For conversion-only requests, set property_assignment_intent=skip, do not
deploy Content Agents, run convert-to-usd, then run validate-usd-minimum
on the generated USD if conversion succeeds. For validation-only requests,
set property_assignment_intent=skip and validate the USD the user
provided without rerunning conversion.
Run preflight (or verify an existing PHYSICAL_AI_PREFLIGHT_MANIFEST)
before any converter, validation, Content Agents, OVRTX, packaging, or FET
step; treat it as dependency bootstrap, not workflow routing. Use
--skip-content-agents for conversion-only/validation-only requests.
When property_assignment_intent=run, verify or deploy Content Agents
services immediately after confirming the source path and resolving intent,
before asset-context inspection, converter dependency checks, conversion,
validation, conformance, rendering, packaging, or upstream source builds.
Treat explicitly provided healthy endpoints as user-owned; otherwise run deploy-content-agents,
which deploys the shared standalone OVRTX renderer, then Material, Physics,
and optional Texture service containers in order.
Instructions
Confirm the source asset path exists, resolve
output_root, and classify the request as end-to-end, conversion-only, validation-only, or packaging.Resolve
property_assignment_intentbefore running any asset inspection, converter probe, conversion, validation, conformance, rendering, or packaging step.Run
preflightfor the selected workflow targets, unless a readyPHYSICAL_AI_PREFLIGHT_MANIFESTis already configured. Source the generated env file before running downstream scripts. Treat preflight as dependency setup only: it may use a provided--source-asset,--source-format, or--conversion-toolsvalue to scope dependency checks, butconvert-to-usdand the upstream converter references still decide actual conversion support.Verify or deploy Content Agents services first when
property_assignment_intent=run; block on missing authentication or unhealthy services instead of continuing.Read
references/workflow.mdandreferences/commands.md, then run only the stage references needed for the current request.Run
identify-asset-contexton the original source asset when web search is available or property assignment will run.Route the source through
convert-to-usd, or skip conversion for existing USD input and treat the source path as the current USD path.Run
validate-usd-minimumbefore expensive downstream work. Treat this as a viability gate only: record unit/profile issues such asmetersPerUnit != 1.0, but do not runsimready-conform-profile, FET001, or any other FET repair before Content Agents assignment when property assignment will run.Run Content Agents material, physics, and optional texture assignment on the converted/minimum-valid USD when requested or required.
Run
simready-conform-profileon the latest simulation USD path after property assignment and preserve every selected FET repair report.Run validation gates in order:
omni-asset-validate,omni-asset-validate-geometry,omni-asset-validate-physics, andsimready-validate.Rerun
simready-conform-profilewhensimready-validatereports a repairable requirement, then rerun profile validation on the newest authored USD.Run
ovrtx-render-servicewhen preview, thumbnail, or inspection images are requested. When package outputs are requested, runassemble-package-sourcenext to create the cleandeliverable/package source from the final USD and thumbnail, then runnv-core-package-sampleandnv-core-package-sample-validationon that deliverable folder only.Emit the consolidated workflow report with the final USD path, all stage reports, validation findings, rerun reasons, and next work.
Output Format
Emit a consolidated workflow report in Markdown, and include JSON when the
workflow writes structured artifacts. Report overall status as passed,
blocked, failed, or needs_rerun. See references/workflow.md for the
required Markdown and JSON report fields.
Detailed References
Read only the references needed for the current request:
references/preflight/README.md: deterministic local setup, manifest/env contract, wrappers, deployment opt-out, and guardrail behavior.references/workflow.md: inputs, source routing, detailed workflow, validation policy, output report fields, and next steps.references/commands.md: concrete portable script command patterns.references/assemble-package-source/README.md: two-zone package source assembly, root USD naming, thumbnail placement, and deliverable checks.references/troubleshooting.md: symptom/cause/fix table plus FET (GSP.001/RB.MB.001) repair-routing detail.references/publishing-layout.md: frontmatter compatibility-field notes and layout rationale for this skill's own file tree.
Publishing Layout Notes
Use skills/omniverse-cad-to-simready/ as the source of truth for this
product repo's skill. The .agents/skills symlink is a compatibility alias
for local agentskills.io-style discovery, and the nested references/ tree
is intentional. See references/publishing-layout.md for the alias list,
frontmatter field placement, and flattening rules.
Limitations
This workflow coordinates existing conversion, property assignment, conformance, validation, rendering, and packaging skills; it does not replace them with a single monolithic runner command.
Troubleshooting
Read references/troubleshooting.md only when a specific stage or validation
gate is failing; it owns the symptom/cause/fix table and FET repair routing.
Hard Rules
Prefer the preflight manifest for local upstream roots, converter executables, SimReady validation runtime, OVRTX endpoint, and Content Agents service URLs. When
PHYSICAL_AI_REQUIRE_PREFLIGHT=1is set, do not bypass the manifest with direct upstream discovery.Do not run asset inspection, converter probes, local upstream builds, conversion, validation, conformance, rendering, or packaging before Content Agents readiness when property assignment will run.
Use stage-specific installed reference scripts directly. Do not add or call a single
omniverse-cad-to-simreadyrunner command.For source conversion, delegate to the
convert-to-usdreference; do not substitute another converter for CAD or mesh formats.For property assignment, use Content Agents references as separate atomic steps: material first, then physics, then texture only when requested.
When property assignment will run, do not run
simready-conform-profileor any FET helper before Content Agents. Validate minimum USD first, then run Content Agents on that converted/minimum-valid USD, then apply FET repairs to the latest service-authored USD.When property assignment will run, do not run
simready-validateor any SimReady profile validation before Content Agents. The only validation gate allowed before service calls isvalidate-usd-minimum, which is a basic USD viability check.Stop at the first failing deployment, conversion, property-assignment, or conformance authoring gate unless the user explicitly asks for best-effort continuation.
Do not stop at validation findings after a meaningful USD artifact exists. Continue remaining diagnostic gates and mark the result
needs_rerun.Do not leave a
GSP.001profile failure as an unclassified final finding. Route it to upstreamsimready-foundation-conform-fet-005-simulate-grasp-physics; if the current agent cannot inspect renders or no explicit grasp points are available, report a blocked FET005 repair with the visual evidence path or missing input reason.Preserve every stage report and pass the concrete output USD path from each report into the next stage.
Files
- ATTRIBUTION.mdAdded by AutoGineer936 B
- BENCHMARK.md5.4 KiB
- CHANGELOG.md2.0 KiB
- LICENSELicence file added by AutoGineer11.2 KiB
- SKILL.md10.7 KiB
- agents/openai.yaml427 B
- config/skillspector-baseline.yaml1.6 KiB
- evals/evals.json8.9 KiB
- evals/files/minimal_mesh.stl157 B
- references/assemble-package-source/README.md3.9 KiB
- references/assemble-package-source/scripts/check_dependencies.pyScript2.3 KiB
- references/assemble-package-source/scripts/report_schema.json1.2 KiB
- references/assemble-package-source/scripts/run.pyScript19.2 KiB
- references/commands.md5.3 KiB
- references/content-agents/README.md20.2 KiB
- references/content-agents/references/material-agent-client/README.md13.8 KiB
- references/content-agents/references/material-agent-client/scripts/check_dependencies.pyScript417 B
- references/content-agents/references/material-agent-client/scripts/report_schema.json722 B
- references/content-agents/references/material-agent-client/scripts/run.pyScript405 B
- references/content-agents/references/physics-agent-client/README.md13.7 KiB
- references/content-agents/references/physics-agent-client/scripts/check_dependencies.pyScript417 B
- references/content-agents/references/physics-agent-client/scripts/report_schema.json722 B
- references/content-agents/references/physics-agent-client/scripts/run.pyScript405 B
- references/content-agents/references/texture-agent-client/README.md6.7 KiB
- references/content-agents/references/texture-agent-client/scripts/check_dependencies.pyScript417 B
- references/content-agents/references/texture-agent-client/scripts/report_schema.json722 B
- references/content-agents/references/texture-agent-client/scripts/run.pyScript405 B
- references/content-agents/scripts/check_dependencies.pyScript1.3 KiB
- references/content-agents/scripts/content_agent_check_dependencies.pyScript4.6 KiB
- references/content-agents/scripts/content_agent_client.pyScript76.1 KiB
- references/content-agents/scripts/content_agent_material_cleanup.pyScript10.7 KiB
- references/content-agents/scripts/content_agent_report_schema.json722 B
- references/content-agents/scripts/openusd_upload_prep.pyScript12.8 KiB
- references/content-agents/scripts/report_schema.json961 B
- references/content-agents/scripts/run.pyScript9.6 KiB
- references/convert-to-usd/README.md10.1 KiB
- references/convert-to-usd/references/mujoco-usd-converter/README.md4.1 KiB
- references/convert-to-usd/references/mujoco-usd-converter/scripts/check_dependencies.pyScript1.5 KiB
- references/convert-to-usd/references/mujoco-usd-converter/scripts/report_schema.json405 B
- references/convert-to-usd/references/mujoco-usd-converter/scripts/run.pyScript9.3 KiB
- references/convert-to-usd/references/openusd-exchange-sdk-usdex/README.md4.7 KiB
- references/convert-to-usd/references/urdf-usd-converter/README.md3.8 KiB
- references/convert-to-usd/references/urdf-usd-converter/scripts/check_dependencies.pyScript1.5 KiB
- references/convert-to-usd/references/urdf-usd-converter/scripts/report_schema.json403 B
- references/convert-to-usd/references/urdf-usd-converter/scripts/run.pyScript9.4 KiB
- references/convert-to-usd/references/usd-convert-cad/README.md8.0 KiB
- references/convert-to-usd/references/usd-convert-cad/scripts/check_dependencies.pyScript3.6 KiB
- references/convert-to-usd/references/usd-convert-cad/scripts/report_schema.json476 B
- references/convert-to-usd/references/usd-convert-cad/scripts/run.pyScript22.8 KiB
- references/convert-to-usd/references/usd-convert-gsplat/README.md4.4 KiB
- references/convert-to-usd/references/usd-convert-gsplat/scripts/check_dependencies.pyScript2.1 KiB
- references/convert-to-usd/references/usd-convert-gsplat/scripts/report_schema.json413 B
- references/convert-to-usd/references/usd-convert-gsplat/scripts/run.pyScript13.6 KiB
- references/convert-to-usd/scripts/check_dependencies.pyScript1.7 KiB
- references/convert-to-usd/scripts/report_schema.json1.4 KiB
- references/convert-to-usd/scripts/run.pyScript22.6 KiB
- references/deploy-content-agents/README.md10.7 KiB
- references/deploy-content-agents/references/deploy-material-agent-docker.md423 B
- references/deploy-content-agents/references/deploy-ovrtx-docker.md405 B
- references/deploy-content-agents/references/deploy-physics-agent-docker.md421 B
- references/deploy-content-agents/references/deploy-texture-agent-docker.md421 B
- references/identify-asset-context/README.md4.7 KiB
- references/identify-asset-context/scripts/check_dependencies.pyScript1.5 KiB
- references/identify-asset-context/scripts/report_schema.json751 B
- references/identify-asset-context/scripts/run.pyScript11.1 KiB
- references/nv-core-package-sample-validation/README.md5.3 KiB
- references/nv-core-package-sample-validation/scripts/check_dependencies.pyScript419 B
- references/nv-core-package-sample-validation/scripts/report_schema.json702 B
- references/nv-core-package-sample-validation/scripts/run.pyScript400 B
- references/nv-core-package-sample/README.md6.3 KiB
- references/nv-core-package-sample/scripts/check_dependencies.pyScript419 B
- references/nv-core-package-sample/scripts/report_schema.json702 B
- references/nv-core-package-sample/scripts/run.pyScript400 B
- references/omni-asset-validate-geometry/README.md3.5 KiB
- references/omni-asset-validate-geometry/scripts/check_dependencies.pyScript1.9 KiB
- references/omni-asset-validate-geometry/scripts/report_schema.json363 B
- references/omni-asset-validate-geometry/scripts/run.pyScript2.0 KiB
- references/omni-asset-validate-physics/README.md3.4 KiB
- references/omni-asset-validate-physics/scripts/check_dependencies.pyScript1.9 KiB
- references/omni-asset-validate-physics/scripts/report_schema.json362 B
- references/omni-asset-validate-physics/scripts/run.pyScript2.0 KiB
- references/omni-asset-validate/README.md3.5 KiB
- references/omni-asset-validate/scripts/check_dependencies.pyScript2.4 KiB
- references/omni-asset-validate/scripts/report_schema.json359 B
- references/omni-asset-validate/scripts/run.pyScript13.8 KiB
- references/ovrtx-render-service/README.md14.5 KiB
- references/ovrtx-render-service/scripts/check_dependencies.pyScript3.4 KiB
- references/ovrtx-render-service/scripts/report_schema.json674 B
- references/ovrtx-render-service/scripts/run.pyScript24.3 KiB
- references/ovrtx-render-service/scripts/stage_prep.pyScript19.2 KiB
- references/ovrtx-render-service/scripts/turntable.pyScript10.8 KiB
- references/preflight/README.md15.5 KiB
- references/preflight/scripts/preflight.ps1Script460 B
- references/preflight/scripts/preflight.pyScript114.8 KiB
- references/preflight/scripts/preflight.shScript278 B
- references/publishing-layout.md1.5 KiB
- references/simready-conform-profile/README.md13.9 KiB
- references/simready-conform-profile/references/FET_000_CORE/README.md1.3 KiB
- references/simready-conform-profile/references/FET_000_CORE/scripts/check_dependencies.pyScript1.4 KiB
- references/simready-conform-profile/references/FET_000_CORE/scripts/report_schema.json418 B
- references/simready-conform-profile/references/FET_000_CORE/scripts/run.py11.6 KiB
- references/simready-conform-profile/references/FET_001_MINIMAL/README.md1.5 KiB
- references/simready-conform-profile/references/FET_001_MINIMAL/scripts/check_dependencies.py1.9 KiB
- references/simready-conform-profile/references/FET_001_MINIMAL/scripts/report_schema.json668 B
- references/simready-conform-profile/references/FET_001_MINIMAL/scripts/run.py16.3 KiB
- references/simready-conform-profile/references/FET_004_SIMULATE_MULTI_BODY_PHYSICS/README.md1.4 KiB
- references/simready-conform-profile/references/FET_004_SIMULATE_MULTI_BODY_PHYSICS/scripts/check_dependencies.py1.6 KiB
- references/simready-conform-profile/references/FET_004_SIMULATE_MULTI_BODY_PHYSICS/scripts/report_schema.json1.0 KiB
- references/simready-conform-profile/references/FET_004_SIMULATE_MULTI_BODY_PHYSICS/scripts/run.py13.3 KiB
- references/simready-conform-profile/references/FET_005_SIMULATE_GRASP_PHYSICS/README.md1.9 KiB
- references/simready-conform-profile/references/FET_005_SIMULATE_GRASP_PHYSICS/scripts/author_grasp_line.py11.2 KiB
- references/simready-conform-profile/scripts/check_dependencies.py2.3 KiB
- references/simready-conform-profile/scripts/report_schema.json466 B
- references/simready-conform-profile/scripts/run.py20.1 KiB
- references/simready-validate/README.md9.1 KiB
- references/simready-validate/scripts/check_dependencies.py4.2 KiB
- references/simready-validate/scripts/report_schema.json480 B
- references/simready-validate/scripts/run.py26.9 KiB
- references/troubleshooting.md5.0 KiB
- references/validate-usd-minimum/README.md2.5 KiB
- references/validate-usd-minimum/scripts/check_dependencies.py2.1 KiB
- references/validate-usd-minimum/scripts/report_schema.json1.3 KiB
- references/validate-usd-minimum/scripts/run.py11.9 KiB
- references/workflow.md17.2 KiB
- shared/preflight_manifest.py9.7 KiB
- shared/script_utils.py13.5 KiB
- shared/simready_package.py34.3 KiB
- shared/simready_package_check_dependencies.py2.1 KiB
- shared/simready_package_report_schema.json702 B
- shared/upstream_versions.py2.4 KiB
- skill-card.md4.7 KiB
- skill.oms.sig39.4 KiB
- upstream-versions.lock.json2.2 KiB
references/assemble-package-source/scripts/run.py
#!/usr/bin/env python3
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
from __future__ import annotations
import argparse
import json
import os
from pathlib import Path
import re
import shutil
import sys
from typing import Any
sys.path.insert(0, str(Path(__file__).resolve().parents[3] / "shared"))
from script_utils import check_result_with_code as _check, inspect_png
from preflight_manifest import preflight_required, preflight_status_check
USD_SUFFIXES = {".usd", ".usda", ".usdc"}
TEXTURE_SUFFIXES = {".png", ".jpg", ".jpeg", ".exr", ".tif", ".tiff", ".bmp", ".tga"}
URI_PREFIXES = ("http://", "https://", "omniverse://", "s3://", "ngc://", "mdl://")
def _normalize_asset_name(value: str) -> str:
normalized = re.sub(r"[^a-z0-9]+", "_", value.lower()).strip("_")
normalized = re.sub(r"_+", "_", normalized)
return normalized or "asset"
def _is_uri(value: str) -> bool:
lower = value.lower()
return lower.startswith(URI_PREFIXES) or "://" in lower
def _resolve_authored_path(source_layer_path: Path, authored_path: str) -> Path | None:
if not authored_path or _is_uri(authored_path):
return None
if "[" in authored_path and "]" in authored_path:
return None
path = Path(authored_path)
if not path.is_absolute():
path = source_layer_path.parent / path
try:
return path.resolve()
except OSError:
return path
def _safe_relative_to(path: Path, base: Path) -> Path | None:
try:
rel = path.resolve().relative_to(base.resolve())
except (OSError, ValueError):
return None
if any(part == ".." for part in rel.parts):
return None
return rel
def _anchored_relative(from_dir: Path, target: Path) -> str:
try:
rel = Path(os.path.relpath(target.resolve(), from_dir.resolve()))
except OSError:
rel = Path(os.path.relpath(target, from_dir))
value = rel.as_posix()
if not value.startswith((".", "/")):
value = f"./{value}"
return value
def _file_same(left: Path, right: Path) -> bool:
if not left.exists() or not right.exists():
return False
return left.stat().st_size == right.stat().st_size and left.read_bytes() == right.read_bytes()
def _copy_with_collision(source: Path, destination: Path) -> Path:
destination.parent.mkdir(parents=True, exist_ok=True)
if destination.exists() and _file_same(source, destination):
return destination
target = destination
counter = 1
while target.exists() and not _file_same(source, target):
target = destination.with_name(f"{destination.stem}_{counter}{destination.suffix}")
counter += 1
shutil.copy2(source, target)
return target
def _layer_identifier(layer: Any) -> str:
return str(getattr(layer, "realPath", None) or getattr(layer, "identifier", "") or "")
def _source_layers(final_usd: Path) -> list[Path]:
from pxr import UsdUtils
layers: list[Path] = [final_usd.resolve()]
try:
dependency_layers, _, _ = UsdUtils.ComputeAllDependencies(str(final_usd))
except Exception:
return layers
for layer in dependency_layers:
identifier = _layer_identifier(layer)
if not identifier:
continue
path = Path(identifier)
if not path.is_file():
continue
resolved = path.resolve()
if resolved not in layers:
layers.append(resolved)
return layers
def _target_layer_path(source_layer: Path, final_usd: Path, simready_root: Path, root_usd_name: str) -> Path:
if source_layer.resolve() == final_usd.resolve():
return simready_root / root_usd_name
source_root = final_usd.resolve().parent
rel = _safe_relative_to(source_layer, source_root)
if rel is None or rel.name == final_usd.name:
rel = Path("layers") / source_layer.name
return simready_root / rel
def _target_asset_path(source_asset: Path, final_usd: Path, simready_root: Path) -> Path:
suffix = source_asset.suffix.lower()
source_root = final_usd.resolve().parent
rel = _safe_relative_to(source_asset, source_root)
if suffix == ".mdl":
return simready_root / "materials" / source_asset.parent.name / source_asset.name
if suffix in TEXTURE_SUFFIXES:
if rel is not None and "textures" in rel.parts:
index = rel.parts.index("textures")
return simready_root.joinpath(*rel.parts[index:])
return simready_root / "textures" / source_asset.name
if suffix in USD_SUFFIXES:
if rel is not None:
return simready_root / rel
return simready_root / "layers" / source_asset.name
if rel is not None:
return simready_root / rel
return simready_root / "assets" / source_asset.name
def _iter_prim_specs(prim_spec: Any) -> Any:
yield prim_spec
for child in prim_spec.nameChildren:
yield from _iter_prim_specs(child)
def _rewrite_asset_path_value(
*,
value: Any,
source_layer_path: Path,
target_layer_path: Path,
final_usd: Path,
simready_root: Path,
copied: dict[Path, Path],
copied_records: list[dict[str, str]],
unresolved: list[str],
) -> tuple[Any, dict[str, str] | None]:
from pxr import Sdf
if not isinstance(value, Sdf.AssetPath):
return value, None
original = str(value.path)
if not original or _is_uri(original):
return value, None
source_asset = _resolve_authored_path(source_layer_path, original)
if source_asset is None or not source_asset.is_file():
unresolved.append(f"{source_layer_path}:{original}")
return value, None
source_asset = source_asset.resolve()
target_asset = copied.get(source_asset)
if target_asset is None:
target_asset = _copy_with_collision(source_asset, _target_asset_path(source_asset, final_usd, simready_root))
copied[source_asset] = target_asset
copied_records.append(
{
"source": str(source_asset),
"destination": str(target_asset),
"relative_path": target_asset.relative_to(simready_root).as_posix(),
}
)
rewritten = _anchored_relative(target_layer_path.parent, target_asset)
return Sdf.AssetPath(rewritten), {"layer": str(target_layer_path), "kind": "asset", "original_path": original, "new_path": rewritten}
def _rewrite_layer(
*,
source_layer_path: Path,
target_layer_path: Path,
final_usd: Path,
simready_root: Path,
copied: dict[Path, Path],
copied_records: list[dict[str, str]],
unresolved: list[str],
) -> list[dict[str, str]]:
from pxr import Sdf
layer = Sdf.Layer.FindOrOpen(str(target_layer_path))
if layer is None:
unresolved.append(f"could not open assembled layer: {target_layer_path}")
return []
rewritten_paths: list[dict[str, str]] = []
for original in list(layer.GetCompositionAssetDependencies()):
if not original or _is_uri(str(original)):
continue
source_asset = _resolve_authored_path(source_layer_path, str(original))
if source_asset is None or not source_asset.is_file():
unresolved.append(f"{source_layer_path}:{original}")
continue
source_asset = source_asset.resolve()
target_asset = copied.get(source_asset)
if target_asset is None:
target_asset = _copy_with_collision(source_asset, _target_asset_path(source_asset, final_usd, simready_root))
copied[source_asset] = target_asset
copied_records.append(
{
"source": str(source_asset),
"destination": str(target_asset),
"relative_path": target_asset.relative_to(simready_root).as_posix(),
}
)
rewritten = _anchored_relative(target_layer_path.parent, target_asset)
if layer.UpdateCompositionAssetDependency(str(original), rewritten):
rewritten_paths.append(
{
"layer": str(target_layer_path),
"kind": "composition",
"original_path": str(original),
"new_path": rewritten,
}
)
for root_prim in layer.rootPrims:
for prim_spec in _iter_prim_specs(root_prim):
for attr_name in list(prim_spec.attributes.keys()):
attr_spec = prim_spec.attributes[attr_name]
value, record = _rewrite_asset_path_value(
value=attr_spec.default,
source_layer_path=source_layer_path,
target_layer_path=target_layer_path,
final_usd=final_usd,
simready_root=simready_root,
copied=copied,
copied_records=copied_records,
unresolved=unresolved,
)
if record is not None:
attr_spec.default = value
rewritten_paths.append(record)
if rewritten_paths:
layer.Save()
return rewritten_paths
def _authored_asset_paths(layer: Any) -> list[str]:
from pxr import Sdf
values: list[str] = []
for root_prim in layer.rootPrims:
for prim_spec in _iter_prim_specs(root_prim):
for attr_name in list(prim_spec.attributes.keys()):
value = prim_spec.attributes[attr_name].default
if isinstance(value, Sdf.AssetPath) and value.path:
values.append(str(value.path))
return values
def _self_containment_checks(deliverable_root: Path, simready_root: Path) -> list[dict[str, Any]]:
from pxr import Sdf, Usd
checks: list[dict[str, Any]] = []
root_layers = sorted(path for path in simready_root.rglob("*") if path.is_file() and path.suffix.lower() in USD_SUFFIXES)
checks.append(
_check(
"usd_layers_present",
bool(root_layers),
"Assembled USD layers are present" if root_layers else "No assembled USD layers were found",
)
)
for usd_path in root_layers:
stage_opens = Usd.Stage.Open(str(usd_path)) is not None
checks.append(
_check(
f"usd_opens:{usd_path.relative_to(deliverable_root).as_posix()}",
stage_opens,
f"USD opens: {usd_path}" if stage_opens else f"USD cannot be opened: {usd_path}",
)
)
layer = Sdf.Layer.FindOrOpen(str(usd_path))
if layer is None:
continue
for authored in list(layer.GetCompositionAssetDependencies()) + _authored_asset_paths(layer):
if not authored or _is_uri(str(authored)):
continue
resolved = _resolve_authored_path(usd_path, str(authored))
exists = resolved is not None and resolved.is_file()
inside = exists and _safe_relative_to(resolved, deliverable_root) is not None
checks.append(
_check(
f"dependency_self_contained:{usd_path.relative_to(deliverable_root).as_posix()}:{authored}",
bool(exists and inside),
f"Dependency is self-contained: {authored}" if exists and inside else f"Dependency is missing or outside deliverable: {authored}",
code="FET031",
)
)
return checks
def _thumbnail_pixel_checks(thumbnail: Path, inspection: dict[str, Any]) -> list[dict[str, Any]]:
# Same fail-closed rule as the ovrtx-render-service render gate: pixel
# inspection is what proves the thumbnail is not blank, so an unavailable
# inspection (missing Pillow, unreadable PNG, ...) is a blocker rather than
# a skip. There is deliberately no --no-fail-on-uniform opt-out here: that
# flag exists on the render stage for diagnostic-only runs, while every
# thumbnail assembled here ships inside the deliverable.
if inspection.get("available") is False:
message = inspection.get("warning", "Could not inspect thumbnail pixels")
return [_check("thumbnail_pixel_inspected", False, str(message), code="SR.002")]
if inspection.get("uniform"):
return [_check("thumbnail_non_uniform", False, f"Thumbnail is blank/uniform by pixel inspection: {thumbnail}", code="SR.002")]
return [_check("thumbnail_non_uniform", True, f"Thumbnail has visible pixel variation: {thumbnail}", "info", code="SR.002")]
def _errors_from_checks(checks: list[dict[str, Any]]) -> list[str]:
return [check["message"] for check in checks if check["severity"] == "error" and not check["passed"]]
def _warnings_from_checks(checks: list[dict[str, Any]]) -> list[str]:
return [check["message"] for check in checks if check["severity"] == "warning" and not check["passed"]]
def _write_report(report_path: Path, report: dict[str, Any]) -> None:
report["assembly_report_path"] = str(report_path)
report_path.parent.mkdir(parents=True, exist_ok=True)
report_path.write_text(json.dumps(report, indent=2, sort_keys=True) + "\n", encoding="utf-8")
def assemble(args: argparse.Namespace) -> dict[str, Any]:
final_usd = args.final_usd.resolve()
output_root = args.output_root.resolve()
pipeline_root = output_root / "pipeline"
deliverable_root = output_root / "deliverable"
simready_root = deliverable_root / "simready_usd"
asset_name = _normalize_asset_name(args.asset_name or final_usd.stem)
root_usd_name = f"sm_{asset_name}_01.usd"
root_usd_path = simready_root / root_usd_name
thumbnail_target = simready_root / ".thumbs" / "256x256" / f"{root_usd_name}.png"
report_path = args.report or pipeline_root / "assembly-report.json"
report: dict[str, Any] = {
"skill": "assemble-package-source",
"operation": "assemble",
"asset_name": asset_name,
"output_root": str(output_root),
"pipeline_root": str(pipeline_root),
"deliverable_root": str(deliverable_root),
"root_usd_path": str(root_usd_path),
"root_usd_relative_path": f"simready_usd/{root_usd_name}",
"thumbnail_path": str(thumbnail_target),
"copied_files": [],
"rewritten_paths": [],
"checks": [],
"warnings": [],
"errors": [],
"passed": False,
"status": "FAIL",
"next_step": "fix-assembly-inputs",
}
checks = report["checks"]
if preflight_required():
preflight_check = preflight_status_check("assemble-package-source", "openusd_python")
if not preflight_check["passed"]:
report["errors"] = [preflight_check["message"]]
_write_report(report_path, report)
return report
checks.append(_check("final_usd_exists", final_usd.is_file(), f"Final USD exists: {final_usd}" if final_usd.is_file() else f"Final USD does not exist: {final_usd}"))
checks.append(_check("thumbnail_exists", args.thumbnail.is_file(), f"Thumbnail exists: {args.thumbnail}" if args.thumbnail.is_file() else f"Thumbnail does not exist: {args.thumbnail}", code="SR.002"))
if args.thumbnail.is_file():
thumbnail_inspection = inspect_png(args.thumbnail)
report["thumbnail_inspection"] = thumbnail_inspection
checks.extend(_thumbnail_pixel_checks(args.thumbnail, thumbnail_inspection))
if _errors_from_checks(checks):
report["errors"] = _errors_from_checks(checks)
_write_report(report_path, report)
return report
if deliverable_root.exists() and args.overwrite:
shutil.rmtree(deliverable_root)
report["warnings"].append(f"Overwrote existing deliverable root: {deliverable_root}")
elif root_usd_path.exists() and not args.overwrite:
checks.append(_check("root_usd_not_existing", False, f"Root USD already exists: {root_usd_path}; pass --overwrite to replace it"))
report["errors"] = _errors_from_checks(checks)
_write_report(report_path, report)
return report
simready_root.mkdir(parents=True, exist_ok=True)
pipeline_root.mkdir(parents=True, exist_ok=True)
copied: dict[Path, Path] = {}
layer_pairs: list[tuple[Path, Path]] = []
for source_layer in _source_layers(final_usd):
target_layer = _target_layer_path(source_layer, final_usd, simready_root, root_usd_name)
copied_target = _copy_with_collision(source_layer, target_layer)
copied[source_layer.resolve()] = copied_target
layer_pairs.append((source_layer.resolve(), copied_target))
report["copied_files"].append(
{
"source": str(source_layer.resolve()),
"destination": str(copied_target),
"relative_path": copied_target.relative_to(simready_root).as_posix(),
}
)
thumbnail_target.parent.mkdir(parents=True, exist_ok=True)
shutil.copy2(args.thumbnail, thumbnail_target)
report["copied_files"].append(
{
"source": str(args.thumbnail.resolve()),
"destination": str(thumbnail_target),
"relative_path": thumbnail_target.relative_to(simready_root).as_posix(),
}
)
unresolved: list[str] = []
for source_layer, target_layer in layer_pairs:
report["rewritten_paths"].extend(
_rewrite_layer(
source_layer_path=source_layer,
target_layer_path=target_layer,
final_usd=final_usd,
simready_root=simready_root,
copied=copied,
copied_records=report["copied_files"],
unresolved=unresolved,
)
)
checks.append(_check("root_usd_assembled", root_usd_path.is_file(), f"Assembled root USD: {root_usd_path}" if root_usd_path.is_file() else f"Assembled root USD is missing: {root_usd_path}"))
checks.append(_check("thumbnail_assembled", thumbnail_target.is_file(), f"Assembled thumbnail: {thumbnail_target}" if thumbnail_target.is_file() else f"Assembled thumbnail is missing: {thumbnail_target}", code="SR.002"))
checks.append(_check("authored_paths_resolved", not unresolved, "All local authored asset paths resolved" if not unresolved else f"Unresolved local authored asset paths: {unresolved}", code="AA.001"))
checks.extend(_self_containment_checks(deliverable_root, simready_root))
report["errors"] = list(dict.fromkeys(_errors_from_checks(checks) + report["errors"]))
report["warnings"] = list(dict.fromkeys(report["warnings"] + _warnings_from_checks(checks)))
report["passed"] = not report["errors"]
report["status"] = "PASS" if report["passed"] else "FAIL"
report["next_step"] = "nv-core-package-sample" if report["passed"] else "fix-assembly-inputs"
_write_report(report_path, report)
return report
def parser() -> argparse.ArgumentParser:
parser = argparse.ArgumentParser(description="Assemble a clean SimReady package source folder.")
parser.add_argument("final_usd", type=Path)
parser.add_argument("output_root", type=Path)
parser.add_argument("--asset-name")
parser.add_argument("--thumbnail", type=Path, required=True)
parser.add_argument("--report", type=Path)
parser.add_argument("--overwrite", action="store_true")
return parser
def main(argv: list[str] | None = None) -> int:
args = parser().parse_args(argv)
report = assemble(args)
print(json.dumps(report, indent=2, sort_keys=True))
return 0 if report["passed"] else 1
if __name__ == "__main__":
raise SystemExit(main())
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Declares allowed tools, Needs Python
The author says: Orchestrator skill. Managed Content Agents deployment requires a configured model provider key matching the selected backend, such as NVIDIA_API_KEY, OPENAI_API_KEY, ANTHROPIC_API_KEY, GOOGLE_API_KEY, or GEMINI_API_KEY, Docker + NVIDIA Container Toolkit + GPU, Python 3.12, and an upstream checkout of nvidia-omniverse/content-agents at the ref pinned in upstream-versions.lock.json. Reused/provided endpoints may instead use explicit endpoint and usage-token environment variables. Linux/macOS only.
Security
What our scanner noticed· Medium risk
- Large base64-encoded blobs
- Instructions that use the network
- Downloads piped into a shell
- Scripts that your agent may run
This skill includes scripts that your agent may run. Read them before you use it.
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- Omniverse
- Publisher
- NVIDIA (Official)
- Distributed by
- NVIDIA
- Source
- NVIDIA/skills · skills/omniverse-cad-to-simready · commit fce3cca
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE-APACHE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Omniverse or NVIDIA.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download omniverse-cad-to-simready.zip