...
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:
- read up on Generating High Quality Movie Frames
- read up on High Quality Movie EncodingPlease 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)
...