Skip to main content

Asset Converter that converts common asset file formats to OpenUSD

Project description

usd-convert-asset

Pip-installable package for usd-convert-asset.

This package is staged from the existing repo build output. The native bindings, runtime libraries, USD plugin resources, optional staged data, and generated third-party license bundle are copied into a wheel source tree under _build.

OpenUSD Runtime Compatibility

usd-convert-asset ships with and uses its own bundled OpenUSD runtime. Do not mix it with another OpenUSD or usd-core installation in the same Python process; competing pxr modules and native libraries can conflict.

If a workflow also uses other USD Python code, install the converter in a dedicated virtual environment and run conversion in a separate process. Invoke usd-convert-asset as a subprocess or use its CLI without importing both runtimes into one process.

Building From Source

Run the normal repo build first. This compiles asset_converter_native_bindings, copies runtime libraries into asset_converter_native_bindings/libs, generates PACKAGE-LICENSES, and stages the pip wheel source tree.

Windows:

.\repo.bat build --config release
.\repo.bat uv -- build _build\windows-x86_64\release\pip\usd_convert_asset -o dist

Linux x86_64:

./repo.sh build --config release
./repo.sh uv -- build _build/linux-x86_64/release/pip/usd_convert_asset -o dist

Linux aarch64:

./repo.sh build --config release
./repo.sh uv -- build _build/linux-aarch64/release/pip/usd_convert_asset -o dist

The wheel is written to dist/:

dist/usd_convert_asset-<version>-<python>-<abi>-<platform>.whl

Replace <version> with the version generated from VERSION.md. The wheel tag is inferred from the build interpreter and platform because the package contains native runtime libraries.

Testing From Source

Use a clean virtual environment and install the staged wheel or generated pip package directory. The package depends on native libraries staged by the repo build, so install from dist/ or _build/.../pip rather than from source/python directly.

Windows:

python -m venv .venv
.\.venv\Scripts\Activate.ps1
.\.venv\Scripts\python.exe -m pip install --upgrade pip
.\.venv\Scripts\python.exe -m pip install dist\usd_convert_asset-<version>-<python>-<abi>-<platform>.whl
usd-convert-asset -i path\to\input.fbx -o path\to\output.usda
.\.venv\Scripts\python.exe -m usd_convert_asset -i path\to\input.obj -o path\to\output.usdc

Linux:

python -m venv .venv
source .venv/bin/activate
.venv/bin/python -m pip install --upgrade pip
.venv/bin/python -m pip install dist/usd_convert_asset-<version>-<python>-<abi>-<platform>.whl
usd-convert-asset -i path/to/input.fbx -o path/to/output.usda
.venv/bin/python -m usd_convert_asset -i path/to/input.obj -o path/to/output.usdc

To test the staged tree before building a wheel, replace the wheel install with the generated pip package directory:

.venv/bin/python -m pip install _build/<platform>/<config>/pip/usd_convert_asset

Use the matching _build/<platform>/<config>/pip/usd_convert_asset path for the platform and configuration you built. Replace the input paths with existing source assets and the output paths with writable locations. Run usd-convert-asset --help for conversion flags such as --single-mesh, --ignore-materials, --fbx-y-up, and --progress.

License

This package is licensed under the Apache License, Version 2.0 and the Creative Commons Attribution 4.0 International Public License. See LICENSE.

Third-party notices and generated dependency license attributions are included in PACKAGE-LICENSES.

Uninstalling

.venv/bin/python -m pip uninstall usd-convert-asset

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 Distributions

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

usd_convert_asset-1.0.0-cp312-cp312-win_amd64.whl (28.5 MB view details)

Uploaded CPython 3.12Windows x86-64

usd_convert_asset-1.0.0-cp312-cp312-manylinux_2_35_x86_64.whl (96.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.35+ x86-64

usd_convert_asset-1.0.0-cp312-cp312-manylinux_2_35_aarch64.whl (87.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.35+ ARM64

File details

Details for the file usd_convert_asset-1.0.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for usd_convert_asset-1.0.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 213d6a68de140a2d1b176e05cdde94ef3b214864f539c0d778d28eedfe6065e9
MD5 8dd4cc984ecaedd9411f38029f127159
BLAKE2b-256 e3a59204874c13ab91c8c42bc5fa4db954d5e7610d2e9a4b50e1cbceee8eef40

See more details on using hashes here.

File details

Details for the file usd_convert_asset-1.0.0-cp312-cp312-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for usd_convert_asset-1.0.0-cp312-cp312-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 72632749a7d1565dd9d750bd2e983b5f657cce8e953fcb079436580609651058
MD5 bc598fbce32ccaff037b85d000e48f97
BLAKE2b-256 2bb3b8b9913f455629557c95a5ef041a458066880770a6e1e55b560e124ba74b

See more details on using hashes here.

File details

Details for the file usd_convert_asset-1.0.0-cp312-cp312-manylinux_2_35_aarch64.whl.

File metadata

File hashes

Hashes for usd_convert_asset-1.0.0-cp312-cp312-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 7433f7856a2a79ee9bba258075c2752374cb99507cb6faf725fe6d3429d72b4e
MD5 e7474818181f2f9c024c8a62c030bcd9
BLAKE2b-256 3eae6bbdd833b93e0d76017542410c743e4b790b9d4b40e12314674cdf5f0c56

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