On Fri, Mar 23, 2012 at 6:13 PM, Lorenzo <lovecraf...@gmail.com> wrote: > I've tied that, thank you. > > Now, my questions are: > 1. once I've saved a trace, how I run it in paraview?
Tools->Python Shell->Run Script Better still, if you choose to save the trace as a macro (or just put it into ~/.config/ParaVIew/Macros), it shows up in the macros toolbar and you can just click to run it again. > 2. I see the trace keeps the files path. There's no way to include these file > paths within a dot_something file in the same sintax in such a way that I'll > load that file in paraview and it'll automatically load all the referenced > files? The trace is just a python script. def a function that will read the filename string, strip out the leading directory information, and produce and loop over a list of the rest of the filenames from that. Unfortunately python isn't tightly integrated enough yet to automatically call your macro from the File->Open dialog. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Fri, Mar 23, 2012 at 6:13 PM, Lorenzo <lovecraf...@gmail.com> wrote: > I've tied that, thank you. > > Now, my questions are: > 1. once I've saved a trace, how I run it in paraview? > 2. I see the trace keeps the files path. There's no way to include these file > paths within a dot_something file in the same sintax in such a way that I'll > load that file in paraview and it'll automatically load all the referenced > files? > > For example this file would contain something like: > > geometry_1_vtk = LegacyVTKReader( > FileNames=['path/to/my/file/geometry_1.vtk'] ) > geometry_2_vtk = LegacyVTKReader( > FileNames=['path/to/my/file/geometry_2.vtk'] ) > geometry_3_vtk = LegacyVTKReader( > FileNames=['path/to/my/file/geometry_3.vtk'] ) > geometry_4_vtk = LegacyVTKReader( > FileNames=['path/to/my/file/geometry_4.vtk'] ) > … > geometry_N_vtk = LegacyVTKReader( > FileNames=['path/to/my/file/geometry_5.vtk'] ) > > Thank you! > > Lore > Il giorno 23/mar/2012, alle ore 21:40, David E DeMarle ha scritto: > >> Tools->Start Trace >> ..do something.. >> Tools->Stop Trace >> >> In 3.8 I think it was buried under tools->python shell. >> >> David E DeMarle >> Kitware, Inc. >> R&D Engineer >> 21 Corporate Drive >> Clifton Park, NY 12065-8662 >> Phone: 518-881-4909 >> >> >> >> On Fri, Mar 23, 2012 at 4:38 PM, Lorenzo <lovecraf...@gmail.com> wrote: >>> Sorry David, what do you mean with "record a trace"? >>> >>> >>> Il giorno 23/mar/2012, alle ore 19:03, David E DeMarle ha scritto: >>> >>>> You can also record either a trace or a state file in paraview where >>>> you load a couple of files, then edit that recorded file in a text >>>> editor and add in the additional files. Of the two, the trace file, >>>> being a python script, is easier to edit and programmatically extend. >>>> >>>> David E DeMarle >>>> Kitware, Inc. >>>> R&D Engineer >>>> 21 Corporate Drive >>>> Clifton Park, NY 12065-8662 >>>> Phone: 518-881-4909 >>>> >>>> >>>> >>>> On Fri, Mar 23, 2012 at 1:34 PM, Lorenzo <lovecraf...@gmail.com> wrote: >>>>> Thank you Frank; >>>>> I know about this, I just would like to find a way to load everything as >>>>> a vtk as well… >>>>> >>>>> >>>>> Il giorno 23/mar/2012, alle ore 17:47, Albina, Frank ha scritto: >>>>> >>>>>> Hi Lorenzo! >>>>>> >>>>>> Maybe you'd better off with reading the OpenFOAM solution with the >>>>>> built-in OpenFOAM reader. Just create in your case directory an empty >>>>>> OF.foam file and you can start reading the solution by opening this file >>>>>> from the GUI. >>>>>> >>>>>> Hope this helps. >>>>>> >>>>>> Frank. >>>>>> >>>>>> -----Original Message----- >>>>>> From: paraview-boun...@paraview.org >>>>>> [mailto:paraview-boun...@paraview.org] On Behalf Of Lorenzo >>>>>> Sent: Freitag, 23. März 2012 17:11 >>>>>> To: paraview@paraview.org >>>>>> Subject: Re: [Paraview] Load many VTK from different folders at once >>>>>> >>>>>> I was thinking: maybe there's a way to create a text files (or something >>>>>> in another format) which contains the paths to the vtk files I need to >>>>>> open and this file could be submitted to paraview to automate the whole >>>>>> process of opening every each one of the vtk files... >>>>>> >>>>>> What do you think? >>>>>> >>>>>> Thank you! >>>>>> >>>>>> >>>>>> Il giorno 22/mar/2012, alle ore 20:26, lore ha scritto: >>>>>> >>>>>>> Hi all, >>>>>>> I am using openFoam and when I run foamToVTK I get many vtk files every >>>>>>> each >>>>>>> one of which is contained in a different folder. If my geometry is made >>>>>>> up by >>>>>>> many .stl different files then I get the same number of folders. This >>>>>>> is quite >>>>>>> annoying when I need to load up the whole geometry because I need to >>>>>>> enter >>>>>>> the first folder and load the first .vtk, then go to >>>>>>> file-->open-->enter the >>>>>>> second folder and load the second .vtk and so on until I loaded all the >>>>>>> files I >>>>>>> need. As you may understand this is quite time consuming... Any way to >>>>>>> do the >>>>>>> whole process at once? >>>>>>> >>>>>>> I think the best way would be to link together all of these vtk files >>>>>>> into one >>>>>>> single file (even of a different format) using a script (sh, python, >>>>>>> bash...??). >>>>>>> >>>>>>> This is something you may do with the .stl files, if they are in binary >>>>>>> format >>>>>>> you may concatenate the content of each one of them into a single >>>>>>> different >>>>>>> file and then load just that one to have everything at once... >>>>>>> >>>>>>> What do you think? >>>>>>> >>>>>>> Thank you! >>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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 >>> > _______________________________________________ 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