pymel.core.context.greasePencilCtx

greasePencilCtx(*args, **kwargs)

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
canDraw (cd) int  
   
createOrEditFrame (cef) int  
   
exists (ex) bool  
   
fileTextureSize (fts) int  
   
greasePencilType (gpt) int  
   
image1 (i1) unicode  
   
image2 (i2) unicode  
   
image3 (i3) unicode  
   
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')

Previous topic

pymel.core.context.graphTrackCtx

Next topic

pymel.core.context.ikHandleCtx

Core

Core Modules

Other Modules

This Page