GreasePencil(ID)

base classes — bpy_struct, ID

class bpy.types.GreasePencil(ID)

Freehand annotation sketchbook

animation_data

Animation data for this datablock

Type:AnimData, (readonly)
draw_mode
  • CURSOR Cursor, Draw stroke at the 3D cursor.
  • VIEW View, Stick stroke to the view .
  • SURFACE Surface, Stick stroke to surfaces.
  • STROKE Stroke, Stick stroke to other strokes.
Type:enum in [‘CURSOR’, ‘VIEW’, ‘SURFACE’, ‘STROKE’], default ‘VIEW’
layers
Type:GreasePencilLayers bpy_prop_collection of GPencilLayer, (readonly)
use_stroke_edit_mode

Enable alternative keymap to make editing stroke points easier

Type:boolean, default False
use_stroke_endpoints

Only use the first and last parts of the stroke for snapping

Type:boolean, default False
clear()

Remove all the grease pencil data

Inherited Properties

Inherited Functions

References