0

Recently I installed VSCode and added usd-core for usd python library (in a virtual env).

I followed this tutorial to make a simple usda file

from pxr import Usd, UsdGeom

print("Hello world")
stage = Usd.Stage.CreateNew('HelloWorld.usda')

print("This message won't print")
xformPrim = UsdGeom.Xform.Define(stage, '/hello')
spherePrim = UsdGeom.Sphere.Define(stage, '/hello/world')
stage.GetRootLayer().Save()

print("Neither this one")
user > python myProgram.py
Hello world
user >

But after this line "Usd.Stage.CreateNew('HelloWorld.usda')" nothing seems to print, and also It does't show any error message or warning, it simply stop. How can I run this program ?

huangkaiyi
  • 73
  • 2
  • 9

0 Answers0