Go to: Synopsis. Return value. Flags. MEL examples.
bluePencilLayer [-active int] [-addLayer] [-count] [-delete int] [-deleteAll] [-editLocked boolean int] [-editName string int] [-editOpacity float int] [-editState int int] [-editVis boolean int] [-insert int] [-layerState int int] [-move int int] [-moveAll] [-name string int] [-newCamera string] [-queryLocked int] [-queryName int] [-queryOpacity int] [-queryState int] [-queryVis int]
bluePencilLayer is undoable, queryable, and editable.
Command to manage blue pencil layers. The command requires a camera name as argument.None
In query mode, return type is based on queried flag.
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
-active(-act)
|
int
|
|||
|
||||
-addLayer(-add)
|
|
|||
|
||||
-count(-cnt)
|
|
|||
|
||||
-delete(-del)
|
int
|
|||
|
||||
-deleteAll(-da)
|
|
|||
|
||||
-editLocked(-el)
|
boolean int
|
|||
|
||||
-editName(-en)
|
string int
|
|||
|
||||
-editOpacity(-eo)
|
float int
|
|||
|
||||
-editState(-es)
|
int int
|
|||
|
||||
-editVis(-ev)
|
boolean int
|
|||
|
||||
-insert(-ins)
|
int
|
|||
|
||||
-layerState(-ls)
|
int int
|
|||
|
||||
-move(-mv)
|
int int
|
|||
|
||||
-moveAll(-mva)
|
|
|||
|
||||
-name(-n)
|
string int
|
|||
|
||||
-newCamera(-nc)
|
string
|
|||
|
||||
-queryLocked(-ql)
|
int
|
|||
|
||||
-queryName(-qn)
|
int
|
|||
|
||||
-queryOpacity(-qo)
|
int
|
|||
|
||||
-queryState(-qs)
|
int
|
|||
|
||||
-queryVis(-qv)
|
int
|
|||
|
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. |
// Set the active layer to index 3 on camera perspective1. bluePencilLayer -active 3 "perspective1"; // Get the number of layers for perspective1. bluePencilLayer -count "perspective1"; // Create layer. bluePencilLayer -addLayer -name "newLayerName" -layerState 1 "perspective1"; bluePencilLayer -insert 3 -name "newLayerName" -layerState 0 "perspective1"; // Remove layer. bluePencilLayer -delete 3 "perspective1"; bluePencilLayer -deleteAll "perspective1"; // Move layer. bluePencilLayer -move 3 6 -newCamera "top" "perspective1"; bluePencilLayer -moveAll "top" "perspective1"; // Rename layer. bluePencilLayer -editName "newLayerName" 3 "perspective1"; // Query layer info. bluePencilLayer -queryName 3 "perspective1"; bluePencilLayer -queryVis 3 "perspective1"; bluePencilLayer -queryOpacity 3 "perspective1"; bluePencilLayer -queryState 3 "perspective1"; bluePencilLayer -queryLocked 3 "perspective1"; // Set layer info. bluePencilLayer -editName "newName" 3 "perspective1"; bluePencilLayer -editVis 0 3 "perspective1"; bluePencilLayer -editOpacity 0.5 3 "perspective1"; bluePencilLayer -editState 1 3 "perspective1"; bluePencilLayer -editLocked 1 3 "perspective1";