[Paraview] Export python programmable filters ?

2009-01-23 Thread Pierre JUILLARD
Hi all, Can a python programmable filter be saved? As described on this wiki page, it is possible to export cutom programmable filters (last part: "Managing custom filters"): http://www.paraview.org/Wiki/Custom_Filters Is a similar mechanism available for python programmable filter? It would be

Re: [Paraview] Export python programmable filters ?

2009-01-23 Thread Peter Brady
My solution (not particularly eloquent) is to store the programmable filter in a file and read it into a string at the the beginning of the my script. On Fri, Jan 23, 2009 at 6:33 PM, Pierre JUILLARD wrote: > > Hi all, > > Can a python programmable filter be saved? > > As described on this wiki p

Re: [Paraview] Export python programmable filters ?

2009-01-24 Thread Pierre JUILLARD
Hi Peter, Tank you for your help. What do you mean exactly with "read it into a string at the the beginning of the script". Is it related to the way you make use of python programmable filters in batch mode (in this case, I guess that you start ParaView with a python script)? Could you explain me

Re: [Paraview] Export python programmable filters ?

2009-01-24 Thread David E DeMarle
Another solution is to make a custom filter that contains the programmable filter. The custom filter can be exported as an xml file, emailed, and imported by another user. cheers, On Sat, Jan 24, 2009 at 7:02 AM, Pierre JUILLARD wrote: > Hi Peter, > > Tank you for your help. > What do you mean ex

Re: [Paraview] Export python programmable filters ?

2009-01-24 Thread Peter Brady
Hi Pierre, I do most of my python processing via pvpython. At the top of my processing script I simply have something like: filterfile = open('prog_filter.py', 'r') filterString = filterfile.read() filterfile.close() where the file: 'prog_filter.py' is my programmable filter. To use it: defor

Re: [Paraview] Export python programmable filters ?

2009-01-24 Thread Berk Geveci
As Dave mentioned, the best way of doing what you want is to wrap the programmable filter in a custom filter. We are planning some improvements that will make this better by the next release: - Custom readers - Custom writers - Capability of defining parameters of a programmable filter that will b