GreasePencilLayer(bpy_struct)#

base class — bpy_struct

class bpy.types.GreasePencilLayer(bpy_struct)#

Collection of related drawings

blend_mode#

Blend mode

Type:

enum in [‘REGULAR’, ‘HARDLIGHT’, ‘ADD’, ‘SUBTRACT’, ‘MULTIPLY’, ‘DIVIDE’], default ‘REGULAR’

hide#

Set layer visibility

Type:

boolean, default False

lock#

Protect layer from further editing and/or frame changes

Type:

boolean, default False

mask_layers#

List of Masking Layers

Type:

GreasePencilLayerMasks bpy_prop_collection of GreasePencilLayerMask, (readonly)

name#

Layer name

Type:

string, default “”, (never None)

opacity#

Layer Opacity

Type:

float in [0, 1], default 0.0

parent#

Parent object

Type:

Object

parent_bone#

Name of parent bone. Only used when the parent object is an armature

Type:

string, default “”, (never None)

pass_index#

Index number for the “Layer Index” pass

Type:

int in [0, inf], default 0

rotation#

Euler rotation of the layer

Type:

mathutils.Euler rotation of 3 items in [-inf, inf], default (0.0, 0.0, 0.0)

scale#

Scale of the layer

Type:

mathutils.Vector of 3 items in [-inf, inf], default (1.0, 1.0, 1.0)

translation#

Translation of the layer

Type:

mathutils.Vector of 3 items in [-inf, inf], default (0.0, 0.0, 0.0)

use_lights#

Enable the use of lights on stroke and fill materials

Type:

boolean, default False

use_masks#

The visibility of drawings on this layer is affected by the layers in its masks list

Type:

boolean, default False

use_onion_skinning#

Display onion skins before and after the current frame

Type:

boolean, default False

use_viewlayer_masks#

Include the mask layers when rendering the view-layer

Type:

boolean, default False

viewlayer_render#

Only include Layer in this View Layer render output (leave blank to include always)

Type:

string, default “”, (never None)

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#