Ok, major thanks for looking into this.
Well... , stripping it down to the bare essentials I have:
- A floorplane (Floor_Mesh) set up for painting : place2dTexture & file nodes are connected.
- A locator (PawOnFloor_Locator) that gives me the exact UV coordinates of the locator on the floorplane on impact. (using nearestPointOnMesh Node)
- All 'triggering the paint, 'setting up the brush' andsaving the texture every frame' MEL code.
The actual code is not written yet but I see no problems concerning all the above.
The only missing link is the 'actual painting' MEL code:
pseudo code:
global proc paintADot ( string $art3dPaintCtx,
string $Floor_Mesh,
float $uv[];
string $pawOnFloor_Locator)
{
// $art3dPaintCtx -> the art3dPaintCtx (texture assigned / Paint Effect Brushes set / Paint Attribute set on "Color" / ...)
// $Floor_Mesh -> the actual mesh on which to paint (Shape)
// $uv -> a float array with 2 elements representung U & V values on the $Floor_Mesh {.5 , .5}
// $pawOnFloor_Locator -> Optional : 3D transformations of the place of impact may be needed... ?
... stranded...
}
What we need now is the functionality to 'paint on surface at uv coordinates' or 'place mouspointer over pawOnFloor_Locator in viewport and click!'
or ...
I'm really lost on how to get this done...