GPencilLayer(bpy_struct)

base class — bpy_struct

class bpy.types.GPencilLayer(bpy_struct)

Collection of related sketches

active

Set active layer for editing

Type :boolean, default False
active_frame

Frame currently being displayed for this layer

Type :GPencilFrame, (readonly)
alpha

Layer Opacity

Type :float in [0.3, 1], default 0.0
color

Color for all strokes in this layer

Type :float array of 3 items in [0, 1], default (0.0, 0.0, 0.0)
frames

Sketches for this layer on different frames

Type :Collection of GPencilFrame, (readonly)
ghost_range_max

Maximum number of frames on either side of the active frame to show (0 = show the ‘first’ available sketch on either side)

Type :int in [0, 120], default 0
hide

Set layer Visibility

Type :boolean, default False
info

Layer name

Type :string, default “”
line_width

Thickness of strokes (in pixels)

Type :int in [1, 10], default 0
lock

Protect layer from further editing and/or frame changes

Type :boolean, default False
lock_frame

Lock current frame displayed by layer

Type :boolean, default False
select

Layer is selected for editing in the DopeSheet

Type :boolean, default False
show_points

Draw the points which make up the strokes (for debugging purposes)

Type :boolean, default False
use_onion_skinning

Ghost frames on either side of frame

Type :boolean, default False

Inherited Properties

Inherited Functions

References

Previous topic

GPencilFrame(bpy_struct)

Next topic

GPencilStroke(bpy_struct)