Go to: Synopsis. Flags. Return value. Keywords. Related. Python examples.
editRenderLayerMembers([fullNames=boolean], [noRecurse=boolean], [remove=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
editRenderLayerMembers is undoable, queryable, and NOT editable.
This command is used to query and edit membership of render layers. Only
transforms and geometry may be members. At rendering time the contents
of the render layer will include any children that are not members of
some other layer.
fullNames, noRecurse, 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 objects added to the layer
[string]*
Query: List of objects in layer
renderLayer, render, layer, member, relationship
createRenderLayer, editRenderLayerGlobals
import maya.cmds as cmds
cmds.editRenderLayerMembers( 'layer1', 'sphere1', 'cone1' )
# Result : 4
cmds.editRenderLayerMembers( 'layer1', query=True )
# Result : sphere1 sphere1Shape cone1 cone1Shape
cmds.editRenderLayerMembers( 'layer1', 'expression1', 'sphere2' )
# Result : 2
cmds.editRenderLayerMembers( 'layer1', 'sphere1', remove=True)
# Result : 2
Return to Autodesk Index