GreasePencilTreeNode(bpy_struct)

base class — bpy_struct

subclasses — GreasePencilLayer, GreasePencilLayerGroup

class bpy.types.GreasePencilTreeNode(bpy_struct)

Grease Pencil node in the layer tree. Either a layer or a group

channel_color

Color of the channel in the dope sheet (array of 3 items, in [0, inf], default (0.0, 0.0, 0.0))

Type:

mathutils.Color

hide

Set tree node visibility (default False)

Type:

bool

lock

Protect tree node from editing (default False)

Type:

bool

name

The name of the tree node (default “”, never None)

Type:

str

next_node

The layer tree node after (i.e. above) this one (readonly)

Type:

GreasePencilTreeNode

parent_group

The parent group of this layer tree node (readonly)

Type:

GreasePencilLayerGroup

prev_node

The layer tree node before (i.e. below) this one (readonly)

Type:

GreasePencilTreeNode

select

Tree node is selected (default False)

Type:

bool

use_masks

The visibility of drawings in this tree node is affected by the layers in the masks list (default True)

Type:

bool

use_onion_skinning

Display onion skins before and after the current frame (default True)

Type:

bool

classmethod bl_rna_get_subclass(id, default=None, /)
Parameters:

id (str) – The RNA type identifier.

Returns:

The RNA type or default when not found.

Return type:

bpy.types.Struct

classmethod bl_rna_get_subclass_py(id, default=None, /)
Parameters:

id (str) – The RNA type identifier.

Returns:

The class or default when not found.

Return type:

type

Inherited Properties

Inherited Functions

References