[Date Index] [Thread Index] [Author Index]
Re: on Export and AnimationRepetitions
Thanks dh and Xerxes. The one where one manipulates the display time of each frame as in Export["~/Desktop/test.gif",%,"DisplayDurations"- >ReplacePart[ConstantArray[0.5,Length[%]],3600,-1]] is a clever work-around. The help files don't really specify that AnimationRepetitions->1 would work for Export. It does work for built-in the animation commands. Anyhow, the problem is solved for now. We should all write to Mathematica and let them know about this bug. Sam On Mar 7, 2:45 am, Xerxes <saul.co... at gmail.com> wrote: > Hello, > > > Export["~/Desktop/test.gif", %, AnimationRepetitions->1], > > but it didn't work. The file generated still plays the animation over > > and over again. > > I tried this out on 6.0.1 under Windows and verified that it is > broken. > A simple workaround might be > > Export["~/Desktop/test.gif",%,"DisplayDurations"- > > >ReplacePart[ConstantArray[0.5,Length[%]],3600,-1]] > > Of course, this will fail if somebody views your animation for over > an hour. Don't try substituting Infinity for the long duration, since > this crashes the GIF-making subprogram.