Skip to content

save_all_renderlayers_And_passes.py

Tlousky edited this page May 17, 2013 · 6 revisions

Save all Renderlayers and Passes

Author: Tamir Lousky

Version: 0.02

Video Instructions on using this addon

Version 0.02 updates

  1. updated script to accommodate API changes in Blender 2.67, but still support older versions.
  2. Fixed bug with creating file outputs for environment render passes (Thanks for reporting it Harry Haran!).

Purpose

The purpose of this script is to make it easy for anyone to render out all the render passes on all render layers into files, to composite in any program they would like to use (e.g. GIMP / Photoshop / Nuke / AE).

One of the concept / texture artists I work with asked for a quick way to do this, as he repeatedly had to save to individual images manually through the image editor, or to manually create and connect the renderlayer node's pass outputs into file output node/s, a repetitive time consuming task.

Description

To automate this task, this script creates file output nodes for each render pass in each render layer, in the node editor.

File output nodes can actually have more than one file socket, so in theory you don't need more than one file output node to render out all the files you want. But due to a bug in the python API (which Brecht Van Lommel already fixed and committed to the SVN repo) I opted to create a single file output node for each render pass, so that the addon would work in previous versions of Blender as well.

The addon will also create one composite node, just to make sure that you can render your scene at all (in case you deleted all your compositing nodes before running the script).

Usage

To use the addon:

  1. Install from the python file ( User Preferences --> Addons --> Install from file )
  2. Open the node editor, choose to view the compositing nodes, and check "Use Nodes".
  3. Open the tools menu ( Shortcut key: T )
  4. Choose a folder to save out your rendered images, through the Options Panel --> Render --> Output.
  5. Click on the "Create File Nodes" button.
  6. Render your scene.
  7. Open your output folder and enjoy!

Instructions