Pre Render MEL and Post Render MEL scripts


In some situations, you may want Maya to run a specific MEL command or script before rendering each frame, and another MEL command or script after rendering. For instance, if your scene contains a very large complex surface, which you do not want to work on, you could run a MEL command before rendering to display the surface (so it renders), and run another MEL command after rendering to hide the surface.

To run Pre Render MEL scripts or Post Render MEL scripts, see Run Pre Render MEL or Post Render MEL scripts.

NoteIf you need to use multiple sets of quotations in the preframe MEL or post frame MEL fields in Render Settings window, be sure to use \" for every quotation mark except the first and last. For example,

print("Time to render my Maya scene, called\"bingo.mb"\");

Pre and post render layer MEL scripts for render target rendering

Pre and post render layer scripts are called only during 3D rendering, and are not called during render target rendering. See Pre and post render Layer MEL scripts for more information.

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License