[Paraview] User arguments & the programmable filter

Adriano Gagliardi agagliardi at ara.co.uk
Tue Jul 6 11:39:27 EDT 2010


Felipe,

That is a useful option that I never thought about.

Thanks,

Adriano


===================================

Adriano Gagliardi MEng PhD
Business Sector Leader
Computational Aerodynamics
Aircraft Research Association Ltd.
Manton Lane
Bedford

Tel: 01234 32 4644
E-mail: agagliardi at ara.co.uk
Url: www.ara.co.uk 
-----Original Message-----
From: paraview-bounces at paraview.org [mailto:paraview-bounces at paraview.org]
On Behalf Of Felipe Bordeu
Sent: 06 July 2010 15:38
To: paraview at paraview.org
Subject: Re: [Paraview] User arguments & the programmable filter

Hello,

I also test all my 'codes' in the programmable filter first.
To deploy a filter I put the filter body inside a python file. Then in the
programable filter I put:

input_file='hello'
output_file='bye.log'
execfile('my_custom_filter.py')

And finally I create a custom filter 'Tools->Create Custom Filter'  
with the right name and I expose only the 'script' property.

at the end, the user has a filter in the filter menu, and only has to change
the filename. (all the other properties are hidden).

And if you work in a centralized environment, you can make upgrades to the
python file without redeploying your solution.

I hope It will help you.

Felipe

Le 6 juil. 10 à 15:30, Adriano Gagliardi a écrit :

>
> Dear All,
>
> Is it possible to pass user arguments into the programmable filter 
> without having to manually edit the code? For example, I have a simple 
> file writer and the user must define the filename to write to. Rather 
> than having to copy and paste the code and manually enter a new 
> filename each time, is it possible to turn this into a custom filter 
> which gives the user the option of entering a filename to write to?
>
> Regards,
>
> Adriano
>
> ===================================
>
> Adriano Gagliardi MEng PhD
> Business Sector Leader
> Computational Aerodynamics
> Aircraft Research Association Ltd.
> Manton Lane
> Bedford
>
> Tel: 01234 32 4644
> E-mail: agagliardi at ara.co.uk
> Url: www.ara.co.uk
>
>
> **********************************************************************
> 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


**********************************************************************
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

**********************************************************************


More information about the ParaView mailing list