Yup, that did it for me. Thanks for the help! This is an awesome way
to just do the full conversion to python mentally for me.

On Oct 21, 10:31 am, "Jan: " <[email protected]> wrote:
> oh sorry forgot to mention one thing.
> in the script editor goto:
> History -> HistoryOutput -> Convert mel to Python.
>
> That should do the trick.
>
> 2011/10/21 Eric Nersesian <[email protected]>
>
>
>
>
>
>
>
> > Hi Jan,
>
> > I followed your instructions but my script editor is still spitting
> > out MEL. I made sure that pymelScrollFieldReporter.py is both loaded
> > and auto loaded in Maya's Plug-in Manager but its still showing MEL.
> > When I start up Maya these warnings are shown in the Output Window:
>
> > WARNING: No t_error rule is defined
> > WARNING: Token 'COMMENT_BLOCK' defined, but not used
> > WARNING: Token 'COMMENT' defined, but not used
> > WARNING: There are 2 unused tokens
> > WARNING: no p_error() function is defined
> > WARNING: Symbol 'element_list' is unreachable
>
> > Also, let me walk you through what I did to see if I followed your
> > instructions correctly:
>
> > 1. Copy Maya2012\Python\lib\site-packages\pymel\tools\scriptEditor
> > \pymelScrollFieldReporter.py to Maya2012\bin\plug-ins
>
> > 2. Replace Maya2012\scripts\startup\scriptEditorPanel.mel with
> > Maya2012\Python\lib\site-packages\pymel\tools\scriptEditor
> > \scriptEditorPanel.mel
>
> > 3. Within Maya2012\bin\plug-ins\pymelScrollFieldReporter.py:
> >        add: from pymel.tools.mel2py import melparse
> >       change: mparser = mel2py.MelParser() to mparser =
> > melparse.MelParser()
>
> > Thanks for any help you can provide,
> > Eric
>
> > On Oct 21, 8:00 am, "Jan: " <[email protected]> wrote:
> > > 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

-- 
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