Blender V5.0
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
int color_jitter_flag
char _pad1 [4]
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 22 of file DNA_brush_types.h.

Member Data Documentation

◆ _pad

char BrushGpencilSettings::_pad[1]

Definition at line 52 of file DNA_brush_types.h.

◆ _pad1

char BrushGpencilSettings::_pad1[4]

Definition at line 108 of file DNA_brush_types.h.

◆ _pad2

char BrushGpencilSettings::_pad2[2]

Definition at line 49 of file DNA_brush_types.h.

◆ active_smooth

float BrushGpencilSettings::active_smooth

Smooth while drawing factor.

Definition at line 72 of file DNA_brush_types.h.

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

◆ aspect_ratio

float BrushGpencilSettings::aspect_ratio[2]

factor xy of shape for dots gradients

Definition at line 83 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 98 of file DNA_brush_types.h.

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

◆ caps_type

int8_t BrushGpencilSettings::caps_type

◆ color_jitter_flag

int BrushGpencilSettings::color_jitter_flag

Definition at line 107 of file DNA_brush_types.h.

◆ curve_jitter

◆ curve_rand_hue

struct CurveMapping* BrushGpencilSettings::curve_rand_hue

◆ curve_rand_pressure

◆ curve_rand_saturation

struct CurveMapping* BrushGpencilSettings::curve_rand_saturation

◆ curve_rand_strength

◆ curve_rand_uv

◆ curve_rand_value

struct CurveMapping* BrushGpencilSettings::curve_rand_value

◆ curve_sensitivity

◆ curve_strength

◆ dilate_pixels

int BrushGpencilSettings::dilate_pixels

Number of pixels to dilate fill area.

Definition at line 113 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 68 of file DNA_brush_types.h.

◆ draw_angle

float BrushGpencilSettings::draw_angle

Angle when the brush has full thickness.

Definition at line 32 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 34 of file DNA_brush_types.h.

◆ draw_jitter

float BrushGpencilSettings::draw_jitter

Amount of jitter to apply to newly created strokes.

Definition at line 30 of file DNA_brush_types.h.

◆ draw_random_press

float BrushGpencilSettings::draw_random_press

Factor of randomness for pressure.

Definition at line 36 of file DNA_brush_types.h.

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

◆ draw_random_strength

float BrushGpencilSettings::draw_random_strength

Factor of strength for strength.

Definition at line 38 of file DNA_brush_types.h.

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

◆ draw_smoothfac

float BrushGpencilSettings::draw_smoothfac

Amount of smoothing to apply to newly created strokes.

Definition at line 24 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 40 of file DNA_brush_types.h.

Referenced by 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 28 of file DNA_brush_types.h.

◆ draw_subdivide

short BrushGpencilSettings::draw_subdivide

Number of times to subdivide new strokes.

Definition at line 42 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 74 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 76 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 70 of file DNA_brush_types.h.

◆ fill_direction

short BrushGpencilSettings::fill_direction

◆ fill_draw_mode

int BrushGpencilSettings::fill_draw_mode

Type of control lines drawing mode.

Definition at line 59 of file DNA_brush_types.h.

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

◆ fill_extend_fac

float BrushGpencilSettings::fill_extend_fac

Factor to extend stroke extremes using fill tool.

Definition at line 111 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 61 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 26 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 44 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 57 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 48 of file DNA_brush_types.h.

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

◆ flag

◆ flag2

◆ hardness

float BrushGpencilSettings::hardness

◆ input_samples

int BrushGpencilSettings::input_samples

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

Definition at line 64 of file DNA_brush_types.h.

◆ material

◆ material_alt

struct Material* BrushGpencilSettings::material_alt

Material Alternative for secondary operations.

Definition at line 134 of file DNA_brush_types.h.

Referenced by brush_foreach_id(), and TEST_F().

◆ outline_fac

float BrushGpencilSettings::outline_fac

Factor for external line thickness conversion to outline.

Definition at line 126 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 96 of file DNA_brush_types.h.

◆ random_hue

float BrushGpencilSettings::random_hue

Randomness for Hue.

Definition at line 101 of file DNA_brush_types.h.

Referenced by do_version_convert_gp_jitter_values().

◆ random_saturation

float BrushGpencilSettings::random_saturation

Randomness for Saturation.

Definition at line 103 of file DNA_brush_types.h.

Referenced by do_version_convert_gp_jitter_values().

◆ random_value

float BrushGpencilSettings::random_value

Randomness for Value.

Definition at line 105 of file DNA_brush_types.h.

Referenced by do_version_convert_gp_jitter_values().

◆ sculpt_flag

int BrushGpencilSettings::sculpt_flag

eGP_Sculpt_Flag.

Definition at line 92 of file DNA_brush_types.h.

◆ sculpt_mode_flag

◆ simplify_f

float BrushGpencilSettings::simplify_f

Simplify adaptive factor

Definition at line 85 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 128 of file DNA_brush_types.h.

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

◆ uv_random

◆ vertex_factor

◆ vertex_mode


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