This is a tool context command for the grease pencil tool. In query mode, return type is based on queried flag.
Flags:
Long Name / Short Name | Argument Types | Properties | |
---|---|---|---|
autoCreateFrames / acf | bool | ||
canDraw / cd | int | ||
createOrEditFrame / cef | int | ||
exists / ex | bool | ||
exportArchive / eac | unicode, unicode | ||
fileTextureSize / fts | int | ||
greasePencilType / gpt | int | ||
image1 / i1 | unicode | ||
image2 / i2 | unicode | ||
image3 / i3 | unicode | ||
importArchive / iac | unicode | ||
makeStroke / mst | int | ||
removeFrame / rf | int | ||
resetBrushes / rb | bool | ||
rgbcolor / rgb | float, float, float | ||
sequenceNodeName / snn | unicode | ||
Derived from mel command maya.cmds.greasePencilCtx
Example:
import pymel.core as pm
# Create a new grease pencil context, then switch to it
pm.greasePencilCtx('greasePencilCtx1')
# Result: u'greasePencilCtx1' #
pm.setToolTo('greasePencilCtx1')