Go to: Synopsis. Return value. Keywords. Flags. Python examples.

Synopsis

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.

Return value

None

In query mode, return type is based on queried flag.

Keywords

render, setup

Flags

enableCurrentSession, enableDuringTests
Long name (short name) Argument types Properties
enableCurrentSession(ecs) boolean queryedit
Enables or disables render setup for this Maya session only. This flag should only be called during Maya intialization. This flag is for internal use only, may change at any time and is unsupported.
enableDuringTests(edt) boolean queryedit
Switches render setup for this Maya session only, as legacy render layer mode is assumed during testing. This flag is for internal use only, may change at any time and is unsupported.

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.

Python examples

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)