GreasePencilBuildModifier(Modifier)

base classes — bpy_struct, Modifier

class bpy.types.GreasePencilBuildModifier(Modifier)

Animate strokes appearing and disappearing

concurrent_time_alignment

How should strokes start to appear/disappear (default 'START')

  • START Align Start – All strokes start at same time (i.e. short strokes finish earlier).

  • END Align End – All strokes end at same time (i.e. short strokes start later).

Type:

Literal[‘START’, ‘END’]

fade_factor

Defines how much of the stroke is fading in/out (in [0, 1], default 0.0)

Type:

float

fade_opacity_strength

How much strength fading applies on top of stroke opacity (in [0, 1], default 0.0)

Type:

float

fade_thickness_strength

How much strength fading applies on top of stroke thickness (in [0, 1], default 0.0)

Type:

float

frame_end

End Frame (when Restrict Frame Range is enabled) (in [-1.04857e+06, 1.04857e+06], default 125.0)

Type:

float

frame_start

Start Frame (when Restrict Frame Range is enabled) (in [-1.04857e+06, 1.04857e+06], default 1.0)

Type:

float

invert_layer_filter

Invert layer filter (default False)

Type:

bool

invert_layer_pass_filter

Invert layer pass filter (default False)

Type:

bool

invert_material_filter

Invert material filter (default False)

Type:

bool

invert_material_pass_filter

Invert material pass filter (default False)

Type:

bool

layer_pass_filter

Layer pass filter (in [0, 100], default 0)

Type:

int

length

Maximum number of frames that the build effect can run for (unless another GP keyframe occurs before this time has elapsed) (in [1, 1.04857e+06], default 100.0)

Type:

float

material_filter

Material used for filtering

Type:

Material

material_pass_filter

Material pass (in [0, 100], default 0)

Type:

int

mode

How strokes are being built (default 'SEQUENTIAL')

  • SEQUENTIAL Sequential – Strokes appear/disappear one after the other, but only a single one changes at a time.

  • CONCURRENT Concurrent – Multiple strokes appear/disappear at once.

  • ADDITIVE Additive – Builds only new strokes (assuming ‘additive’ drawing).

Type:

Literal[‘SEQUENTIAL’, ‘CONCURRENT’, ‘ADDITIVE’]

object

Object used as build starting position

Type:

Object

open_fading_panel

(default False)

Type:

bool

open_frame_range_panel

(default False)

Type:

bool

open_influence_panel

(default False)

Type:

bool

percentage_factor

Defines how much of the stroke is visible (in [0, 1], default 0.0)

Type:

float

speed_factor

Multiply recorded drawing speed by a factor (in [0, 100], default 1.2)

Type:

float

speed_maxgap

The maximum gap between strokes in seconds (in [0, 100], default 0.5)

Type:

float

start_delay

Number of frames after each GP keyframe before the modifier has any effect (in [0, 1.04857e+06], default 0.0)

Type:

float

target_vertex_group

Output Vertex group (default “”, never None)

Type:

str

time_mode

Use drawing speed, a number of frames, or a manual factor to build strokes (default 'FRAMES')

  • DRAWSPEED Natural Drawing Speed – Use recorded speed multiplied by a factor.

  • FRAMES Number of Frames – Set a fixed number of frames for all build animations.

  • PERCENTAGE Percentage Factor – Set a manual percentage to build.

Type:

Literal[‘DRAWSPEED’, ‘FRAMES’, ‘PERCENTAGE’]

transition

How are strokes animated (i.e. are they appearing or disappearing) (default 'GROW')

  • GROW Grow – Show points in the order they occur in each stroke (e.g. for animating lines being drawn).

  • SHRINK Shrink – Hide points from the end of each stroke to the start (e.g. for animating lines being erased).

  • FADE Vanish – Hide points in the order they occur in each stroke (e.g. for animating ink fading or vanishing after getting drawn).

Type:

Literal[‘GROW’, ‘SHRINK’, ‘FADE’]

tree_node_filter

Layer name (default “”, never None)

Type:

str

use_fading

Fade out strokes instead of directly cutting off (default False)

Type:

bool

use_layer_group_filter

Filter by layer group name (default False)

Type:

bool

use_layer_pass_filter

Use layer pass filter (default False)

Type:

bool

use_material_pass_filter

Use material pass filter (default False)

Type:

bool

use_percentage

Use a percentage factor to determine the visible points (default False)

Type:

bool

use_restrict_frame_range

Only modify strokes during the specified frame range (default False)

Type:

bool

classmethod bl_rna_get_subclass(id, default=None, /)
Parameters:
  • id (str) – The RNA type identifier.

  • default (bpy.types.Struct | None) – The value to return when not found.

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.

  • default (type | None) – The value to return when not found.

Returns:

The class or default when not found.

Return type:

type

Inherited Properties

Inherited Functions