Sunday, August 15, 2010

History Menu

Script Editor > History
Batch Render Messages
  • MEL - Only effects messages detailing batch rendering progress.
Echo All Commands
  • MEL - Displays overly verbose detail for every action Maya takes.  You might think this is beneficial to have on but rarely is this information valuable. This is equivalent to:
cmds.commandEcho(state=1)    #or 0
Line Numbers In Errors
  • MEL & Python (2011) -  Displays the line the error occured. Pre 2011, or when Show Stack Trace is enabled, Python's interpreter outputs this information regardless.
Show Stack Trace
  • MEL & Python (2011) - Creates a separate stack output window for runtime errors.  Pre 2011 Python's interpreter outputs this information regardless.  This is equivalent to:
    stackTrace -state 1    #or 0
    print (12/0)           #try making a runtime error
    • *Manually setting the commandEcho, stackTrace state triggers toggling errors in the UI. 
    Suppress Command Results
    • MEL - Toggles command results.  Will still display //Result in the command line.
    polySphere;
    >>// Result: pSphere3 polySphere3 // 
    Suppress Info Messages
    • Toggles display of info messages, only generated by Maya internals.
    Suppress Warning Messages
    • MEL & Python - Toggles display of purple (yellow 2011) warning messages(commands).  Will still display //Warning in the command line.  [Added to Python library in 2011] 
    warning "You did something wrong.";
    >>// Warning: You did something wrong. // 
      Suppress Error Messages
      • MEL & Python - Toggles display of red error messages(commands).  Will still display //Error in the command line.  [Added to Python library in 2011]
      Suppress Stack Window
      • Toggling this from the menu takes no affect.  However, if Show Stack Trace is on and you manually set suppressStackWindow the stack window is suppressed AND the Suppress Stack Window menu reflects the change.  Querying this field defaults to off, otherwise it is the previously set state regardless of the UI display on startup.
      scriptEditorInfo -suppressStackWindow 1; 
        *Manually setting the stackTrace state triggers toggling errors for selecting Show Stack Trace from the UI.