For pymel you can use the tools provided with it.
Maya2012\Python\lib\site-packages\pymel\tools\scriptEditor

Put the pymelScrollFieldReporter into the plugins dir

Replace the original scriptEditorPanel.mel file inside:
Maya2012\scripts\startup
with the one from the pymel tools folder

you need to change a few lines though in the py file to make it work with
maya 2011 and 2012:
add:
from pymel.tools.mel2py import melparse

change :
mparser = mel2py.MelParser()
to:
mparser = melparse.MelParser()

As for maya python itself there should be a simmilar way but i have not
looked into it.
Note though that using the pymel script editor panel slows down your code
quite a lot especially when printing.
and some features are disabled in the script editor!!!


2011/10/21 Sahak Sahakian <[email protected]>

> Hi guys.
>
> How wold one go about making ScriptEditor spit back its history in Python?
>
> cheers
>
>
> --
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings:
> http://groups.google.com/group/python_inside_maya/subscribe
>

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to