Is it possible to clear the script editor output without opening the script editor in mel?

Is it possible to clear the script editor output without opening the script editor in mel?

malcolm_341
Collaborator Collaborator
893 Views
2 Replies
Message 1 of 3

Is it possible to clear the script editor output without opening the script editor in mel?

malcolm_341
Collaborator
Collaborator

There is this bug in Maya where the script editor gets too many lines of output and then Maya opens the script editor really slow, I have a script which needs to open the script editor to save it's contents, but because of the Maya bug the script takes forever to run and Maya looks frozen. Is there any way to clear the script editor output through mel without opening it first?

0 Likes
Accepted solutions (1)
894 Views
2 Replies
Replies (2)
Message 2 of 3

Rourker27
Contributor
Contributor
Accepted solution

yup 

MEL:

scriptEditorInfo -ch;

python:

import maya.cmds as cmds
cmds.scriptEditorInfo(ch=True)

pyMel:

import pymel.core as pm
pm.scriptEditorInfo(clearHistory=True)
Message 3 of 3

malcolm_341
Collaborator
Collaborator

Sweet, that works!