[Paraview] Customize filter toolbar

David E DeMarle dave.demarle at kitware.com
Tue Mar 27 06:34:42 EDT 2012


I missed that you were using a selection related filter.

You could record the action of making the selection too in that case.
But that is problematic because you don't have as much control over
what to plot.

Otherwise, for when you make the selection manually and then apply the
macro you've already got, it seems that ParaView isn't creating the
plot view for you like it normally does for some reason. To work
around, open up a line chart view and then replay your trace. Select
the plot view and then click the eye icon in the pipeline browser next
to the plot filter to show the result.

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 10:34 AM, Zenker, Dr. Matthias
<Matthias.Zenker at erbe-med.com> wrote:
> 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:dave.demarle at kitware.com]
> Gesendet: Montag, 26. März 2012 16:00
> An: Zenker, Dr. Matthias
> Cc: paraview at paraview.org
> 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 <Matthias.Zenker at erbe-med.com> 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
>


More information about the ParaView mailing list