def test_translateOnly(self): '''Change the PxrUsdIn's file and verify the dumped result.''' # test.translateOnly.usda is a UsdGeomPointInstancer with positions NodegraphAPI.GetNode('PxrUsdIn').getParameter('fileName').setValue( 'test.translateOnly.usda', 0) CacheManager.flush() testfile = 'test.translateOnly.xml' AttrDump.AttrDump(testfile) self.assertTrue(os.path.exists(testfile)) self.cleanUpTestFile(testfile) self.assertTrue(self.compareAgainstBaseline(testfile))
def test_motion(self): '''Change the PxrUsdIn's file and verify the dumped result.''' # test.motion.usda is a UsdGeomPointInstancer with positions, # orientations, scales, velocities, and angular velocities NodegraphAPI.GetNode('PxrUsdIn').getParameter('fileName').setValue( 'test.motion.usda', 0) CacheManager.flush() testfile = 'test.motion.xml' AttrDump.AttrDump(testfile) self.assertTrue(os.path.exists(testfile)) self.cleanUpTestFile(testfile) self.assertTrue(self.compareAgainstBaseline(testfile))