E - 6   Movie File Creation with Macros

You can also export an animation using the Tecplot macro language, by using macro commands to export images to a movie file. You can also use loops to repeatedly rotate 3D objects, cycle from one zone to another, and so on, to create your movie. See Chapter 25: “Macros: Task Automation” for detailed information regarding the Tecplot macro language.

A typical macro file for making movies has the following form:

#!MC  1120
... optional commands to set up the first image
$!EXPORTSETUP EXPORTFORMAT = AVI
$!EXPORTSETUP EXPORTFNAME = "mymovie.avi"
$!EXPORTSTART

EXPORTREGION = CURRENTFRAME
$!LOOP 50 
... commands to set up next image
$!REDRAWALL
$!EXPORTNEXTFRAME
$!ENDLOOP                                                                  $!EXPORTFINISH