At the minute I use bpy.data.brushes['TexDraw']
in an operator, but can I find the currently active brush in UV/Image Editor?
1 Answer
$\begingroup$
$\endgroup$
1
I've found it
context.tool_settings.image_paint.brush
-
$\begingroup$ Good find. The latest documentation (2.79b) states 'bpy.context.brush' or 'bpy.context.sculpt.brush' (in sculpting mode) which don't work. $\endgroup$– minsCommented Aug 6, 2018 at 15:03