GreasePencil(ID)¶
base classes — bpy_struct, ID
-
class
bpy.types.GreasePencil(ID)¶ Freehand annotation sketchbook
-
draw_mode¶ CURSORCursor, Draw stroke at the 3D cursor.VIEWView, Stick stroke to the view .SURFACESurface, Stick stroke to surfaces.STROKEStroke, Stick stroke to other strokes.
Type: enum in [‘CURSOR’, ‘VIEW’, ‘SURFACE’, ‘STROKE’], default ‘VIEW’
-
layers¶ Type: GreasePencilLayersbpy_prop_collectionofGPencilLayer, (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