At the minute I use bpy.data.brushes['TexDraw']
in an operator, but can I find the currently active brush in UV/Image Editor?
2
$\begingroup$
$\endgroup$
1
$\begingroup$
$\endgroup$
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$ – mins Aug 6 '18 at 15:03