Skip to main content

usd2msd

This project is an offline converter for Omniverse-specific USD files to MSD.

This project is a sub-project. Unless explicitly specified, all paths in this README are relative to the project root, and all commands are assumed to run from that directory.

Setup Environment

This project uses pyproject.toml to manage dependencies. You can use any Python package manager that supports PEP 518. With uv, run:

uv sync

to install runtime dependencies and the default dev dependency group.

This project requires Python >=3.10, <3.14.

Hello World USD

Run the Python script using:

uv run examples/hello_world_usd.py

This converts hello_world.usda and loads it directly into MotrixSim via the PyO3 MSD binding. No intermediate file is written.

Usage

Converter.convert() returns an msd.World object (a PyO3 Rust object) directly:

from pathlib import Path
from usd2msd import Converter

converter = Converter()
world = converter.convert(Path("scene.usda"))
# world is a motrixsim.msd.World object, ready for use in MotrixSim

To use the world in MotrixSim:

import motrixsim as mx

model = mx.load_usd("scene.usda")  # internally calls Converter and builds the scene

Developer Guide

Update MSD Python Stubs

MSD types are exposed directly via PyO3 bindings from motrixsim.msd. When MSD structure in the main project changes, regenerate the Python stubs:

cd motrixsim-python/motrixsim-core
cargo run --bin stub_gen

Inspect Binary USD Files

To convert or flatten a binary USD file to readable USDA for inspection or debugging, edit and run:

uv run scripts/flatten_to_usda.py

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.

usd2msd-0.10.0-py3-none-any.whl (53.6 kB view details)

Uploaded Python 3

File details

Details for the file usd2msd-0.10.0-py3-none-any.whl.

File metadata

  • Download URL: usd2msd-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 53.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.28.0 CPython/3.11.2 Linux/6.12.57+deb13-amd64

File hashes

Hashes for usd2msd-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b666cba1d1eb9157b5cc16dcef99b9d4b46ebeaedfe0bc4b978a79c16ccb084c
MD5 55d1a10542ae049e2481484ead7fd8f8
BLAKE2b-256 8a06afe81d4d9403727983e9361708556efca0cbeb592e2cc38d22d884f20646

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.10.0 This release

1 file

0.9.0

1 file

0.8.2

1 file

0.8.1

1 file

0.8.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page