Code:
_nmfrm = 50 ! number of frames
_tmax = 1 ! time at end of animation/SHOW,PNG,,0
PNGR,COMP,1,9
PNGR,ORIENT,HORIZ
PNGR,COLOR,2
PNGR,TMOD,1
/GFILE,800,
/CMAP,_TEMPCMAP_,CMP,,SAVE
/RGB,INDEX,100,100,100,0
/RGB,INDEX,0,0,0,15
! /show,png ! Tell ANSYS to save as a PNG file
*do,_I,1,_nmfrm !Loop on frames
set,,,,, _tmax*(_I-1)/(_nmfrm - 1)
/rep ! Replot
*enddo
/CMAP,_TEMPCMAP_,CMP
/DELETE,_TEMPCMAP_,CMP
/SHOW,CLOSE
/DEVICE,VECTOR,0