Drakonis <dra### [at] gmail com> wrote:
> I will ponder this more. But thank you for responding and explaining that
> color_map is not the same first-class scene-object-citizen that pigment is.
> That makes sense in my programmer brain, but not in my end-user brain :-)
Did you try what Thorsten suggested, ie. declaring a local identifier
and "returning" it from the macro? In other words, like:
#macro ColorMapMacro(lineColor)
#local ColorMap =
color_map
{
[ 0.0 color rgb 0 ]
[ 0.5 color rgb lineColor ]
[ 1.0 color rgb 0 ]
};
ColorMap
#end
(Haven't tested it myself to see if it works...)
--
- Warp
Post a reply to this message
|