Render Presets

This script creates a some VRay render presets that I normally use and saves them in your preferences.

To Run: Just run the script. The presets will be saved in your Maya presets folder. To load a preset just go to your Render Settings Window> Presets> Load Presets and they should all be listed there.

#Vray Render Presets for Maya version 1.0.0
#Should work with up to Vray 2.4 haven't gotten access to a later version to test
#Bryanna London www.bryannalondon.com
#!/usr/bin/env python

#Sets some render presets and all you have to do is run the script.
#Then go to Render Settings>Presets>Load Presets and they should all be saved there.

import maya.cmds as cmds

def preset720Low():

    #Vray Common Tab
    #Image File Output
    cmds.setAttr('vraySettings.imageFormatStr' , "exr (multichannel)", type = "string")
    cmds.setAttr('vraySettings.dontSaveImage', 1)
    #Resolution
    cmds.setAttr('vraySettings.width', 1280)
    cmds.setAttr('vraySettings.height', 720)
    cmds.setAttr('vraySettings.aspectRatio', 1.777)
    cmds.setAttr('vraySettings.sRGBOn', 1)
    cmds.setAttr('vraySettings.vfbOn', 1)
    #Vray Tab
    #Antialiasing Filter
    cmds.setAttr('vraySettings.aaFilterType', 6)
    #Adaptive DMC
    cmds.setAttr('vraySettings.dmcMinSubdivs' , 1)
    cmds.setAttr('vraySettings.dmcMaxSubdivs', 10)
    cmds.setAttr('vraySettings.dmcThreshold', .1)
    #Color Mapping
    cmds.setAttr('vraySettings.cmap_gamma' , 2.2)
    cmds.setAttr('vraySettings.cmap_subpixelMapping' , 0)
    cmds.setAttr('vraySettings.cmap_adaptationOnly', 1)
    cmds.setAttr('vraySettings.cmap_clampOutput' , 1)
    cmds.setAttr('vraySettings.cmap_clampLevel' , 3)
    #GI Tab
    cmds.setAttr('vraySettings.giOn' , 1)
    cmds.setAttr('vraySettings.primaryEngine' , 2)
    cmds.setAttr('vraySettings.secondaryEngine' , 0)
    #Settings Tab
    cmds.setAttr('vraySettings.dmcs_timeDependent', 1)
    #Save settings as Render Preset
    cmds.nodePreset(save = ("defaultRenderGlobals" , "Low_720"))
    cmds.nodePreset(save = ("vraySettings" , "Low_720"))

preset720Low()

def preset720medium():

    #Vray Common Tab
    #Image File Output
    cmds.setAttr('vraySettings.imageFormatStr' , "exr (multichannel)", type = "string")
    cmds.setAttr('vraySettings.dontSaveImage', 1)
    #Resolution
    cmds.setAttr('vraySettings.width', 1280)
    cmds.setAttr('vraySettings.height', 720)
    cmds.setAttr('vraySettings.aspectRatio', 1.777)
    cmds.setAttr('vraySettings.sRGBOn', 1)
    cmds.setAttr('vraySettings.vfbOn', 1)
    #Vray Tab
    #Antialiasing Filter
    cmds.setAttr('vraySettings.aaFilterType', 6)
    #Adaptive DMC
    cmds.setAttr('vraySettings.dmcMinSubdivs' , 1)
    cmds.setAttr('vraySettings.dmcMaxSubdivs', 10)
    cmds.setAttr('vraySettings.dmcThreshold', .01)
    #Color Mapping
    cmds.setAttr('vraySettings.cmap_gamma' , 2.2)
    cmds.setAttr('vraySettings.cmap_subpixelMapping' , 0)
    cmds.setAttr('vraySettings.cmap_adaptationOnly', 1)
    cmds.setAttr('vraySettings.cmap_clampOutput' , 1)
    cmds.setAttr('vraySettings.cmap_clampLevel' , 3)
    #GI Tab
    cmds.setAttr('vraySettings.giOn' , 1)
    cmds.setAttr('vraySettings.primaryEngine' , 2)
    cmds.setAttr('vraySettings.secondaryEngine' , 0)
    #Settings Tab
    cmds.setAttr('vraySettings.dmcs_timeDependent', 1)
    #Save settings as Render Preset
    cmds.nodePreset(save = ("defaultRenderGlobals" , "Medium_720"))
    cmds.nodePreset(save = ("vraySettings" , "Medium_720"))

preset720medium()

def preset720high():

    #Vray Common Tab
    #Image File Output
    cmds.setAttr('vraySettings.imageFormatStr' , "exr (multichannel)", type = "string")
    cmds.setAttr('vraySettings.dontSaveImage', 1)
    #Resolution
    cmds.setAttr('vraySettings.width', 1280)
    cmds.setAttr('vraySettings.height', 720)
    cmds.setAttr('vraySettings.aspectRatio', 1.777)

    cmds.setAttr('vraySettings.sRGBOn', 1)
    cmds.setAttr('vraySettings.vfbOn', 1)
    #Vray Tab
    #Antialiasing Filter
    cmds.setAttr('vraySettings.aaFilterType', 6)
    #Adaptive DMC
    cmds.setAttr('vraySettings.dmcMinSubdivs' , 2)
    cmds.setAttr('vraySettings.dmcMaxSubdivs', 15)
    cmds.setAttr('vraySettings.dmcThreshold', .008)
    #Color Mapping
    cmds.setAttr('vraySettings.cmap_gamma' , 2.2)
    cmds.setAttr('vraySettings.cmap_subpixelMapping' , 0)
    cmds.setAttr('vraySettings.cmap_adaptationOnly', 1)
    cmds.setAttr('vraySettings.cmap_clampOutput' , 1)
    cmds.setAttr('vraySettings.cmap_clampLevel' , 3)
    #GI Tab
    cmds.setAttr('vraySettings.giOn' , 1)
    cmds.setAttr('vraySettings.primaryEngine' , 2)
    cmds.setAttr('vraySettings.secondaryEngine' , 0)
    #Settings Tab
    cmds.setAttr('vraySettings.dmcs_timeDependent', 1)
    #Save settings as Render Preset
    cmds.nodePreset(save = ("defaultRenderGlobals" , "High_720"))
    cmds.nodePreset(save = ("vraySettings" , "High_720"))

preset720high()

def preset720crazyHigh():

    #Vray Common Tab
    #Image File Output
    cmds.setAttr('vraySettings.imageFormatStr' , "exr (multichannel)", type = "string")
    cmds.setAttr('vraySettings.dontSaveImage', 1)
    #Resolution
    cmds.setAttr('vraySettings.width', 1280)
    cmds.setAttr('vraySettings.height', 720)
    cmds.setAttr('vraySettings.aspectRatio', 1.777)
    cmds.setAttr('vraySettings.sRGBOn', 1)
    cmds.setAttr('vraySettings.vfbOn', 1)
    #Vray Tab
    #Antialiasing Filter
    cmds.setAttr('vraySettings.aaFilterType', 6)
    #Adaptive DMC
    cmds.setAttr('vraySettings.dmcMinSubdivs' , 2)
    cmds.setAttr('vraySettings.dmcMaxSubdivs', 30)
    cmds.setAttr('vraySettings.dmcThreshold', .008)
    #Color Mapping
    cmds.setAttr('vraySettings.cmap_gamma' , 2.2)
    cmds.setAttr('vraySettings.cmap_subpixelMapping' , 0)
    cmds.setAttr('vraySettings.cmap_adaptationOnly', 1)
    cmds.setAttr('vraySettings.cmap_clampOutput' , 1)
    cmds.setAttr('vraySettings.cmap_clampLevel' , 3)
    #GI Tab
    cmds.setAttr('vraySettings.giOn' , 1)
    cmds.setAttr('vraySettings.primaryEngine' , 2)
    cmds.setAttr('vraySettings.secondaryEngine' , 0)
    #Settings Tab
    cmds.setAttr('vraySettings.dmcs_timeDependent', 1)
    #Save settings as Render Preset
    cmds.nodePreset(save = ("defaultRenderGlobals" , "Crazy_High_720"))
    cmds.nodePreset(save = ("vraySettings" , "Crazy_High_720"))

preset720crazyHigh()

def presetHDlow():

    #Vray Common Tab
    #Image File Output
    cmds.setAttr('vraySettings.imageFormatStr' , "exr (multichannel)", type = "string")
    cmds.setAttr('vraySettings.dontSaveImage', 1)
    #Resolution
    cmds.setAttr('vraySettings.width', 1920)
    cmds.setAttr('vraySettings.height', 1080)
    cmds.setAttr('vraySettings.aspectRatio', 1.777)
    cmds.setAttr('vraySettings.sRGBOn', 1)
    cmds.setAttr('vraySettings.vfbOn', 1)
    #Vray Tab
    #Antialiasing Filter
    cmds.setAttr('vraySettings.aaFilterType', 6)
    #Adaptive DMC
    cmds.setAttr('vraySettings.dmcMinSubdivs' , 1)
    cmds.setAttr('vraySettings.dmcMaxSubdivs', 10)
    cmds.setAttr('vraySettings.dmcThreshold', .1)
    #Color Mapping
    cmds.setAttr('vraySettings.cmap_gamma' , 2.2)
    cmds.setAttr('vraySettings.cmap_subpixelMapping' , 0)
    cmds.setAttr('vraySettings.cmap_adaptationOnly', 1)
    cmds.setAttr('vraySettings.cmap_clampOutput' , 1)
    cmds.setAttr('vraySettings.cmap_clampLevel' , 3)
    #GI Tab
    cmds.setAttr('vraySettings.giOn' , 1)
    cmds.setAttr('vraySettings.primaryEngine' , 2)
    cmds.setAttr('vraySettings.secondaryEngine' , 0)
    #Settings Tab
    cmds.setAttr('vraySettings.dmcs_timeDependent', 1)
    #Save settings as Render Preset
    cmds.nodePreset(save = ("defaultRenderGlobals" , "HD_Low"))
    cmds.nodePreset(save = ("vraySettings" , "HD_Low"))

presetHDlow()

def presetHDmedium():

    #Vray Common Tab
    #Image File Output
    cmds.setAttr('vraySettings.imageFormatStr' , "exr (multichannel)", type = "string")
    cmds.setAttr('vraySettings.dontSaveImage', 1)
    #Resolution
    cmds.setAttr('vraySettings.width', 1920)
    cmds.setAttr('vraySettings.height', 1080)
    cmds.setAttr('vraySettings.aspectRatio', 1.777)
    cmds.setAttr('vraySettings.sRGBOn', 1)
    cmds.setAttr('vraySettings.vfbOn', 1)
    #Vray Tab
    #Antialiasing Filter
    cmds.setAttr('vraySettings.aaFilterType', 6)
    #Adaptive DMC
    cmds.setAttr('vraySettings.dmcMinSubdivs' , 1)
    cmds.setAttr('vraySettings.dmcMaxSubdivs', 10)
    cmds.setAttr('vraySettings.dmcThreshold', .01)
    #Color Mapping
    cmds.setAttr('vraySettings.cmap_gamma' , 2.2)
    cmds.setAttr('vraySettings.cmap_subpixelMapping' , 0)
    cmds.setAttr('vraySettings.cmap_adaptationOnly', 1)
    cmds.setAttr('vraySettings.cmap_clampOutput' , 1)
    cmds.setAttr('vraySettings.cmap_clampLevel' , 3)
    #GI Tab
    cmds.setAttr('vraySettings.giOn' , 1)
    cmds.setAttr('vraySettings.primaryEngine' , 2)
    cmds.setAttr('vraySettings.secondaryEngine' , 0)
    #Settings Tab
    cmds.setAttr('vraySettings.dmcs_timeDependent', 1)
    #Save settings as Render Preset
    cmds.nodePreset(save = ("defaultRenderGlobals" , "HD_Medium"))
    cmds.nodePreset(save = ("vraySettings", "HD_Medium"))

presetHDmedium()

def presetHDhigh():

    #Vray Common Tab
    #Image File Output
    cmds.setAttr('vraySettings.imageFormatStr' , "exr (multichannel)", type = "string")
    cmds.setAttr('vraySettings.dontSaveImage', 1)
    #Resolution
    cmds.setAttr('vraySettings.width', 1920)
    cmds.setAttr('vraySettings.height', 1080)
    cmds.setAttr('vraySettings.aspectRatio', 1.777)
    cmds.setAttr('vraySettings.sRGBOn', 1)
    cmds.setAttr('vraySettings.vfbOn', 1)
    #Vray Tab
    #Antialiasing Filter
    cmds.setAttr('vraySettings.aaFilterType', 6)
    #Adaptive DMC
    cmds.setAttr('vraySettings.dmcMinSubdivs' , 2)
    cmds.setAttr('vraySettings.dmcMaxSubdivs', 15)
    cmds.setAttr('vraySettings.dmcThreshold', .008)
    #Color Mapping
    cmds.setAttr('vraySettings.cmap_gamma' , 2.2)
    cmds.setAttr('vraySettings.cmap_subpixelMapping' , 0)
    cmds.setAttr('vraySettings.cmap_adaptationOnly', 1)
    cmds.setAttr('vraySettings.cmap_clampOutput' , 1)
    cmds.setAttr('vraySettings.cmap_clampLevel' , 3)
    #GI Tab
    cmds.setAttr('vraySettings.giOn' , 1)
    cmds.setAttr('vraySettings.primaryEngine' , 2)
    cmds.setAttr('vraySettings.secondaryEngine' , 0)
    #Settings Tab
    cmds.setAttr('vraySettings.dmcs_timeDependent', 1)
    #Save settings as Render Preset
    cmds.nodePreset(save = ("defaultRenderGlobals" , "HD_High"))
    cmds.nodePreset(save = ("vraySettings" , "HD_High"))

presetHDhigh()

def presetHDcrazyHigh():

    #Vray Common Tab
    #Image File Output
    cmds.setAttr('vraySettings.imageFormatStr' , "exr (multichannel)", type = "string")
    cmds.setAttr('vraySettings.dontSaveImage', 1)
    #Resolution
    cmds.setAttr('vraySettings.width', 1920)
    cmds.setAttr('vraySettings.height', 1080)
    cmds.setAttr('vraySettings.aspectRatio', 1.777)
    cmds.setAttr('vraySettings.sRGBOn', 1)
    cmds.setAttr('vraySettings.vfbOn', 1)
    #Vray Tab
    #Antialiasing Filter
    cmds.setAttr('vraySettings.aaFilterType', 6)
    #Adaptive DMC
    cmds.setAttr('vraySettings.dmcMinSubdivs' , 2)
    cmds.setAttr('vraySettings.dmcMaxSubdivs', 30)
    cmds.setAttr('vraySettings.dmcThreshold', .008)
    #Color Mapping
    cmds.setAttr('vraySettings.cmap_gamma' , 2.2)
    cmds.setAttr('vraySettings.cmap_subpixelMapping' , 0)
    cmds.setAttr('vraySettings.cmap_adaptationOnly', 1)
    cmds.setAttr('vraySettings.cmap_clampOutput' , 1)
    cmds.setAttr('vraySettings.cmap_clampLevel' , 3)
    #GI Tab
    cmds.setAttr('vraySettings.giOn' , 1)
    cmds.setAttr('vraySettings.primaryEngine' , 2)
    cmds.setAttr('vraySettings.secondaryEngine' , 0)
    #Settings Tab
    cmds.setAttr('vraySettings.dmcs_timeDependent', 1)
    #Save settings as Render Preset
    cmds.nodePreset(save = ("defaultRenderGlobals" , "HD_Crazy_High"))
    cmds.nodePreset(save = ("vraySettings" , "HD_Crazy_High"))

presetHDcrazyHigh()

© 2016 Bryanna London

Advertisements