NVIDIA NCP-OUSD Question Answer
Review the following code for creating 1000 sphere instances. When this code is executed, why will the authored prims not yield any instancing efficiencies?
for i in range(1000):
xform = UsdGeom.Xform.Define(stage, f"/test_{i}")
sphere_path = xform.GetPath().AppendPath("sphere")
UsdGeom.Sphere.Define(stage, sphere_path)
xform.GetPrim().SetInstanceable(True)
xform.AddTranslateOp().Set((i * 2, 0, 0))
NVIDIA NCP-OUSD Summary
- Vendor: NVIDIA
- Product: NCP-OUSD
- Update on: May 10, 2026
- Questions: 70

