1

I fail creating a gif-file showing an animation which runs forward and when ready jumps back to start and runs forward again. My files always run forward and backward:

Exmp = Export["speed2.GIF", Manipulate[Show[
    Plot[res[x, t], {x, 0, 2000}, ImageSize -> 600, 
    PlotRange -> {0., 600.}, Filling -> Bottom]], {t, 0, tmax, 1}],
    AnimationDirection -> Forward, AnimationRepetitions -> Infinity]

"AnimationDirection -> Forward" is not considered. Why?

creidhne
  • 5,055
  • 4
  • 20
  • 28
user96458
  • 11
  • 2

1 Answers1

1

It is better to make your own table of frames. Like this

enter image description here

It goes forward only. When it reaches the end, it will restart from the beginning.

code

frames = 
  Table[Plot[Sin[t], {t, 0, n}, PlotRange -> {{0, 10}, {-1, 1}}], {n, 
    0.1, 10, 0.1}];

Export["speed2.gif", frames, AnimationDirection -> Forward, AnimationRepetitions -> Infinity, "DisplayDurations" -> 0.3]

see this also Exporting a Mathematica animation as a GIF and and controlling the animation rate and the direction

Nasser
  • 143,286
  • 11
  • 154
  • 359