def restore_user_options(self):
        """restores user options
        """
        active_panel = self.get_active_panel()
        for flag, value in self.user_view_options['display_flags'].items():
            pm.modelEditor(active_panel, **{'e': 1, flag: value})

        # reassign original hud display options
        for hud, value in self.user_view_options['huds'].items():
            if pm.headsUpDisplay(hud, q=1, ex=1):
                pm.headsUpDisplay(hud, e=1, vis=value)

        # reassign original camera options
        for camera in pm.ls(type='camera'):
            camera_name = camera.name()
            camera_flags = self.user_view_options['camera_flags'][camera_name]
            for attr, value in camera_flags.items():
                try:
                    camera.setAttr(attr, value)
                except __HOLE__:
                    pass

        self.remove_hud(self.hud_name)
dataset/ETHPy150Open eoyilmaz/anima/anima/env/mayaEnv/auxiliary.py/Playblaster.restore_user_options