USDViewer#
- class ansys.tools.usdviewer.viewer.USDViewer(title: str = 'Viewer', size: tuple[int, int] = (750, 750))#
USD Viewer to load and display USD files in a Qt window.
Parameters#
- titlestr, default:
"Viewer" Title of the viewer window.
- sizetuple[int, int], default:
(750, 750) Size of the viewer window in this format:
(width, height).
- titlestr, default:
Overview#
Plot the given USD stage in the viewer window. |
|
Show the USD Viewer window. |
|
Load a USD stage from a given file path. |
|
Load any supported asset (such as USD or VTK) as a USD stage. |
Import detail#
from ansys.tools.usdviewer.viewer import USDViewer
Method detail#
- USDViewer.plot(stage: pxr.Usd.Stage) None#
Plot the given USD stage in the viewer window.
Parameters#
- stageUsd.Stage
USD stage to display.
- USDViewer.show() None#
Show the USD Viewer window.
Displays the USD Viewer window and starts the Qt app event loop.