user: Show practical ways to work with General in a Blender add-on or script – include code.

assistant: Size
:   This option controls the size of the brush, measured in pixels.
    `F` allows you to change the brush size interactively by
    dragging the mouse from left to right and then `LMB` to accept.
    Meanwhile the texture of the brush will be visible inside the circle.
    You can also enter the size numerically with the number keys.

    The size can be decreased/increased using `[` and `]` respectfully.

    (Size Pressure)
    :   Adjusts the size based on the stylus pressure when using a [Graphics Tablet](../../getting_started/configuration/hardware.xhtml#hardware-tablet).

    (Use Unified Size)
    :   Use the same brush *Size* across all brushes.

    / (Expand/Collapse)
    :   Show or hide the customizable pressure curve.

        Custom Curve
        :   By default this is a straight line with positive slope such that
            increased pressure results in a larger brush size.

            For the curve controls see: [Curve widget](../../interface/controls/templates/curve.xhtml#ui-curve-widget).

Size Unit Sculpt Mode
:   Controls how the brush *Size* is measured.

    View:
    :   The *Size* is measured based on how the cursor appears on the monitor i.e. “screen space”.

    Scene:
    :   The *Size* is measured based on real world units.
        This means that the brush size stays consistent, independently from zooming in and out in the viewport.
        The unit type and scaling can be configured in the [Scene Units](../../scene_layout/scene/properties.xhtml#bpy-types-unitsettings).

Strength
:   For painting brushes the *Strength* defines the maximum effect of each brush stroke.
    For example, higher values cause a *Paint* brush to give each stroke a higher opacity.
    The opacity is never stronger than the set *Strength*,
    no matter how often the same surface is painted during the same stroke.

    For sculpting brushes on the other hand the *Strength* relates to how strong each step of the stroke is,
    resulting in a slower/faster buildup towards the full brush effect during the stroke.

    You can change the brush strength interactively by pressing `Shift`-`F`
    and then moving the brush and then `LMB`.
    You can also enter the strength numerically with the number keys.

    (Strength Pressure)
    :   Adjusts the strength based on the stylus pressure when using a [Graphics Tablet](../../getting_started/configuration/hardware.xhtml#hardware-tablet).

    (Use Unified Strength)
    :   Use the same brush *Strength* across all brushes.

    / (Expand/Collapse)
    :   Show or hide the customizable pressure curve.

        Custom Curve
        :   By default this is a straight line with positive slope such that
            increased pressure results in a stronger brush deformation.

            For the curve controls see: [Curve widget](../../interface/controls/templates/curve.xhtml#ui-curve-widget).

Blend
:   Set the way the color or value is applied over the targeted Color Attribute, Vertex Group or Image Texture.
    See [Color Blend Modes](../../glossary/index.xhtml#term-Color-Blend-Modes).

    - Add Alpha: makes the image more opaque where painted.
    - Erase Alpha: makes the image transparent where painted,
      allowing background colors and lower-level textures to show through.
      As you “paint”, the false checkerboard background will be revealed.
      Using a tablet pen’s eraser end will toggle on this mode.

Weight Weight Paint
:   The weight value that is applied to the vertex group.

    Use `Shift`-`X` to sample the weight value of clicked vertex.
    `Shift`-`Ctrl`-`X` lets you select the group from which to sample from.

Direction `Ctrl` Sculpt Mode
:   Brush direction toggle, *Add* raises geometry towards the brush,
    *Subtract* lowers geometry away from the brush. This setting can be toggled with `Ctrl` while sculpting.

Normal Radius Sculpt Mode
:   Determines the ratio of how much the brush radius is used to
    sample the normal direction of the sculpt plane of the brush.
    For example, a smaller *Normal Radius* will lead to drastic changes in the brush orientation,
    like for following the contours of hard surface meshes more closely.
    A large *Normal Radius* will lead to smoother changes in orientation,
    like for building overall forms on organic sculptures.

Area Radius
:   The ratio between the brush radius and
    the radius that is going to be used to sample the area plane depth.

Tilt Strength Sculpt Mode
:   Determines how much the tilt of the user’s tablet pen affects the brush normal.
    Negative values correspond to inverting the direction of the tilt.

Hardness Sculpt Mode
:   How close the brush falloff starts from the edge of the brush.

Tip Roundness
:   The factor to control how round the brush is. A value of zero will make the brush square.
    Note, the [Brush Falloff](falloff.xhtml)
    is only applied to the rounded portions of the brush.

Auto-smooth Sculpt Mode
:   Sets the amount of smoothing to be applied to each stroke.

Topology Rake Sculpt Mode
:   The higher this setting is set, the more [Dyntopo](../sculpting/tool_settings/dyntopo.xhtml)
    aligns mesh edges to the brush direction while tessellating the surface.
    This generates cleaner edge flow to help define sharp features.
    *Topology Rake* can have a severe performance impact so it works best on low-poly meshes.

    [image reference removed]

Normal Weight `Ctrl` Sculpt Mode
:   Constrains brush movement along the surface normal.
    Especially useful with the *Grab* brush, can be temporarily enabled by holding `Ctrl`.
    E.g. *Grab* brush can be used to push a depression (hole) into the mesh when *Normal Weight* is set.

    Applies to *Grab* and *Snake Hook* brushes.

Plane Offset Sculpt Mode
:   Offset for planar brushes (Clay, Fill, Flatten, Scrape),
    shifts the plane that is found by averaging the faces above or below.

Plane Trim Sculpt Mode
:   Ability to limit the distance that planar brushes act.
    If trim is enabled vertices that are further away from the offset plane than
    the trim distance are ignored during sculpting.

Pinch/Magnify Sculpt Mode
:   Pushes the mesh towards/away from the brush center during the stroke.

Deformation Target
:   How the deformation of the brush will affect the object.

    Geometry:
    :   Deform the geometry directly.

    Cloth Simulation:
    :   Deform the mesh while a [cloth simulation](../sculpting/brushes/cloth.xhtml)
        is applied to it at the same time.