GPencilBrush(bpy_struct)¶
base class — bpy_struct
-
class
bpy.types.
GPencilBrush
(bpy_struct)¶ Collection of brushes being used to control the line style of new strokes
-
angle
¶ Direction of the stroke at which brush gives maximal thickness (0° for horizontal)
Type: float in [-1.5708, 1.5708], default 0.0
-
angle_factor
¶ Reduce brush thickness by this factor when stroke is perpendicular to ‘Angle’ direction
Type: float in [0, 1], default 0.0
-
curve_jitter
¶ Curve used for the jitter effect
Type: CurveMapping
, (readonly)
-
curve_sensitivity
¶ Curve used for the sensitivity
Type: CurveMapping
, (readonly)
-
curve_strength
¶ Curve used for the strength
Type: CurveMapping
, (readonly)
-
jitter
¶ Jitter factor for new strokes
Type: float in [0, 1], default 0.0
-
line_width
¶ Thickness of strokes (in pixels)
Type: int in [1, 300], default 0
-
name
¶ Brush name
Type: string, default “”, (never None)
-
pen_sensitivity_factor
¶ Pressure sensitivity factor for new strokes
Type: float in [0.1, 3], default 0.0
-
pen_smooth_factor
¶ Amount of smoothing to apply to newly created strokes, to reduce jitter/noise
Type: float in [0, 2], default 0.0
-
pen_smooth_steps
¶ Number of times to smooth newly created strokes
Type: int in [1, 3], default 0
-
pen_subdivision_steps
¶ Number of times to subdivide newly created strokes, for less jagged strokes
Type: int in [0, 3], default 0
-
random_press
¶ Randomness factor for pressure and strength in new strokes
Type: float in [0, 1], default 0.0
-
random_subdiv
¶ Randomness factor for new strokes after subdivision
Type: float in [0, 1], default 0.0
-
strength
¶ Color strength for new strokes (affect alpha factor of color)
Type: float in [0, 1], default 0.0
-
use_jitter_pressure
¶ Use tablet pressure for jitter
Type: boolean, default False
-
use_pressure
¶ Use tablet pressure
Type: boolean, default False
-
use_random_pressure
¶ Use random value for pressure
Type: boolean, default False
-
use_random_strength
¶ Use random value for strength
Type: boolean, default False
-
use_strength_pressure
¶ Use tablet pressure for color strength
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
References