Dear all,<br><br>I am having some trouble using View.ColorTable during post-processing.  My understanding is that View.ColorTable is a list of 256 colors mapped linearly from View.Min to View.Max.  Is that correct?  How to modify a single entry in View.ColorTable?  I am trying to modified it in a loop like:<br>
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">For i In {0:255}</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    frac = i / 255.0;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    s = View[2].Min * (1-frac) + View[2].Max * frac;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    f = (s - min_v) / (max_v - min_v);</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    f = (0 > f) ? 0 : f;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    f = (1 < f) ? 1 : f;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    View[2].ColorTable[i] = {f*255, (1-f)*255, 0};                                                                 </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">EndFor</span><br>
<br>and it gives syntax error for using "[".  Thanks a lot!<br clear="all"><br>James<br><br>