def set_view_options(self):
        """set view options for playblast
        """
        active_panel = self.get_active_panel()
        # turn all show/hide display options off except for polygons and
        # surfaces
        pm.modelEditor(active_panel, e=1, allObjects=False)
        pm.modelEditor(active_panel, e=1, manipulators=False)
        pm.modelEditor(active_panel, e=1, grid=False)

        pm.modelEditor(active_panel, e=1, polymeshes=True)
        pm.modelEditor(active_panel, e=1, nurbsSurfaces=True)
        pm.modelEditor(active_panel, e=1, subdivSurfaces=True)
        pm.modelEditor(active_panel, e=1,
                       pluginObjects=('gpuCacheDisplayFilter', True))
        pm.modelEditor(active_panel, e=1, dynamics=True)
        pm.modelEditor(active_panel, e=1, nParticles=True)
        pm.modelEditor(active_panel, e=1, nCloths=True)
        pm.modelEditor(active_panel, e=1, fluids=True)
        pm.modelEditor(active_panel, e=1, nParticles=True)
        pm.modelEditor(active_panel, e=1, planes=True)
        pm.modelEditor(active_panel, e=1, imagePlane=True)

        # turn all hud displays off
        hud_flags = pm.headsUpDisplay(lh=1)
        for flag in hud_flags:
            pm.headsUpDisplay(flag, e=1, vis=0)

        # set camera options for playblast
        for camera in pm.ls(type='camera'):
            try:
                camera.setAttr('overscan', 1)
            except __HOLE__:
                pass

            try:
                camera.setAttr('filmFit', 1)
            except RuntimeError:
                pass

            try:
                camera.setAttr('displayFilmGate', 1)
            except RuntimeError:
                pass

            try:
                camera.setAttr('displayResolution', 0)
            except RuntimeError:
                pass
dataset/ETHPy150Open eoyilmaz/anima/anima/env/mayaEnv/auxiliary.py/Playblaster.set_view_options