[Bf-funboard] Feature request: Accessing painted brush strokes from Python

Lubos Lenco lubos.lenco at gmail.com
Wed Feb 24 22:52:12 CET 2016


Hello,

I am looking for ability to paint to multiple paint slots at once, using the same strokes user performs but with different brush texture. This would be handy to create several textures on the fly, while the user only paints to single one.

The easiest way that comes to mind is exposing last painted strokes by user. The painting to other slots can then be performed using ops.paint.image_paint() operator as usual. There should probably be a switch and only store strokes if it is enabled.

The other way I tried was to log mouse coords and construct strokes myself, unfortunately the modals are blocked while user is painting and I could not find any other way to access mouse positions apart from modal events.

I had a brief look around and could try to implement this, however I would be thankful if anyone could point me to the right direction, possibly with as much detail.


More information about the Bf-funboard mailing list