def test_disable_component(self):
queue = core.ComponentQueue()
comp = Component(sphere_name='sphere1', enabled=False)
queue.add(comp)
comp = Component(sphere_name='sphere2')
queue.add(comp)
queue.execute()
self.assertFalse(cmds.objExists('sphere1'))
self.assertTrue(cmds.objExists('sphere2'))
评论列表
文章目录