Your Ad Here

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

Synopsis

editRenderLayerGlobals [-baseId int] [-currentRenderLayer select] [-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.

Flags

baseId, currentRenderLayer, enableAutoAdjustments, mergeType, useCurrent
Long name (short name) [argument types] Properties
-currentRenderLayer(-crl) select createquery
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.

In query mode, this flag needs a value.

-baseId(-bi) int createquery
Set base layer ID. This is the number at which new layers start searching for a unique ID.

In query mode, this flag needs a value.

-useCurrent(-uc) boolean createquery
Set whether or not to enable usage of the current render layer as the destination for all new nodes.

In query mode, this flag needs a value.

-enableAutoAdjustments(-eaa) boolean createquery
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.

In query mode, this flag needs a value.

-mergeType(-mt) int createquery
Set file import merge type. Valid values are 0, none, 1, by number, and 2, by name.

In query mode, this flag needs a value.


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


[bool] Command success

[string] Current render layer name, when querying

[int] Merge type, when querying

[int] Base ID, when querying

Keywords

renderLayer, render, layer, globals, current, merge

Related

createRenderLayer, editRenderLayerMembers

MEL examples

editRenderLayerGlobals -currentRenderLayer layer1;
editRenderLayerGlobals -q -currentRenderLayer;
// Result: layer1
editRenderLayerGlobals -q -baseId;
// Result: 1
editRenderLayerGlobals -useCurrent on;
// Enable automatic creation of adjustments
editRenderLayerGlobals -enableAutoAdjustments on;
	

Return to Autodesk Index


Your Ad Here