<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 "<string>", line 3, in <module></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 <utkarsh.ayachit@kitware.com><br><b><span style="font-weight: bold;">Para:</span></b> llapis Pencil <llapispencil@yahoo.es><br><b><span style="font-weight: bold;">CC:</span></b> PARAVIEW <paraview@paraview.org><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 <<a ymailto="mailto:llapispencil@yahoo.es" href="mailto:llapispencil@yahoo.es">llapispencil@yahoo.es</a>> wrote:<br>> hi again,<br>><br>> thanks for the response. So i understand i have to create a file contraining<br>> this information (reffering to my files) to open it later directly with<br>> Paraview. Which type of file should be? because i tried many files and still<br>> not work. Paraview ask me to chose a reader to open it. Maybe I should know<br>> also which reader. Here is the information contained in the file to be open.<br>><br>> from paraview.simple import *<br>><br>> reader1 = OpenDataFile(“out1-1.vtkâ€)<br>> reader2 =
OpenDataFile("out1-2.vtk")<br>> reader3 = OpenDataFile(“out1-3.vtkâ€)<br>> reader4 = OpenDataFile("out1-4.vtk")<br>><br>> Show(reader1)<br>> Show(reader2)<br>> Show(reader3)<br>> Show(reader4)<br>><br>> Render()<br>><br>> ________________________________<br>> De: Utkarsh Ayachit <<a ymailto="mailto:utkarsh.ayachit@kitware.com" href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>><br>> Para: llapis Pencil <<a ymailto="mailto:llapispencil@yahoo.es" href="mailto:llapispencil@yahoo.es">llapispencil@yahoo.es</a>><br>> CC: PARAVIEW <<a ymailto="mailto:paraview@paraview.org" href="mailto:paraview@paraview.org">paraview@paraview.org</a>><br>> Enviado: mié,23 junio, 2010 16:08<br>> Asunto: Re: [Paraview] 1 script open different vtk files<br>><br>> # for paraview 3.8.0 or greater.<br>><br>> from paraview.simple import *<br>><br>> reader1 =
OpenDataFile(“file1â€)<br>> reader2 = OpenDataFile("file2")<br>> ....<br>> Show(reader1)<br>> Show(reader2)<br>> ...<br>><br>> Render()<br>><br>> On Wed, Jun 23, 2010 at 9:35 AM, llapis Pencil <<a ymailto="mailto:llapispencil@yahoo.es" href="mailto:llapispencil@yahoo.es">llapispencil@yahoo.es</a>><br>> wrote:<br>>><br>>> Hi again,<br>>> thanks for the response. Now my question is how can i create a script<br>>> which<br>>> tells PARAVIEW to open a certain number of vtk files at once and visualize<br>>> them all together?<br>>><br>>> Thanx one more time<br>>><br>>><br>>> _______________________________________________<br><span>>> Powered by <a target="_blank" href="http://www.kitware.com">www.kitware.com</a></span><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><span>> Powered by <a target="_blank" href="http://www.kitware.com">www.kitware.com</a></span><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>
</div><br>
</body></html>