How to change current renderer in maya by python commands. for example : "maya software" to "mental ray" or vice versa any python or pymel command.?
import pymel.core as pm
import maya.cmds as cmds
How to change current renderer in maya by python commands. for example : "maya software" to "mental ray" or vice versa any python or pymel command.?
import pymel.core as pm
import maya.cmds as cmds
import maya.cmds as cmds
cmds.setAttr("defaultRenderGlobals.currentRenderer", "mentalRay", type="string")
cmds.setAttr("defaultRenderGlobals.currentRenderer", "mayaSoftware", type="string")