Documents

【レポート】パイプライン開発者が知っておきたいUSDの使い方#CEDEC2021 #classmethod_game | DevelopersIO

USD Tutorials — Universal Scene Description 23.11 documentation

Working with USD Python Libraries

USDPythonチュートリアル | Reincarnation+#Tech

Examples

Hellow World - https://openusd.org/release/tut_helloworld.html

from pxr import Usd, UsdGeom

stage = Usd.Stage.CreateNew('HelloWorld.usda')
xformPrim = UsdGeom.Xform.Define(stage, '/hello')
spherePrim = UsdGeom.Sphere.Define(stage, '/hello/world')
stage.GetRootLayer().Save()

USD View コマンド

$ usdview HelloWorld.usda

>>> usdviewApi.prim
Usd.Prim(</hello/world>)

>>> usdviewApi.prim.GetTypeName()
'Sphere'

>>> usdviewApi.prim.GetAttribute('radius').Get()
1.0