editRenderLayerAdjustment
Go to: Synopsis. Flags. Return value. Keywords. Related. Python examples.
editRenderLayerAdjustment([attributeLog=boolean], [layer=select], [nodeLog=boolean], [remove=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
editRenderLayerAdjustment is undoable, queryable, and NOT editable.
This command is used to create, edit, and query adjustments to render
layers. An adjustment allows different attribute values or connections
to be used depending on the active render layer.
attributeLog, layer, nodeLog, remove
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.
|
[int]
Number of adjustments applied
[string]*
Query: List of plugs adjustments to layer
renderLayer
createRenderLayer, editRenderLayerGlobals, editRenderLayerMembers
import maya.cmds as cmds
# Create two adjustments for layer1
cmds.editRenderLayerAdjustment( 'lambert1.color', 'lambert1.diffuse', layer='layer1' )
# Result : 2
# List all the adjustments to renderlayer1
cmds.editRenderLayerAdjustment( 'layer1', query=True, layer=True )
# Result : lambert1.color lambert1.diffuse
# Create adjustments for the current render layer
cmds.editRenderLayerAdjustment( 'lambert1.color' )
# Result : 1
# Remove one adjustment from the current render layer
cmds.editRenderLayerAdjustment( 'lambert1.color', remove=True )
# Result : 1
# Query the current layer for the list of adjustments
cmds.editRenderLayerAdjustment( query=True, alg=True )
# castsShadows nurbsSphereShape1.castsShadows
# pPlaneShape1.castsShadows
# pSphereShape1.castsShadows
# instObjGroups pCylinderShape1.instObjGroups[0]
# motionBlurByFrame defaultRenderGlobals.motionBlurByFrame
# receiveShadows nurbsSphereShape1.receiveShadows
# pPlaneShape1.receiveShadows
# pSphereShape1.receiveShadows
# shadingSamples defaultRenderQuality.shadingSamples
Return to Autodesk Index