eeds_fixing = False
try:
expression_str = cmds.getAttr('uiConfigurationScriptNode.before')
fixed_expression_lines = []
for line in expression_str.split('\n'):
if '-editorChanged "onModelChange3dc"' in line:
needs_fixing = True
continue
fixed_expression_lines.append(line)
fixed_expression = '\n'.join(fixed_expression_lines)
if needs_fixing:
cmds.setAttr('uiConfigurationScriptNode.before', fixed_expression, type='string')
except:
pass
import pymel.core as pm
from maya import mel
def run():
for item in pm.lsUI(editors=True):
if isinstance(item, pm.ui.ModelEditor):
pm.modelEditor(item, edit=True, editorChanged="")
for modelPanel in pm.getPanel(type="modelPanel"):
if pm.modelEditor(modelPanel, q=1, ec=1) == "CgAbBlastPanelOptChangeCallback":
pm.modelEditor(modelPanel, e=1, ec="")
mel.eval('outlinerEditor -edit -selectCommand "" "outlinerPanel1";')