Package bpy :: Package ops :: Module gpencil
[hide private]
[frames] | no frames]

Module gpencil

Functions [hide private]
 
active_frame_delete()
Delete the active frame for the active Grease Pencil datablock.
 
convert(type='PATH')
Convert the active Grease Pencil layer to a new Object.
 
data_add()
Add new Grease Pencil datablock.
 
data_unlink()
Unlink active Grease Pencil datablock.
 
draw(mode='DRAW', stroke=None)
Make annotations on the active data.
 
layer_add()
Add new Grease Pencil layer for the active Grease Pencil datablock.
Function Details [hide private]

convert(type='PATH')

 

Convert the active Grease Pencil layer to a new Object.

Parameters:
  • type (enum) - in (PATH, CURVE)

draw(mode='DRAW', stroke=None)

 

Make annotations on the active data.

Parameters:
  • mode (enum) - Way to intepret mouse movements. in (DRAW, DRAW_STRAIGHT, ERASER)
  • stroke (collection)