Also, try changing the backslashes to forward slashes.<br><br>Pat<br><br><div class="gmail_quote">On Tue, Jul 6, 2010 at 9:10 AM, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>></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;">Try putting the file under "c:\temp" does that help?<br>
<font color="#888888"><br>
Utkarsh<br>
</font><div><div></div><div class="h5"><br>
On Tue, Jul 6, 2010 at 9:01 AM, llapis Pencil <<a href="mailto:llapispencil@yahoo.es">llapispencil@yahoo.es</a>> wrote:<br>
> hi again,<br>
><br>
> I tried to run the script through the python shell, but it still comes up<br>
> errors. The error message is the following:<br>
><br>
> Traceback (most recent call last):<br>
><br>
> File "<string>", line 3, in <module><br>
><br>
> File "C:\Archivos de programa\ParaView<br>
> 3.8.0-RC2\lib\paraview-3.8\paraview\simple.py", line 109, in OpenDataFile<br>
><br>
> raise RuntimeError, "File not readable: %s " % filename<br>
><br>
> RuntimeError: File not readable: C:\Documents and Settings\Nit@\Mis<br>
> documentos\stuttgart\hiwi\outputtk\output\out1-1.vtk<br>
><br>
> Does someone knows why is still not working? It seems that it can not read<br>
> the vtk files. I tried different many details like change " for 'or putting<br>
> only the filename (not the whole file extension). The Render should be<br>
> reffered to somewhere or it's ok with an empty ( ) ? or it's a problem of<br>
> 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>
><br>
> ----- Mensaje reenviado ----<br>
> De: Utkarsh Ayachit <<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>><br>
> Para: llapis Pencil <<a href="mailto:llapispencil@yahoo.es">llapispencil@yahoo.es</a>><br>
> CC: PARAVIEW <<a href="mailto:paraview@paraview.org">paraview@paraview.org</a>><br>
> Enviado: jue,1 julio, 2010 16:18<br>
> Asunto: Re: [Paraview] 1 script open different vtk files<br>
><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 href="mailto:llapispencil@yahoo.es">llapispencil@yahoo.es</a>><br>
> wrote:<br>
>> hi again,<br>
>><br>
>> thanks for the response. So i understand i have to create a file<br>
>> 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<br>
>> still<br>
>> not work. Paraview ask me to chose a reader to open it. Maybe I should<br>
>> know<br>
>> also which reader. Here is the information contained in the file to be<br>
>> 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 href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>><br>
>> Para: llapis Pencil <<a href="mailto:llapispencil@yahoo.es">llapispencil@yahoo.es</a>><br>
>> CC: PARAVIEW <<a 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 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<br>
>>> visualize<br>
>>> them all together?<br>
>>><br>
>>> Thanx one more time<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>
>><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>
><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>
_______________________________________________<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>
</div></div></blockquote></div><br>