GreasePencil(ID)

base classes — bpy_struct, ID

class bpy.types.GreasePencil(ID)

Freehand annotation sketchbook

animation_data

Animation data for this data-block

Type:AnimData, (readonly)
layers
Type:GreasePencilLayers bpy_prop_collection of GPencilLayer, (readonly)
palettes
Type:GreasePencilPalettes bpy_prop_collection of GPencilPalette, (readonly)
show_stroke_direction

Show stroke drawing direction with a bigger green dot (start) and smaller red dot (end) points

Type:boolean, default False
use_onion_skinning

Show ghosts of the frames before and after the current frame, toggle to enable on active layer or disable all

Type:boolean, default False
use_stroke_edit_mode

Edit Grease Pencil strokes instead of viewport data

Type:boolean, default False
clear()

Remove all the grease pencil data

classmethod bl_rna_get_subclass(id, default=None)
Parameters:id (string) – The RNA type identifier.
Returns:The RNA type or default when not found.
Return type:bpy.types.Struct subclass
classmethod bl_rna_get_subclass_py(id, default=None)
Parameters:id (string) – The RNA type identifier.
Returns:The class or default when not found.
Return type:type

Inherited Properties

Inherited Functions

References