Run Pre Render MEL or Post Render MEL scripts
 
 
 
Important

When you render a scene from within Maya, make sure you do not specify a MEL command or script that includes delete operations or you may accidently delete objects in your scene.

To run a MEL command or script before or after rendering

  1. In the Render Options section of the Render Settings window:
    • Enter a MEL command or execute a script to run before rendering each frame in the Pre Render MEL attribute box.
    • Enter a MEL command or execute a script to run after rendering each frame in the Post Render MEL attribute box.