Brush Operators

bpy.ops.brush.add()

Add brush by mode type

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.set_active_number(mode="", number=0)

Set active sculpt/paint brush from it’s number

Parameters:
  • mode (string, (optional)) – mode, Paint mode to set brush for
  • number (int in [-inf, inf], (optional)) – number, Brush number
File :

startup/bl_operators/wm.py:92

Previous topic

Boid Operators

Next topic

Buttons Operators