<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>hi again, <br><br>I tried to run the script through the python shell, but it still comes up errors. The error message is the following:<br><br><span style="font-family: 'Courier'; font-size: 8.25pt; color: rgb(255, 0, 0); font-style: italic;">Traceback (most recent call last):</span>
<p style="margin: 0px; text-indent: 0px; font-style: italic;"><span style="font-family: 'Courier'; font-size: 8.25pt; color: rgb(255, 0, 0);">  File "&lt;string&gt;", line 3, in &lt;module&gt;</span></p>
<p style="margin: 0px; text-indent: 0px; font-style: italic;"><span style="font-family: 'Courier'; font-size: 8.25pt; color: rgb(255, 0, 0);">  File "C:\Archivos de programa\ParaView 3.8.0-RC2\lib\paraview-3.8\paraview\simple.py", line 109, in OpenDataFile</span></p>
<p style="margin: 0px; text-indent: 0px; font-style: italic;"><span style="font-family: 'Courier'; font-size: 8.25pt; color: rgb(255, 0, 0);">    raise RuntimeError, "File not readable: %s " % filename</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 8.25pt; color: rgb(255, 0, 0);"><span style="font-style: italic;">RuntimeError: File not readable: C:\Documents and Settings\Nit@\Mis documentos\stuttgart\hiwi\outputtk\output\out1-1.vtk </span><br></span></p><br>Does someone knows why is still not working? It seems that it can not read the vtk files. I tried different many details like change " for 'or putting only the filename (not the whole file extension). The Render should be reffered to somewhere or it's ok with an empty ( ) ? or it's a problem of the file type?<br><br>#The python script is the following:<br><br>from paraview.simple import *<br><br>reader1 = OpenDataFile('C:\Documents and Settings\output\out1-1.vtk')<br>reader2 = OpenDataFile('C:\Documents and Settings\output\out1-2.vtk')<br>reader3 = OpenDataFile('C:\Documents and Settings\output\out1-3.vtk')<br>reader4 = OpenDataFile('C:\Documents and
 Settings\output\out1-4.vtk')<br><br>Show(reader1)<br>Show(reader2)<br>Show(reader3)<br>Show(reader4)<br><br><br>Render()<br><br>#############<br><br>Thanks again<br><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2">----- Mensaje reenviado ----<br><b><span style="font-weight: bold;">De:</span></b> Utkarsh Ayachit &lt;utkarsh.ayachit@kitware.com&gt;<br><b><span style="font-weight: bold;">Para:</span></b> llapis Pencil &lt;llapispencil@yahoo.es&gt;<br><b><span style="font-weight: bold;">CC:</span></b> PARAVIEW &lt;paraview@paraview.org&gt;<br><b><span style="font-weight: bold;">Enviado:</span></b> jue,1 julio, 2010 16:18<br><b><span style="font-weight: bold;">Asunto:</span></b> Re: [Paraview] 1 script open different vtk files<br></font><br>I believe you are trying to "open" the python script as a data-file<br>from
 File |Open menu-option. To run a python script from the GUI, you<br>open the Python shell from "Tools | Python Shell" menu and then click<br>"Run Script" on the bottom-left corner to load the script to run.<br><br>Utkarsh<br><br>On Wed, Jun 30, 2010 at 6:46 AM, llapis Pencil &lt;<a ymailto="mailto:llapispencil@yahoo.es" href="mailto:llapispencil@yahoo.es">llapispencil@yahoo.es</a>&gt; wrote:<br>&gt; hi again,<br>&gt;<br>&gt; thanks for the response. So i understand i have to create a file contraining<br>&gt; this information (reffering to my files) to open it later directly with<br>&gt; Paraview. Which type of file should be? because i tried many files and still<br>&gt; not work. Paraview ask me to chose a reader to open it. Maybe I should know<br>&gt; also which reader. Here is the information contained in the file to be open.<br>&gt;<br>&gt; from paraview.simple import *<br>&gt;<br>&gt; reader1 = OpenDataFile(“out1-1.vtk”)<br>&gt; reader2 =
 OpenDataFile("out1-2.vtk")<br>&gt; reader3 = OpenDataFile(“out1-3.vtk”)<br>&gt; reader4 = OpenDataFile("out1-4.vtk")<br>&gt;<br>&gt; Show(reader1)<br>&gt; Show(reader2)<br>&gt; Show(reader3)<br>&gt; Show(reader4)<br>&gt;<br>&gt; Render()<br>&gt;<br>&gt; ________________________________<br>&gt; De: Utkarsh Ayachit &lt;<a ymailto="mailto:utkarsh.ayachit@kitware.com" href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>&gt;<br>&gt; Para: llapis Pencil &lt;<a ymailto="mailto:llapispencil@yahoo.es" href="mailto:llapispencil@yahoo.es">llapispencil@yahoo.es</a>&gt;<br>&gt; CC: PARAVIEW &lt;<a ymailto="mailto:paraview@paraview.org" href="mailto:paraview@paraview.org">paraview@paraview.org</a>&gt;<br>&gt; Enviado: mié,23 junio, 2010 16:08<br>&gt; Asunto: Re: [Paraview] 1 script open different vtk files<br>&gt;<br>&gt; # for paraview 3.8.0 or greater.<br>&gt;<br>&gt; from paraview.simple import *<br>&gt;<br>&gt; reader1 =
 OpenDataFile(“file1”)<br>&gt; reader2 = OpenDataFile("file2")<br>&gt; ....<br>&gt; Show(reader1)<br>&gt; Show(reader2)<br>&gt; ...<br>&gt;<br>&gt; Render()<br>&gt;<br>&gt; On Wed, Jun 23, 2010 at 9:35 AM, llapis Pencil &lt;<a ymailto="mailto:llapispencil@yahoo.es" href="mailto:llapispencil@yahoo.es">llapispencil@yahoo.es</a>&gt;<br>&gt; wrote:<br>&gt;&gt;<br>&gt;&gt; Hi again,<br>&gt;&gt; thanks for the response. Now my question is how can i create a script<br>&gt;&gt; which<br>&gt;&gt; tells PARAVIEW to open a certain number of vtk files at once and visualize<br>&gt;&gt; them all together?<br>&gt;&gt;<br>&gt;&gt; Thanx one more time<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; _______________________________________________<br><span>&gt;&gt; Powered by <a target="_blank" href="http://www.kitware.com">www.kitware.com</a></span><br>&gt;&gt;<br>&gt;&gt; Visit other Kitware open-source projects at<br>&gt;&gt; <a
 href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>&gt;&gt;<br>&gt;&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>&gt;&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>&gt;&gt;<br>&gt;&gt; Follow this link to subscribe/unsubscribe:<br>&gt;&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>&gt;&gt;<br>&gt;&gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br><span>&gt; Powered by <a target="_blank" href="http://www.kitware.com">www.kitware.com</a></span><br>&gt;<br>&gt; Visit other Kitware open-source projects at<br>&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>&gt;<br>&gt; Please keep messages
 on-topic and check the ParaView Wiki at:<br>&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>&gt;<br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>&gt;<br>&gt;<br></div></div>
</div><br>



      </body></html>