splinecraft
10/26/2017 - 10:52 PM

reset a maya editor window

reset offscreen windows after monitor change

import pymel.core as pm

open_windows = pm.lsUI(windows=True)
print open_windows

for window in open_windows:
    if window.name() == 'AdvancedSkeletonWindow':
        pm.deleteUI(window)
        pm.windowPref(window, remove=True)