Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Getting brush value in Paint Scripts tool?

Getting brush value in Paint Scripts tool?

Anonymous
Not applicable
691 Views
0 Replies
Message 1 of 1

Getting brush value in Paint Scripts tool?

Anonymous
Not applicable

Hi 

I am trying to set up a fairly simple script to paint the brush direction onto a mesh as vertex colour. This bit is reasonably easy to set up 

 

I pass the stroke direction to setValues

 

global proc string Init_PaintFlowMap(string $name)
{
    return ("-dt worldV ");
}

 

then use it to set the vertex colour in the set Values procedure.

 

global proc SetValues_PaintFlowMap(int $slot, int $index, float $val, float $Dx, float $Dy, float $Dz)

 

However this gives me all or nothing. I want to be able to blend the value depending on the opacity of the brush but I can't figure out how to get this. None of the examples use the brush properties, and the documentation doesn't help

 

I assume I should be using the "getValueCommand" but I don't know how to access the brush values from this

Can anyone help?

 

thanks

 

Susie 

0 Likes
692 Views
0 Replies
Replies (0)