Import and export your render setup

Create and export a master setup and import and reuse it to build shots from a sequence. Export your render setup (render layers, collections and overrides) in the .json file format. Import this setup into another scene and choose among several merge options.

Export a .json template from a sequence setup and apply this template to other shots to avoid setting up each shot individually.

You can also add notes when you export, and these notes are displayed when you import your .json file. For advanced users, you can also optionally edit your .json file in any editor and the changes are reflected upon import. The advantage to exporting via .json is that .json files are easy to read and generate via script.

You can export your complete render setup, or a subset of its contents; for example, only a collection or an override. See Import and export a subset of your render setup.

Note:

Overridden attributes set as expressions, or set as keys on an animation curve, cannot be exported with your render setup.

Your scene content is not exported as part of the .json file, only your render setup (layers, collections, overrides).

Export your complete render setup

Select File > Export All in the Render Setup editor to export your render setup in the .json file format.

You can also add comments to the Notes field; for example, details regarding what was last changed, or a description of the render setup. Notes are persistent in the scene, and saved with your .json file.

Global templates and user templates

A template is a .json file that represents the entirety (all of your render setup nodes) or a subset of your render setup; for example, a subset of collections, or a render layer and its collections. You can export a template and import it into another scene so that you don't have to re-create your render setup.

You can save templates to a globally accessible network location so that they can be shared among users, or to a local folder that only you will access. See Location of template files below.

When importing, global templates and user templates are listed via separate right-click menus. You can create sub-folders inside a template directory, and these subfolders appear as submenus in the right-click menus. In addition, you can mouse over the listed templates, and the notes that are saved with each .json file appear as a tooltip.

Import a render setup into your scene

Select File > Import All from the Render Setup editor to navigate to the .json file that you want to import, and select from these import options:

Note: The Import All option can only be used to import a complete render setup. To import a .json you exported via the Export Selected right-click menu (for example, a .json that contains only a collection or an override), you must import a template. See Import and export a subset of your render setup.
Overwrite
Completely overwrite the existing render setup with the imported render setup. All of your current render setup contents are replaced with the imported ones.
Merge
Merge the existing render setup content with the imported content if the nodes are identical (that is, they have the same name). Content that does not exist in the current render setup are imported without modification.
Rename
Content that exists in the current render setup is not modified, and all render setup content in the .json file is imported and renamed with a prefix. Enter in the Append Text field the prefix that you want to add to these imported nodes.

Comments that were entered in the Notes field when exporting, or that were added to the notes dynamic attribute of the renderSetup node, are displayed in the Notes field in the Import window. See Append additional notes below for more details.

A Preview window displays the contents of the .json file that you are about to import.

Note: After importing a render setup, a red border may appear around the layer visibility icon ; click this to refresh your layer and see the updated result.

Append additional notes

Notes contents can be multi-line, and are saved in the notes dynamic attribute of the renderSetup node.

You can enter select renderSetup in the command line to select the renderSetup node, then append additional notes in the Notes field at the bottom of the Attribute Editor.

If notes exist on the renderSetup node when you export a file; for example, if you imported a .json file that includes notes, or if you appended notes to the renderSetup node, its contents are displayed in the Notes field in the Export window.

Location of template files

You can set the location for your global templates by setting the environment variable MAYA_RENDER_SETUP_GLOBAL_TEMPLATE_PATH. Upon startup, Maya automatically searches for global templates in this folder. You can modify this path via the Preferences window. This way, you do not need to restart Maya to modify this path.

Note:

Setting your global template path to a remote server that is slow to access may cause a slowdown when loading the import template menus (both via or via the layer/collection right-click menus ).

It is advisable to store your global templates to a local server instead.

Set the location for global and user templates in the Preferences window (Windows > Settings/Preferences > Preferences), Rendering section, Render Setup Preferences sub-section.

You can also set your template location using the following option variables:

To query either of these directories, do as follows:

optionVar -q "renderSetup_userTemplateDirectory";

To change the directory, replace the value of the option variable as follows:

optionVar -sv "renderSetup_userTemplateDirectory" "C:\myTemplates";

Maya automatically searches for available templates in these directories.