#!/pxrpythonsubst # # Copyright 2016 Pixar # # Licensed under the terms set forth in the LICENSE.txt file available at # https://openusd.org/license. # 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()