Hi Patrick, Have you tried adding a StringVectorProperty to your XML for a filename (with <FileListDomain name="files"/>) and having a GUI XML file for adding a reader? I think someone suggested you look at the helix source xml ( http://paraview.org/gitweb?p=ParaView.git;a=blob;f=Examples/Plugins/HelixSource/helix.xml;h=d6c385561d9cdffc5298ced17d700bae8bc167b6;hb=HEAD) and you can see how to add the GUI XML file in the other reader example ( http://paraview.org/gitweb?p=ParaView.git;a=tree;f=Examples/Plugins/Reader;hb=HEAD )
Note: I haven't actually tried this as I'm not at a computer today with the source on it. Regards, Paul On 18 October 2010 18:14, Adriano Gagliardi <[email protected]> wrote: > > Hi Patrick, > > Is there a reason you don't want to write a C++ plugin to achieve this? > Readers are fairly straightforward to implement with ParaView and there are > plenty of examples. Plus, I don't know if it is possible to achieve what > you > want with Python API alone, but hopefully someone will correct me if I'm > wrong. > > Cheers, > Adriano > > =================================== > > Adriano Gagliardi MEng PhD > Business Sector Leader > Computational Aerodynamics > Aircraft Research Association Ltd. > Manton Lane > Bedford > > Tel: 01234 32 4644 > E-mail: [email protected] > Url: www.ara.co.uk > -----Original Message----- > From: Brockmann Patrick [mailto:[email protected]] > Sent: 18 October 2010 18:04 > To: [email protected] > Cc: [email protected] > Subject: Re: [Paraview] Python Reader > > > > I'm assuming you want something more refined than: > > > > Programmable Filter: > > > > filename = 'myfilename' > > execfile(my_python_code.py) > > > > --- > > where filename is used within my_python_code as a variable? > > > Yes, especially if you want to design a plugin where filename is an entry > choosen by a user. > I am looking for a real example in the configuration of a > ServerManagerConfiguration file for a python reader. > > Thanks > Patrick > > > > ********************************************************************** > This email contains information that is private and confidential and is > intended only for the addressee. > If you are not the intended recipient please delete it and notify us > immediately by e-mailing the sender. > Note: All email sent to or from this address may be accessed by someone > other than the recipient, for > system management and security reasons. > Aircraft Research Association Ltd. Registered in England, Registration No > 503668 Registered Office: > Manton Lane, Bedford MK41 7PF England VAT No GB 196351245 > > ********************************************************************** > _______________________________________________ > 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
