Metadata-Version: 2.4
Name: simready-thumbnail
Version: 2026.10.0
Summary: SimReady USD thumbnail generation library
Author: NVIDIA Corporation
License-Expression: Apache-2.0
Project-URL: Homepage, https://www.nvidia.com
Keywords: nvidia,simready,thumbnail,capture
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: usd-core>=22.11
Requires-Dist: numpy
Requires-Dist: pillow
Requires-Dist: ovrtx<0.5,>=0.4
Requires-Dist: ovstage<0.2,>=0.1.1
Dynamic: license-file

# simready.thumbnail

Standalone library for SimReady USD thumbnails. Default backend is OVRTX (GPU).
Kit is available with `--backend kit`.

## Quick start

```bash
pip install simready-thumbnail
simready-thumbnail "path/to/asset.usd"
simready-thumbnail "path/to/asset.usd" --background all
simready-thumbnail "path/to/asset.usd" --fill 80
simready-thumbnail "path/to/asset.usd" --layout manifest
simready-thumbnail "path/to/asset.usd" --backend kit --kit-exe /path/to/kit.exe
```

<!-- AUTOREMOVE: BEGIN -->
> `simready-thumbnail` is published to the internal artifactory only, so append
> `--extra-index-url https://artifactory.nvidia.com/artifactory/api/pypi/ct-omniverse-pypi-local/simple/`.
<!-- AUTOREMOVE: END -->

Default layout is `packaging`. Use `--layout manifest` for Explorer names.
`--background` defaults to dark; `all` writes dark, light, and transparent.
`--fill` is 1–90 (default 90). `--width` and `--height` default to 256.
`simready-thumbnail asset.usd --width 1024 --height 1024` writes a 1024×1024 PNG
and, for `packaging`, also writes `.thumbs/256x256/` when that file is missing.
A size under 300 logs `[omni.rtx] DLSS increasing input dimensions: Render resolution of (256, 256) is below minimal input resolution of 300`. RTX raises its internal buffer to 300; the PNG is still the size you asked for.

Output (next to the USD):

- `packaging`: `.thumbs/{width}x{height}/{usd_filename}.png` (dark; default folder
  `256x256`); `{usd_filename}_{light|transparent}.png` beside it
- `manifest`: `.thumbs/{stem}_thumbnail.png` (dark);
  `{stem}_thumbnail_{light|transparent}.png` for the other backgrounds

Existing thumbnails are skipped (CLI exits 0). `--overwrite` renders them again.

`--kit-exe` must be `kit.exe`, not `workspace.bat` / `workspace.sh`.

Asset lights are ignored; lighting always comes from the setup layer.

Optional `--usd-setup PATH` replaces the packaged lighting/camera layer
(`defaultPrim` must be `ThumbnailSetup`). Copy the whole `data/` directory if
you customize it; the dark dome references `thumbnail_env_gradient.png`.

The wheel needs `usd-core`, `numpy`, `pillow`, `ovrtx>=0.4,<0.5`, and `ovstage`
(NVIDIA PyPI for `ovrtx` / `ovstage`). First OVRTX run can take minutes while
shaders compile; later runs reuse `ovrtx/bin/cache`. A capture still running
after 15 minutes exits `-5` instead of hanging.

## Common issues

| Issue | Fix |
|------|-----|
| `simready-thumbnail` not found | Activate the venv; reinstall the wheel |
| Exit `-2` | Missing `kit.exe` |
| Exit `-5` after a long wait | The capture ran longer than 15 minutes, including a cold shader compile |
| Exit `-7` | OVRTX harness path is not a file |
| `No command provided. Usage: workspace <command>` | Pass `kit.exe`, not the launcher |
| Missing `ovrtx` / `ovstage` / `pxr` | Reinstall the wheel (NVIDIA PyPI if needed) |
| Asset looks unlit | Asset lights are off; use the packaged setup or `--usd-setup` |
| `[omni.rtx] DLSS increasing input dimensions` | Width or height is under 300 (the default 256). The PNG is still that size. Use 300 or larger to silence it. |
