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
$\begingroup$

I've found it

context.tool_settings.image_paint.brush
$\endgroup$
  • $\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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.