Brush Operators#

bpy.ops.brush.add()#

Add brush by mode type

bpy.ops.brush.add_gpencil()#

Add brush for Grease Pencil

bpy.ops.brush.curve_preset(shape='SMOOTH')#

Set brush shape

Parameters:

shape (enum in ['SHARP', 'SMOOTH', 'MAX', 'LINE', 'ROUND', 'ROOT'], (optional)) – Mode

bpy.ops.brush.reset()#

Return brush to defaults based on current tool

bpy.ops.brush.scale_size(scalar=1.0)#

Change brush size by a scalar

Parameters:

scalar (float in [0, 2], (optional)) – Scalar, Factor to scale brush size by

bpy.ops.brush.sculpt_curves_falloff_preset(shape='SMOOTH')#

Set Curve Falloff Preset

Parameters:

shape (enum in ['SHARP', 'SMOOTH', 'MAX', 'LINE', 'ROUND', 'ROOT'], (optional)) – Mode

bpy.ops.brush.stencil_control(mode='TRANSLATION', texmode='PRIMARY')#

Control the stencil brush

Parameters:
  • mode (enum in ['TRANSLATION', 'SCALE', 'ROTATION'], (optional)) – Tool

  • texmode (enum in ['PRIMARY', 'SECONDARY'], (optional)) – Tool

bpy.ops.brush.stencil_fit_image_aspect(use_repeat=True, use_scale=True, mask=False)#

When using an image texture, adjust the stencil size to fit the image aspect ratio

Parameters:
  • use_repeat (boolean, (optional)) – Use Repeat, Use repeat mapping values

  • use_scale (boolean, (optional)) – Use Scale, Use texture scale values

  • mask (boolean, (optional)) – Modify Mask Stencil, Modify either the primary or mask stencil

bpy.ops.brush.stencil_reset_transform(mask=False)#

Reset the stencil transformation to the default

Parameters:

mask (boolean, (optional)) – Modify Mask Stencil, Modify either the primary or mask stencil