hi again, 

I tried to run the script through the python shell, but it still comes up 
errors. The error message is the following:

Traceback (most recent call last): 
File "<string>", line 3, in <module>
File "C:\Archivos de programa\ParaView 
3.8.0-RC2\lib\paraview-3.8\paraview\simple.py", line 109, in OpenDataFile
raise RuntimeError, "File not readable: %s " % filename
RuntimeError: File not readable: C:\Documents and settings\...@\mis 
documentos\stuttgart\hiwi\outputtk\output\out1-1.vtk 

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?

#The python script is the following:

from paraview.simple import *

reader1 = OpenDataFile('C:\Documents and Settings\output\out1-1.vtk')
reader2 = OpenDataFile('C:\Documents and Settings\output\out1-2.vtk')
reader3 = OpenDataFile('C:\Documents and Settings\output\out1-3.vtk')
reader4 = OpenDataFile('C:\Documents and Settings\output\out1-4.vtk')

Show(reader1)
Show(reader2)
Show(reader3)
Show(reader4)


Render()

#############

Thanks again




----- Mensaje reenviado ----
De: Utkarsh Ayachit <[email protected]>
Para: llapis Pencil <[email protected]>
CC: PARAVIEW <[email protected]>
Enviado: jue,1 julio, 2010 16:18
Asunto: Re: [Paraview] 1 script open different vtk files

I believe you are trying to "open" the python script as a data-file
from File |Open menu-option. To run a python script from the GUI, you
open the Python shell from "Tools | Python Shell" menu and then click
"Run Script" on the bottom-left corner to load the script to run.

Utkarsh

On Wed, Jun 30, 2010 at 6:46 AM, llapis Pencil <[email protected]> wrote:
> hi again,
>
> thanks for the response. So i understand i have to create a file contraining
> this information (reffering to my files) to open it later directly with
> Paraview. Which type of file should be? because i tried many files and still
> not work. Paraview ask me to chose a reader to open it. Maybe I should know
> also which reader. Here is the information contained in the file to be open.
>
> from paraview.simple import *
>
> reader1 = OpenDataFile(“out1-1.vtk”)
> reader2 = OpenDataFile("out1-2.vtk")
> reader3 = OpenDataFile(“out1-3.vtk”)
> reader4 = OpenDataFile("out1-4.vtk")
>
> Show(reader1)
> Show(reader2)
> Show(reader3)
> Show(reader4)
>
> Render()
>
> ________________________________
> De: Utkarsh Ayachit <[email protected]>
> Para: llapis Pencil <[email protected]>
> CC: PARAVIEW <[email protected]>
> Enviado: mié,23 junio, 2010 16:08
> Asunto: Re: [Paraview] 1 script open different vtk files
>
> # for paraview 3.8.0 or greater.
>
> from paraview.simple import *
>
> reader1 = OpenDataFile(“file1”)
> reader2 = OpenDataFile("file2")
> ....
> Show(reader1)
> Show(reader2)
> ...
>
> Render()
>
> On Wed, Jun 23, 2010 at 9:35 AM, llapis Pencil <[email protected]>
> wrote:
>>
>> Hi again,
>> thanks for the response. Now my question is how can i create a script
>> which
>> tells PARAVIEW to open a certain number of vtk files at once and visualize
>> them all together?
>>
>> Thanx one more time
>>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>



      
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to