Hi, You can use trace feature (under Tools -> Start Trace) of ParaView to generate desired Python script with little bit modification. For example, I generated a Python script to open single pieces of multi-piece dataset and add loop to script to automatically open them,
from paraview.simple import * import glob, os paraview.simple._DisableFirstRenderCameraReset() os.chdir("/Users/turuncu/Desktop/a") for file in glob.glob("atmos_CROSSpoint*.vtk"): # create a new 'Legacy VTK Reader' ocean_CROSSpoint9600vtk = LegacyVTKReader(FileNames=[file]) ... ... ... So, with same logic you could create a script that group two file and modify the Python script to make it automatic for any number of files. I hope it helps, Regards, --ufuk > Hello everyone, > > I was assigned a small project on ParaView and I need help getting > started. > > I need to find a way to loop through N number of source files in the > Pipeline Browser and return the count for number N and group them together > using the group dataset filter. > > Each time I upload the data it will be a different number of files that > look something like this: > [image: Inline image 1] > Right now there are N=22 files but the N will differ each time. So I want > to create a script/or programmable filter that will loop through every > file > in the pipeline browser, add it to a group dataset, and lastly print the > number N. > > How would I begin to do this? Can this be done with a simple script that I > can just copy and paste each time in the shell? Would it be easier to > build > a programmable filter? > > Any help would be appreciated ! > > Thanks, > Amy > _______________________________________________ > 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 > > Search the list archives at: http://markmail.org/search/?q=ParaView > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/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 Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview