[Paraview] How do I install a python macro?

Sebastien Jourdain sebastien.jourdain at kitware.com
Tue Nov 9 21:35:12 EST 2010


Hi Ken,

We recently changed the Macro menu and the way that macro are managed.
The wiki explain the new way.

For your case on ParaView 3.8.0, you need to go to Tools -> Python
Shell, and on the right side select a python file from your disk and
click on the Add Macro button.

Seb

On Tue, Nov 9, 2010 at 4:32 PM, Ken Olum <kdo at cosmos.phy.tufts.edu> wrote:
> I am a new ParaView user.  I'm using 3.8.0.  I understand there's a
> facility for writing macros in python and putting them in a toolbar.
> I can type the code I want the macro to execute into the python shell,
> but I don't understand how to get it established as a macro.  I can't
> seem to find any documentation.  In
> http://www.itk.org/Wiki/Python_GUI_Tools#Macros it says
>
>   Macros allow the user to define a Python script as built-in actions
>   that become accessible from the Macros menu or directly inside the
>   Toolbar.
>
>   Once a local file is defined as a Macro...
>
> This is what I want, and indeed I see the "Macros" menu and the
> toolbar, both empty.  So how do I perform this operation of defining a
> local file as a macro?
>
> Thanks.
>
>                                        Ken Olum
> _______________________________________________
> 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
>


More information about the ParaView mailing list