Blender V4.3
BrushGpencilSettings Struct Reference

#include <DNA_brush_types.h>

Public Attributes

float draw_smoothfac
float fill_factor
float draw_strength
float draw_jitter
float draw_angle
float draw_angle_factor
float draw_random_press
float draw_random_strength
short draw_smoothlvl
short draw_subdivide
short fill_layer_mode
short fill_direction
float fill_threshold
char _pad2 [2]
int8_t caps_type
char _pad [1]
int flag2
int fill_simplylvl
int fill_draw_mode
int fill_extend_mode
int input_samples
float uv_random
int brush_type DNA_DEPRECATED
int eraser_mode
float active_smooth
float era_strength_f
float era_thickness_f
int flag
float hardness
float aspect_ratio [2]
float simplify_f
float vertex_factor
int vertex_mode
int sculpt_flag
int sculpt_mode_flag
short preset_type
short brush_draw_mode
float random_hue
float random_saturation
float random_value
float fill_extend_fac
int dilate_pixels
struct CurveMappingcurve_sensitivity
struct CurveMappingcurve_strength
struct CurveMappingcurve_jitter
struct CurveMappingcurve_rand_pressure
struct CurveMappingcurve_rand_strength
struct CurveMappingcurve_rand_uv
struct CurveMappingcurve_rand_hue
struct CurveMappingcurve_rand_saturation
struct CurveMappingcurve_rand_value
float outline_fac
float simplify_px
struct Materialmaterial
struct Materialmaterial_alt

Detailed Description

Definition at line 32 of file DNA_brush_types.h.

Member Data Documentation

◆ _pad

char BrushGpencilSettings::_pad[1]

Definition at line 62 of file DNA_brush_types.h.

◆ _pad2

char BrushGpencilSettings::_pad2[2]

Definition at line 59 of file DNA_brush_types.h.

◆ active_smooth

float BrushGpencilSettings::active_smooth

Smooth while drawing factor.

Definition at line 82 of file DNA_brush_types.h.

◆ aspect_ratio

float BrushGpencilSettings::aspect_ratio[2]

factor xy of shape for dots gradients

Definition at line 93 of file DNA_brush_types.h.

Referenced by blo_do_versions_280().

◆ brush_draw_mode

short BrushGpencilSettings::brush_draw_mode

Brush preselected mode (Active/Material/Vertex-color).

Definition at line 108 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::greasepencil::brush_using_vertex_color().

◆ caps_type

int8_t BrushGpencilSettings::caps_type

◆ curve_jitter

◆ curve_rand_hue

◆ curve_rand_pressure

◆ curve_rand_saturation

◆ curve_rand_strength

◆ curve_rand_uv

◆ curve_rand_value

◆ curve_sensitivity

◆ curve_strength

◆ dilate_pixels

int BrushGpencilSettings::dilate_pixels

Number of pixels to dilate fill area.

Definition at line 120 of file DNA_brush_types.h.

Referenced by blender::ed::greasepencil::process_image().

◆ DNA_DEPRECATED

int brush_type BrushGpencilSettings::DNA_DEPRECATED

Moved to 'Brush.gpencil_brush_type'.

Definition at line 78 of file DNA_brush_types.h.

◆ draw_angle

float BrushGpencilSettings::draw_angle

Angle when the brush has full thickness.

Definition at line 42 of file DNA_brush_types.h.

◆ draw_angle_factor

float BrushGpencilSettings::draw_angle_factor

Factor to apply when angle change (only 90 degrees).

Definition at line 44 of file DNA_brush_types.h.

◆ draw_jitter

float BrushGpencilSettings::draw_jitter

Amount of jitter to apply to newly created strokes.

Definition at line 40 of file DNA_brush_types.h.

Referenced by BKE_brush_init_gpencil_settings().

◆ draw_random_press

float BrushGpencilSettings::draw_random_press

Factor of randomness for pressure.

Definition at line 46 of file DNA_brush_types.h.

◆ draw_random_strength

float BrushGpencilSettings::draw_random_strength

Factor of strength for strength.

Definition at line 48 of file DNA_brush_types.h.

◆ draw_smoothfac

float BrushGpencilSettings::draw_smoothfac

Amount of smoothing to apply to newly created strokes.

Definition at line 34 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done().

◆ draw_smoothlvl

short BrushGpencilSettings::draw_smoothlvl

Number of times to apply smooth factor to new strokes.

Definition at line 50 of file DNA_brush_types.h.

Referenced by BKE_brush_init_gpencil_settings(), and blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done().

◆ draw_strength

float BrushGpencilSettings::draw_strength

Amount of alpha strength to apply to newly created strokes.

Definition at line 38 of file DNA_brush_types.h.

Referenced by BKE_brush_init_gpencil_settings().

◆ draw_subdivide

short BrushGpencilSettings::draw_subdivide

Number of times to subdivide new strokes.

Definition at line 52 of file DNA_brush_types.h.

◆ era_strength_f

float BrushGpencilSettings::era_strength_f

Factor to apply to strength for soft eraser.

Definition at line 84 of file DNA_brush_types.h.

Referenced by blo_do_versions_280().

◆ era_thickness_f

float BrushGpencilSettings::era_thickness_f

Factor to apply to thickness for soft eraser.

Definition at line 86 of file DNA_brush_types.h.

Referenced by blo_do_versions_280().

◆ eraser_mode

int BrushGpencilSettings::eraser_mode

Soft, hard or stroke.

Definition at line 80 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::greasepencil::EraseOperation::on_stroke_begin().

◆ fill_direction

short BrushGpencilSettings::fill_direction

◆ fill_draw_mode

int BrushGpencilSettings::fill_draw_mode

Type of control lines drawing mode.

Definition at line 69 of file DNA_brush_types.h.

Referenced by blender::ed::greasepencil::fill_strokes().

◆ fill_extend_fac

float BrushGpencilSettings::fill_extend_fac

Factor to extend stroke extremes using fill tool.

Definition at line 118 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::GreasePencilFillOpData::from_context(), and blender::ed::sculpt_paint::grease_pencil_apply_fill().

◆ fill_extend_mode

int BrushGpencilSettings::fill_extend_mode

Type of gap filling extension to use.

Definition at line 71 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::GreasePencilFillOpData::from_context().

◆ fill_factor

float BrushGpencilSettings::fill_factor

Fill zoom factor

Definition at line 36 of file DNA_brush_types.h.

Referenced by blender::ed::greasepencil::fill_strokes().

◆ fill_layer_mode

short BrushGpencilSettings::fill_layer_mode

Layers used for fill.

Definition at line 54 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::grease_pencil_apply_fill().

◆ fill_simplylvl

int BrushGpencilSettings::fill_simplylvl

Number of simplify steps.

Definition at line 67 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::grease_pencil_apply_fill().

◆ fill_threshold

float BrushGpencilSettings::fill_threshold

Factor for transparency.

Definition at line 58 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::grease_pencil_apply_fill().

◆ flag

◆ flag2

int BrushGpencilSettings::flag2

Definition at line 64 of file DNA_brush_types.h.

◆ hardness

float BrushGpencilSettings::hardness

gradient control along y for color

Definition at line 91 of file DNA_brush_types.h.

Referenced by blo_do_versions_280(), and blender::ed::greasepencil::grease_pencil_primitive_invoke().

◆ input_samples

int BrushGpencilSettings::input_samples

Maximum distance before generate new point for very fast mouse movements.

Definition at line 74 of file DNA_brush_types.h.

◆ material

◆ material_alt

struct Material* BrushGpencilSettings::material_alt

Material Alternative for secondary operations.

Definition at line 141 of file DNA_brush_types.h.

Referenced by brush_foreach_id(), and blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done().

◆ outline_fac

float BrushGpencilSettings::outline_fac

Factor for external line thickness conversion to outline.

Definition at line 133 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done().

◆ preset_type

short BrushGpencilSettings::preset_type

Preset type (used to reset brushes - internal).

Definition at line 106 of file DNA_brush_types.h.

◆ random_hue

float BrushGpencilSettings::random_hue

Randomness for Hue.

Definition at line 111 of file DNA_brush_types.h.

◆ random_saturation

float BrushGpencilSettings::random_saturation

Randomness for Saturation.

Definition at line 113 of file DNA_brush_types.h.

◆ random_value

float BrushGpencilSettings::random_value

Randomness for Value.

Definition at line 115 of file DNA_brush_types.h.

◆ sculpt_flag

int BrushGpencilSettings::sculpt_flag

eGP_Sculpt_Flag.

Definition at line 102 of file DNA_brush_types.h.

◆ sculpt_mode_flag

◆ simplify_f

float BrushGpencilSettings::simplify_f

Simplify adaptive factor

Definition at line 95 of file DNA_brush_types.h.

◆ simplify_px

float BrushGpencilSettings::simplify_px

Screen space simplify threshold. Points within this margin are treated as a straight line.

Definition at line 135 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done().

◆ uv_random

float BrushGpencilSettings::uv_random

Random factor for UV rotation.

Definition at line 76 of file DNA_brush_types.h.

◆ vertex_factor

float BrushGpencilSettings::vertex_factor

◆ vertex_mode


The documentation for this struct was generated from the following file: