Go to: Synopsis. Return value. Keywords. Related. Flags. MEL examples.
editRenderLayerGlobals [-baseId int] [-currentRenderLayer name] [-enableAutoAdjustments boolean] [-mergeType int] [-useCurrent boolean]
editRenderLayerGlobals is undoable, queryable, and NOT editable.
Edit the parameter values common to all render layers. Some of these
paremeters, eg. baseId and mergeType, are stored as preferences and
some, eg. currentRenderLayer, are stored in the file.
boolean | Command success |
string | Current render layer name, when querying |
int | Merge type, when querying |
int | Base ID, when querying |
In query mode, return type is based on queried flag.
renderLayer, render, layer, globals, current, merge
createRenderLayer, editRenderLayerMembers
baseId, currentRenderLayer, enableAutoAdjustments, mergeType, useCurrent
Long name (short name) |
Argument types |
Properties |
-baseId(-bi)
|
int
|
|
|
Set base layer ID. This is the number at which new layers start searching
for a unique ID.
|
|
-currentRenderLayer(-crl)
|
name
|
|
|
Set current render layer. This will will update the renderLayerManger and
all DAG objects to identify them as members of the render layer. This
flag may also be used in conjunction with "useCurrent" to automatically
add new DAG objects to the active layer. The "isCurrentRenderLayerChanging"
condition can be used to determine when the current layer is being changed
and adjustments are being applied to the scene.
|
|
-enableAutoAdjustments(-eaa)
|
boolean
|
|
|
Set whether or not to enable automatic creation of adjustments when
certain attributes (ie. surface render stats, shading group assignment,
or render settings) are changed.
|
|
-mergeType(-mt)
|
int
|
|
|
Set file import merge type. Valid values are 0, none, 1, by number, and
2, by name.
|
|
-useCurrent(-uc)
|
boolean
|
|
|
Set whether or not to enable usage of the current render layer as the
destination for all new nodes.
|
|
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.
|
editRenderLayerGlobals -currentRenderLayer layer1;
editRenderLayerGlobals -q -currentRenderLayer;
// Result: layer1
editRenderLayerGlobals -q -baseId;
// Result: 1
editRenderLayerGlobals -useCurrent on;
// Enable automatic creation of adjustments
editRenderLayerGlobals -enableAutoAdjustments on;