Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@ def testAddWithPurpose(self):
cube_prim = stage.GetPrimAtPath(cube_path)
self.assertTrue(cube_prim.IsValid(), f"{cube_path} should be a valid prim")

purpose_scope_path = Sdf.Path('/root/geo/guide')
purpose_scope = stage.GetPrimAtPath(purpose_scope_path)
self.assertTrue(purpose_scope.IsValid(), f"{purpose_scope_path} should be a valid prim after add_to_component_from_nodes with purpose")
self.assertEqual(purpose_scope.GetTypeName(), "Scope")

purposed_path = Sdf.Path('/root/geo/guide/pCube2')
purposed_prim = stage.GetPrimAtPath(purposed_path)
self.assertTrue(purposed_prim.IsValid(), f"{purposed_path} should be a valid prim after add_to_component_from_nodes with purpose")
Expand Down Expand Up @@ -288,6 +293,11 @@ def testAddWithCustomPurposeScopeName(self):
cube_prim = stage.GetPrimAtPath(cube_path)
self.assertTrue(cube_prim.IsValid(), f"{cube_path} should be a valid prim")

purpose_scope_path = Sdf.Path('/root/geo/gui')
purpose_scope = stage.GetPrimAtPath(purpose_scope_path)
self.assertTrue(purpose_scope.IsValid(), f"{purpose_scope_path} should be a valid prim after add_to_component_from_nodes with purpose")
self.assertEqual(purpose_scope.GetTypeName(), "Scope")

purposed_path = Sdf.Path('/root/geo/gui/pCube2')
purposed_prim = stage.GetPrimAtPath(purposed_path)
self.assertTrue(purposed_prim.IsValid(), f"{purposed_path} should be a valid prim after add_to_component_from_nodes with purpose")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ def testAddWithPurposeCollidingName(self):
cube_prim = stage.GetPrimAtPath(cube_path)
self.assertTrue(cube_prim.IsValid(), f"{cube_path} should be a valid prim")

purpose_scope_path = Sdf.Path('/root/geo/guide')
purpose_scope = stage.GetPrimAtPath(purpose_scope_path)
self.assertTrue(purpose_scope.IsValid(), f"{purpose_scope_path} should be a valid prim after add_to_component_from_usd_prims with purpose")
self.assertEqual(purpose_scope.GetTypeName(), "Scope")

purposed_path = Sdf.Path('/root/geo/guide/pCube1')
purposed_prim = stage.GetPrimAtPath(purposed_path)
self.assertTrue(purposed_prim.IsValid(), f"{purposed_path} should be a valid prim after add_to_component_from_usd_prims with purpose")
Expand Down Expand Up @@ -180,6 +185,11 @@ def testAddWithCustomPurposeScopeName(self):
cube_prim = stage.GetPrimAtPath(cube_path)
self.assertTrue(cube_prim.IsValid(), f"{cube_path} should be a valid prim")

purpose_scope_path = Sdf.Path('/root/geo/gui')
purpose_scope = stage.GetPrimAtPath(purpose_scope_path)
self.assertTrue(purpose_scope.IsValid(), f"{purpose_scope_path} should be a valid prim after add_to_component_from_usd_prims with purpose")
self.assertEqual(purpose_scope.GetTypeName(), "Scope")

purposed_path = Sdf.Path('/root/geo/gui/pCube2')
purposed_prim = stage.GetPrimAtPath(purposed_path)
self.assertTrue(purposed_prim.IsValid(), f"{purposed_path} should be a valid prim after add_to_component_from_usd_prims with purpose")
Expand Down
Loading