Your Ad Here

Go to: Synopsis. Flags. Return value. Keywords. Related. MEL examples.

Synopsis

editRenderLayerMembers [-fullNames] [-noRecurse] [-remove]

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.

Flags

fullNames, noRecurse, remove
Long name (short name) [argument types] Properties
-noRecurse(-nr) create
If set then only add selected objects to the render layer. Otherwise all descendants of the selected objects will also be added. This flag may be applied to adding or removing objects from the layer.
-fullNames(-fn) query
(Query only.) If set then return the full DAG paths of the objects in the layer. Otherwise return just the object's name.

In query mode, this flag needs a value.

-remove(-r) create
Remove the specified objects from the render layer.

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 be used more than once in a command

Return value


[int] Number of objects added to the layer

[string]* Query: List of objects in layer

Keywords

renderLayer, render, layer, member, relationship

Related

createRenderLayer, editRenderLayerGlobals

MEL examples

editRenderLayerMembers layer1 sphere1 cone1;
// Result : 4
editRenderLayerMembers -q layer1;
// Result : sphere1 sphere1Shape cone1 cone1Shape
editRenderLayerMembers layer1 expression1 sphere2;
// Result : 2
editRenderLayerMembers -remove layer1 sphere1;
// Result : 2
	

Return to Autodesk Index


Your Ad Here