Message 1 of 1
Getting brush value in Paint Scripts tool?

Not applicable
06-23-2015
09:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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