Ejemplo n.º 1
0
    def test_invalidModel(self):
        invalidModel = UsdQt.LayerBaseModel()
        self.assertEqual(invalidModel.rowCount(), 0)
        with self.assertRaises(Exception):
            invalidModel.data(invalidModel.createIndex(0, 0))

        with self.assertRaises(Exception):
            invalidModel.GetLayerFromIndex(self.createIndex(0, 0))
Ejemplo n.º 2
0
    def setUp(self):

        self.stage = Usd.Stage.Open(stageFilePath)
        assert (self.stage)

        self.model = UsdQt.LayerBaseModel(self.stage)