Brush Operators

bpy.ops.brush.active_index_set(mode="", index=0)

Set active sculpt/paint brush from it’s number

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

startup/bl_operators/wm.py:173

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.uv_sculpt_tool_set(tool='PINCH')

Set the UV sculpt tool

Parameters:tool (enum in [‘PINCH’, ‘RELAX’, ‘GRAB’], (optional)) –

Tool

  • PINCH Pinch, Pinch UVs.
  • RELAX Relax, Relax UVs.
  • GRAB Grab, Grab UVs.

Previous topic

Boid Operators

Next topic

Buttons Operators