Skip to main content

NVIDIA Asset Validator

Project description

Omniverse Asset Validator

An extensible framework to validate OpenUSD assets. Inspired by Pixar's usdchecker, this library extends validation capabilities with additional rules and provides automatic issue fixing.

Features

  • Rule-based validation — Modular rule interface with registration mechanism for custom validators
  • Flexible engine — Run validation on a Usd.Stage, individual layers, or recursively search folders
  • Auto-fixing — Issue fixing interface for applying automated corrections when rules provide suggestions
  • Command line interface — Standalone CLI for validation outside of GUI applications
  • Lightweight — Pure Python implementation requiring only OpenUSD

Installation

Install from PyPI:

pip install omniverse-asset-validator

Optional Dependencies

For full functionality, install with optional dependencies:

# Include usd-core
pip install omniverse-asset-validator[usd]

# Include NumPy (for optimizations)
pip install omniverse-asset-validator[numpy]

# Install all optional dependencies
pip install omniverse-asset-validator[usd,numpy]

Basic usage

from omni.asset_validator import ValidationEngine, IssueFixer

engine = ValidationEngine()
results = engine.validate("path/to/asset.usda")

for issue in results.issues():
    print(f"{issue.severity}: {issue.message}")

fixer = IssueFixer()
fix_results = fixer.fix(results.issues())

for result in fix_results:
    print(f"{result.status}: {result.issue.message}")

The ValidationEngine also supports selecting specific rules with enableRule() / disableRule() and filtering by category with enableCategory().

Command Line Interface

The omni_asset_validate command provides validation from the terminal:

# Validate a single file
omni_asset_validate asset.usda

# Validate a directory recursively
omni_asset_validate ./assets/

# Apply automatic fixes
omni_asset_validate --fix asset.usda

# Validate specific categories
omni_asset_validate --category Material --category Geometry asset.usda

# Enable specific rules only
omni_asset_validate --no-init-rules --rule StageMetadataChecker asset.usda

# Export results to CSV
omni_asset_validate --csv-output results.csv asset.usda

# Show help
omni_asset_validate --help

Documentation

Requirements

  • Python 3.10 - 3.12
  • OpenUSD 22.11 or later

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

omniverse_asset_validator-1.11.1-py3-none-any.whl (236.9 kB view details)

Uploaded Python 3

File details

Details for the file omniverse_asset_validator-1.11.1-py3-none-any.whl.

File metadata

File hashes

Hashes for omniverse_asset_validator-1.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4f9d53de1474a2f9b30b5f0eef16e4979f9bdc51979e7ce4b00a847005a8a9c5
MD5 c74bba01a7d2e143768525353aca9a3c
BLAKE2b-256 38f46b3aefcaaa3367a2facbca24b6b2266a9a11e386d2c7652be55d57475612

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page