LengthGpencilModifier(GpencilModifier)

base classes — bpy_struct, GpencilModifier

class bpy.types.LengthGpencilModifier(GpencilModifier)

Stretch or shrink strokes

end_factor

Added length to the end of each stroke relative to its length

Type:

float in [-inf, inf], default 0.1

end_length

Absolute added length to the end of each stroke

Type:

float in [-inf, inf], default 0.1

invert_curvature

Invert the curvature of the stroke’s extension

Type:

boolean, default False

invert_layer_pass

Inverse filter

Type:

boolean, default False

invert_layers

Inverse filter

Type:

boolean, default False

invert_material_pass

Inverse filter

Type:

boolean, default False

invert_materials

Inverse filter

Type:

boolean, default False

layer

Layer name

Type:

string, default “”, (never None)

layer_pass

Layer pass index

Type:

int in [0, 100], default 0

material

Material used for filtering effect

Type:

Material

max_angle

Ignore points on the stroke that deviate from their neighbors by more than this angle when determining the extrapolation shape

Type:

float in [0, 3.14159], default 2.96706

mode

Mode to define length

  • RELATIVE Relative – Length in ratio to the stroke’s length.

  • ABSOLUTE Absolute – Length in geometry space.

Type:

enum in [‘RELATIVE’, ‘ABSOLUTE’], default ‘RELATIVE’

overshoot_factor

Defines what portion of the stroke is used for the calculation of the extension

Type:

float in [0, 1], default 0.1

pass_index

Pass index

Type:

int in [0, 100], default 0

point_density

Multiplied by Start/End for the total added point count

Type:

float in [0.1, 1000], default 30.0

random_end_factor

Size of random length added to the end of each stroke

Type:

float in [-inf, inf], default 0.0

random_offset

Smoothly offset each stroke’s random value

Type:

float in [-inf, inf], default 0.0

random_start_factor

Size of random length added to the start of each stroke

Type:

float in [-inf, inf], default 0.0

seed

Random seed

Type:

int in [0, inf], default 0

segment_influence

Factor to determine how much the length of the individual segments should influence the final computed curvature. Higher factors makes small segments influence the overall curvature less

Type:

float in [-2, 3], default 0.0

start_factor

Added length to the start of each stroke relative to its length

Type:

float in [-inf, inf], default 0.1

start_length

Absolute added length to the start of each stroke

Type:

float in [-inf, inf], default 0.1

step

Number of frames between randomization steps

Type:

int in [1, 100], default 4

use_curvature

Follow the curvature of the stroke

Type:

boolean, default True

use_random

Use random values over time

Type:

boolean, default False

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