Jona,<br><br>Look at the attached script. <br>For volume rendering you need to specify the scalar to use for volume rendering as well as the color lookup table as well as the scalar opacity function. The attached script illustrates how to do the same.<br>
<br>Utkarsh<br><br><div class="gmail_quote">On Mon, May 25, 2009 at 8:08 AM, BOUSSOIR Jonathan 167706 <span dir="ltr">&lt;<a href="mailto:Jonathan.BOUSSOIR@cea.fr">Jonathan.BOUSSOIR@cea.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi all,<br>
<br>
I am new to paraview, I am using Linux. I read a lot of paraview emails this morning. I see you have been work hard last days on python script.<br>
I download last version and compile.<br>
Now I can read a file VTK surface sphere. But, I have still one error when I want to show my volume VTK file. I read a file then I tried to change the representation and I execute Render(), I have a problem : Cell Scalars not supported.<br>

<br>
I link my VTK file in my email.<br>
Thanks in advance for your kind help.<br>
<br>
Regards,<br>
Jona<br>
<br>
<br>
#!/usr/bin/python<br>
# -*- coding: latin-1 -*-<br>
<br>
from paraview.simple import *<br>
connection = servermanager.Connect(&#39;localhost&#39;)<br>
<br>
# Create the reader and set the filename.<br>
reader = servermanager.sources.LegacyVTKReader(FileNames=&#39;wavelet.vtk&#39;)<br>
<br>
Show(reader)<br>
Render()<br>
<br>
dp = GetDisplayProperties(reader)<br>
dp.Representation<br>
#&gt;&gt;&gt; : &#39;Slice&#39;<br>
<br>
dp.GetProperty(&quot;Representation&quot;).Available<br>
#&gt;&gt;&gt; : [&#39;Outline&#39;, &#39;Points&#39;, &#39;Wireframe&#39;, &#39;Surface&#39;, &#39;Surface With Edges&#39;, &#39;Volume&#39;, &#39;Slice&#39;]<br>
<br>
dp.Representation = &#39;Volume&#39;<br>
<br>
Show(reader)<br>
Render()<br>
<br>
ERROR: In /home/myrrha/Desktop/paraview/paraview3.7/ParaView3/VTK/VolumeRendering/vtkFixedPointVolumeRayCastMapper.cxx, line 1467<br>
vtkFixedPointVolumeRayCastMapper (0x2d7d650): Cell Scalars not supported<br>
<br>
Erreur de segmentation<br>
<br>
&quot;When I excute this last line &quot;Render()&quot;, I have a error, I don&#39;t understand&quot;<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 <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: <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></blockquote></div><br>