Go to: Synopsis. Return value. Python examples.

Synopsis

greasePencilCtx()

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

greasePencilCtx is undoable, queryable, and editable.

This is a tool context command for the grease pencil tool.

Return value

None

In query mode, return type is based on queried flag.

Python examples

import maya.cmds as cmds

# Create a new grease pencil context, then switch to it
cmds.greasePencilCtx('greasePencilCtx1')
cmds.setToolTo('greasePencilCtx1')