@classmethod
    def get_active_panel(cls):
        active_panel = None
        panel_list = pm.getPanel(type='modelPanel')
        for panel in panel_list:
            if pm.modelEditor(panel, q=1, av=1):
                active_panel = panel
                break

        return active_panel
returns the active model panel
dataset/ETHPy150Open eoyilmaz/anima/anima/env/mayaEnv/auxiliary.py/Playblaster.get_active_panel