Go to: Synopsis. Return value. Flags. Python examples.

Synopsis

bluePencilStroke([frameAdded=boolean], [layerAdded=int])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

bluePencilStroke is undoable, NOT queryable, and NOT editable.

Command used to commit active blue pencil strokes.

Return value

None

Flags

frameAdded, layerAdded
Long name (short name) Argument types Properties
frameAdded(fa) boolean create
The index of the frame added for the new stroke. This is set to remove it when undoing.
layerAdded(la) int create
Sets the index of the added layer to remove it when undoing.

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.

Python examples

import maya.cmds as cmds

# Commit active drawing stroke on the perspective camera.
cmds.bluePencilStroke('perspective', layerAdded=2, frameAdded=True)