[Paraview] 1 script open different vtk files
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Thu Jul 1 10:18:41 EDT 2010
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 <llapispencil at yahoo.es> 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 <utkarsh.ayachit at kitware.com>
> Para: llapis Pencil <llapispencil at yahoo.es>
> CC: PARAVIEW <paraview at paraview.org>
> 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 <llapispencil at yahoo.es>
> 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
>
>
More information about the ParaView
mailing list