...
Macro Installation by copying files
ParaView stores macros in one of two places, depending on your operating system. In windows, it's "%APPDATA%/ParaView/Macros". For all other operating systems, it's "~/.config/ParaView/Macros". For windows users, one way to find out where "%APPDATA%" really is, is to run paraview, then "Tools" -> "Python Shell". Within the python shell, type "import os; print os.environ\['APPDATA'\]".Wiki Markup - You can then install a macro by copying it's file into the appropriate ParaView/Macros directory for your operating system.
- on running (or reloading) ParaView, the you should see yourmacroname (without the ".py" suffix) in one of the macro toolbars. Clicking the macro name will run the macro.
Common Tasks
Save a Movie/Animation
Quick and dirty approach:
- get things to look the way you want onscreen
- "File -> Save Animation", accept the defaults, and hit "Save Animation"
- for File Name, enter the base portion of a frame name "frame", for example.
- set the type to .png (<-- This is important; other formats will burn disk space or butcher your image quality.)
- Hit OK.
- Encode your frames into a movie (using the encode.py script for a plays-on-linux-only x264 movie, or quicktime H.264 for a portable movie) High Quality Movie Encoding
High quality approach:
- Please see the full writeup here: How to Make Movies with ParaView
- Setup
- Load your data (mesh, fields and/or particles), and get them to look the way you want
- preview your animation using the VCR style controls in the VCR Toolbar ("View -> Toolbars -> VCR Controls" if not already visible)
- For your images, figure out your desired resolution and aspect ratio (aspect = pixel_width/pixel_height).
- Here is some information on Choosing Frame Resolution. Please read and understand that before proceeding.
- It may help to lock your view to that ratio ("Tools -> Lock View Size Custom...")
- It helps to see the Animation View ("View -> Animation View" if it's not already visible)
Uniform Grid of Cones
- Create a Plane Glyph as described in "Re-sampling Volume Data to a Planar Uniform Rectilinear Grid", but skip the Save Data step
- select the Plane Glyph in the Pipeline Browser
- apply the Glyph filter
- "Filters -> Alphabetical -> Glyph" (or skip the menus and just hit the glyph icon)
- Set Vectors to the field you want to show (defaults to efield)
- Set "Gyph Type" to "Cone"
- Deselect "Masked Points"
- Accept other defaults. Hit the green "Apply" button. Note: cones will probably be the wrong scale at this point.
- Scale the cones by checking "Edit", and adjust the scale factor (usually down by an order of magnitude or so).
- Remember to hit "Apply" each time after adjusting the scale value.
- If, in the Pipeline Browser, the PlaneGlyphs was not automatically hidden when Glyphs was created, hide it.
- Finishing touches
- The cones tend to look better when they are skinnier. Try setting radius to roughly 0.2
- If the visualization results are to be published or shown to others, the cones look much better at resolution 12 to 18 or so.
...