Go to: Synopsis. Return value. Python examples.
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.
In query mode, return type is based on queried flag.
import maya.cmds as cmds # Create a new grease pencil context, then switch to it cmds.greasePencilCtx('greasePencilCtx1') cmds.setToolTo('greasePencilCtx1')