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

Jacob Merrill blueprintrandom1 at gmail.com
Wed Feb 24 23:00:15 CET 2016


Bvtree, cast ray from mouse  at mesh, get hitFace and hitpoint, use
vertex.uv and hitpoint to get UV
On Feb 24, 2016 1:52 PM, "Lubos Lenco" <lubos.lenco at gmail.com> wrote:

> 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.
> _______________________________________________
> Bf-funboard mailing list
> Bf-funboard at blender.org
> http://lists.blender.org/mailman/listinfo/bf-funboard
>


More information about the Bf-funboard mailing list