Go to: Synopsis. Return value. Keywords. Flags. Python examples.
mayaHasRenderSetup([enableCurrentSession=boolean], [enableDuringTests=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
mayaHasRenderSetup is NOT undoable, queryable, and editable.
This command controls and queries render setup states.None
In query mode, return type is based on queried flag.
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
enableCurrentSession(ecs)
|
boolean
|
|||
|
||||
enableDuringTests(edt)
|
boolean
|
|||
|
Flag can appear in Create mode of command | Flag can appear in Edit mode of command |
Flag can appear in Query mode of command | Flag can have multiple arguments, passed either as a tuple or a list. |
import maya.cmds as cmds #Returns whether render setup mode is enabled or disabled cmds.mayaHasRenderSetup() #Query the state renderSetupEnableDuringTests cmds.mayaHasRenderSetup(query = True, enableCurrentSession = True) #Query the state renderSetupEnableDuringTests cmds.mayaHasRenderSetup(query = True, enableDuringTests = True) #Enable renderSetupEnableCurrentSession cmds.mayaHasRenderSetup(edit = True, enableCurrentSession = True) #Disable renderSetupEnableCurrentSession cmds.mayaHasRenderSetup(edit = True, enableCurrentSession = False) #Enable enableDuringTests cmds.mayaHasRenderSetup(edit = True, enableDuringTests = True) #Disable enableDuringTests cmds.mayaHasRenderSetup(edit = True, enableDuringTests = False)