CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > Tecplot

Plotting two frame animation with changing zones

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 7, 2015, 06:58
Default Plotting two frame animation with changing zones
  #1
Member
 
beyonder
Join Date: May 2015
Posts: 67
Rep Power: 10
beyonder1 is on a distinguished road
Below is a macro that animates multiple Tecplot frames at the same time. This code is taken from http://http://www.tecplottalk.com/fo...pic.php?t=1043.
I want to change the color of line in each frame. Can anyone suggest how to modify this code.

$!VarSet |MFBD| = 'C:\TECPLOT75'
$!VarSet |lpa| = 1
$!VarSet |NZm1| = |NUMZONES|
$!VarSet |NZm1| -= 1
$!Varset |MOVIE| = "avi"
$!Varset |ANIMSETUP| = "AVI"

$!PROMPTFORTEXTSTRING |ANIMTYPE|
INSTRUCTIONS = "Please enter the animation file type: 1 for AVI, 2 for Raster Metafile"

$!IF |ANIMTYPE| == 2
$!VARSET |MOVIE| = "rm"
$!VARSET |ANIMSETUP| = "RASTERMETAFILE"
$!ENDIF


#Get the name of the output movie
$!PROMPTFORFILENAME |fname|
DIALOGTITLE="Specify output movie file."
DEFAULTFNAME = "*.|MOVIE|"

$!LOOP |NUMFRAMES|
$!if |framemode| >= 2
$!ACTIVEFIELDZONES = [ |lpa| ]
$!Endif
$!if |framemode| == 1
$!XYMAP
ASSIGN { ZONE = |lpa| }
$!Endif
$!FRAMECONTROL PUSHTOP
$!ENDLOOP
$!REDRAWALL
$!Delay 1

$!EXPORTSETUP EXPORTFORMAT = |ANIMSETUP|
$!EXPORTSETUP BITDUMPREGION = ALLFRAMES
$!EXPORTSETUP EXPORTFNAME = '|fname|'
$!EXPORT
APPEND = NO

$!Loop |NZm1|
$!VARSET |lpa| += 1
$!LOOP |NUMFRAMES|
$!if |framemode| >= 2
$!ACTIVEFIELDZONES = [ |lpa| ]
$!Endif
$!if |framemode| == 1
$!XYMAP
ASSIGN { ZONE = |lpa| }
$!Endif
$!FRAMECONTROL PUSHTOP
$!ENDLOOP
$!REDRAWALL
$!Delay 1
$!EXPORT
APPEND = YES
$!ENDLOOP

$!RemoveVar |MFBD|
$!RemoveVar |lpa|
$!RemoveVar |NZm1|
$!RemoveVar |fname|
beyonder1 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
loading issue libraries:libsimpleFunctionObjects.so libsimpleSwakFunctionObjects.so immortality OpenFOAM Pre-Processing 15 April 7, 2024 12:35
[OpenFOAM] Prevent Resolution changing when saving animation? munkifisht ParaView 0 May 19, 2015 07:24
Convert DFT of pressure in rotating frame to stationary frame CFD-123 FLUENT 0 February 12, 2015 17:51
[PyFoam] Problems with the new PyFoam release zfaraday OpenFOAM Community Contributions 13 December 9, 2014 18:58
[PyFoam] having problems with pyfoam Installation vitorspadetoventurin OpenFOAM Community Contributions 3 December 2, 2014 07:18


All times are GMT -4. The time now is 04:46.