2
$\begingroup$

At the minute I use bpy.data.brushes['TexDraw'] in an operator, but can I find the currently active brush in UV/Image Editor?

$\endgroup$

1 Answer 1

1
$\begingroup$

I've found it

context.tool_settings.image_paint.brush
$\endgroup$
1
  • $\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
    Commented Aug 6, 2018 at 15:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .