convert a string representing mel code into a string representing python code
>>> import pymel.tools.mel2py as mel2py
>>> print mel2py.mel2pyStr('paneLayout -e -configuration "top3" test;')
from pymel.all import *
paneLayout('test',configuration="top3",e=1)
<BLANKLINE>
Note that when converting single lines, the lines must end in a semi-colon, otherwise it is technically invalid syntax.
Parameters : |
|
---|