Hi David,

thank you for the hints. Unfortunately it doesn't work for me that way. The 
macro I get is

---------------------------------
try: paraview.simple
except: from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()

my_file_pvd = GetActiveSource()
PlotSelectionOverTime8 = PlotSelectionOverTime()

Render()
----------------------------

I must admit that I don't know Python at all. It's not the same language as in 
"Life of Brian"...  ;-))
I have had a look in the ParaView Manual which did not enlighten me for this 
specific problem.
When I execute the macro above, ParaView creates a Plot SelectionOverTime 
object, but when I hit "Apply", nothing happens. Also it seems to me that the 
Macro expects a specific name for the dataset. How can I generalize it, once it 
works?

Thanks for some more hints...

Matthias


-----Ursprüngliche Nachricht-----
Von: David E DeMarle [mailto:[email protected]]
Gesendet: Montag, 26. März 2012 16:00
An: Zenker, Dr. Matthias
Cc: [email protected]
Betreff: Re: [Paraview] Customize filter toolbar

You can record a trace in which you just apply that filter, and then save the 
trace as a macro.  It won't be in the common filters toolbar, but it will be in 
the macros toolbar which is by default right next to it.

If you are building from source you can add the filter to the Common group in 
Applications/ParaView/ParaViewFilters.xml.

You could also write a plugin that does it.

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909



On Mon, Mar 26, 2012 at 9:27 AM, Zenker, Dr. Matthias 
<[email protected]> wrote:
> Hi,
>
> is there an easy way to customize the filter toolbar? For example, the
> "Plot selection over time" I filter is the one I use all the time. I
> would like to have a button on the toolbar, like there are buttons for
> the calculator, contour plot, clip, ...
>
> How do I do it?
>
> Thanks,
>
> Matthias
>
>
>
> _____________________________________________________________________
> ERBE Elektromedizin GmbH
> Firmensitz: 72072 Tuebingen
> Geschaeftsfuehrer: Christian O. Erbe, Reiner Thede
> Registergericht: Stuttgart HRB 380137
>
>
> _______________________________________________
> 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
>


_____________________________________________________________________
ERBE Elektromedizin GmbH
Firmensitz: 72072 Tuebingen
Geschaeftsfuehrer: Christian O. Erbe, Reiner Thede
Registergericht: Stuttgart HRB 380137

_______________________________________________
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

Reply via email to