重置指定的当前笔刷。
mode
: string
,重置模式。可选值为 DRAW
(绘画模式), SCULPT
(雕刻模式), WEIGHT_PAINT
(权重绘画模式), VERTEX_PAINT
(顶点绘画模式), TEXTURE_PAINT
(贴图绘画模式)。{'FINISHED'}
import bpy
# 重置所有画笔
for mode in ['DRAW', 'SCULPT', 'WEIGHT_PAINT', 'VERTEX_PAINT', 'TEXTURE_PAINT']:
bpy.ops.gpencil.brush_reset(mode=mode)