There is a 'Gradient' dropdown in the 'Paint Skin Weights' tool, that allows you to "Use Color Ramp", then set that color.
But how can you set it through script?
The default values for the gradient (black on left, white on right) look like this:
So if you want to add more in, just append in new chunks of
You can also set the special min/max colors with the
But how can you set it through script?
The default values for the gradient (black on left, white on right) look like this:
artAttrCtx -e -colorRamp " 1,1,1,1,1,0,0,0,0,1 " artAttrSkinContext;What do all those numbers mean? It's interest that in fact it appears that Maya intersects a
1
between each chucnk of 4 values. This is what it means:r,g,b,p1, 1, r,g,b,p2, 1Where rgb & p1 (position 1) go together as a unit, and rgb& p2 (position2) go together as a unit, with a
1
separating them, and an additional 1
at the end. Weird\interesting.So if you want to add more in, just append in new chunks of
"r, g, b, pX, 1 "
to the end of that string.You can also set the special min/max colors with the
-rampMinColor r g b
and -rampMaxColor r g b
flags.