You might try:<div><br></div><div><div>You could probably do it at the python programmable filter level by making use of the <a href="http://vtk.org/doc/nightly/html/classvtkLookupTable.html">http://vtk.org/doc/nightly/html/classvtkLookupTable.html</a> (esp MapValue()) class to manually create another array for the data that contains the colors at each point/cell.</div>
</div><div><br></div><div>File export, which saves the visible scene into a couple of other formats in which I think the color is recorded on every primitive.</div><div><br></div><div>Otherwise, Display->Edit Color Map...->Save->Export will let you save the color transfer function into an xml file that you could probably get into some other tool and thus recreate the same colors.</div>
<div><br></div><div>But as Ken says there is no convenient way today to save to colors along with the geometry. </div><div><div><br clear="all">David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>Phone: 518-881-4909<br>
<br><br><div class="gmail_quote">On Mon, Jan 9, 2012 at 10:48 AM, Rafa x <span dir="ltr"><<a href="mailto:rromero3000@gmail.com">rromero3000@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Yes, the id is available to color by after the 5 steps. However, the<br>
mapColor showed is the last used in Paraview not the mapColor saved in<br>
the previous process. For that reason I have supposed that mapColor<br>
information is not saved in the vtk. Do you know some way to store the<br>
mapColor in the vtk file to allow that other DTI programs can<br>
interpret it?<br>
<br>
El día 9 de enero de 2012 16:34, David E DeMarle<br>
<<a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a>> escribió:<br>
<div class="HOEnZb"><div class="h5">> Once you:<br>
> 1)load original data<br>
> 2)apply ids filter<br>
> 3)select ids filter in pipeline browser<br>
> 4)save as Legacy VTK files,<br>
> and<br>
> 5)load that new file back in to ParaView,<br>
> is the new "Ids" variable not available to color by?<br>
><br>
> David E DeMarle<br>
> Kitware, Inc.<br>
> R&D Engineer<br>
> 21 Corporate Drive<br>
> Clifton Park, NY 12065-8662<br>
> Phone: <a href="tel:518-881-4909" value="+15188814909">518-881-4909</a><br>
><br>
><br>
><br>
> On Mon, Jan 9, 2012 at 10:27 AM, Rafa x <<a href="mailto:rromero3000@gmail.com">rromero3000@gmail.com</a>> wrote:<br>
>><br>
>> Thanks but I need like to save in a format where the 586 elements can<br>
>> be separately identified by other program (like .vtk). However, when I<br>
>> save my new colors using .vtk and after that I load the same file,<br>
>> using paraview too, my colors disappear. So I suppose that color<br>
>> information is not saved in the vtk file. Thus, I would need to save<br>
>> in a vtk maintaining the display showed in the paraview, Is that<br>
>> possible?<br>
>><br>
>> El día 9 de enero de 2012 16:13, Moreland, Kenneth <<a href="mailto:kmorel@sandia.gov">kmorel@sandia.gov</a>><br>
>> escribió:<br>
>> > File -> Save Screenshot<br>
>> ><br>
>> > -Ken<br>
>> ><br>
>> ><br>
>> ><br>
>> > On 1/9/12 4:02 AM, "Rafa x" <<a href="mailto:rromero3000@gmail.com">rromero3000@gmail.com</a>> wrote:<br>
>> ><br>
>> >>Thank you for your quick and useful answer. It works perfectly. I<br>
>> >>would like to make you a final question: Can I save the image<br>
>> >>maintaining the colors visualization in a file format that can be read<br>
>> >>by other programs?<br>
>> >><br>
>> >>El día 5 de enero de 2012 20:49, Moreland, Kenneth <<a href="mailto:kmorel@sandia.gov">kmorel@sandia.gov</a>><br>
>> >>escribió:<br>
>> >>> Try applying the Generate Ids filter and then color the result by the<br>
>> >>>Ids<br>
>> >>> cell field (not the point field). The colors won't exactly be<br>
>> >>>arbitrary,<br>
>> >>> but if you switch to the rainbow color map you'll get something fairly<br>
>> >>> close.<br>
>> >>><br>
>> >>><br>
>> >>> -Ken<br>
>> >>><br>
>> >>> On 1/5/12 8:43 AM, "Rafa x" <<a href="mailto:rromero3000@gmail.com">rromero3000@gmail.com</a>> wrote:<br>
>> >>><br>
>> >>>>Dear All,<br>
>> >>>>I have a .vtk file with 586 elements (DTI streamlines which represent<br>
>> >>>>brain fibers). I would like to represent it assigning an arbitrary<br>
>> >>>>color to each these 586 elements.<br>
>> >>>><br>
>> >>>>Thank you all in advance,<br>
>> >>>>Rafael Romero.<br>
>> >>>>_______________________________________________<br>
>> >>>>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> >>>><br>
>> >>>>Visit other Kitware open-source projects at<br>
>> >>>><a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> >>>><br>
>> >>>>Please keep messages on-topic and check the ParaView Wiki at:<br>
>> >>>><a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
>> >>>><br>
>> >>>>Follow this link to subscribe/unsubscribe:<br>
>> >>>><a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
>> >>>><br>
>> >>><br>
>> >>><br>
>> >><br>
>> ><br>
>> ><br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Please keep messages on-topic and check the ParaView Wiki at:<br>
>> <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
><br>
><br>
</div></div></blockquote></div><br></div></div>