mirror of
https://github.com/lighttransport/tinyusdz.git
synced 2026-01-18 01:11:17 +01:00
9 lines
247 B
Python
9 lines
247 B
Python
from tinyusdz import Usd, UsdGeom, Sdf
|
|
|
|
stage = Usd.Stage.CreateNew('hello.usda')
|
|
UsdGeom.SetStageUpAxis(stage, UsdGeom.Tokens.y)
|
|
|
|
xformPrim = UsdGeom.Xform.Define(stage, '/hello')
|
|
attr = xformPrim.CreateAttribute("test", Sdf.ValueTypeNames.Int)
|
|
|