Dear Wolfgang, Thank you for your help. It works fine. As you said, I need to use boundingbox for stable animation. Thank you again. Best regards, Dalyoung
2020. 4. 19. 오후 4:19, Wolfgang Schuster
작성: Jeong Dal schrieb am 19.04.2020 um 07:08:
Dear all, I am trying to make an animation using the animation module. But it draws 10 figures instead of creating animation. Is there anything I have to do more?
You have to put each animation step in a frame environment. I recommend also to set the boundingbox to the same size for each frame, otherwise your graphic jumps around.
When you use \recurselevel you have to use this:
\startanimation[menu=yes] \dorecurse{10} {\startexpanded \startframe \useMPgraphic{inversionPoint}{n=\recurselevel}% \stopframe \stopexpanded} \stopanimation
or use #1 to access the counter level and get rid of \startexpanded:
\startanimation[menu=yes] \dorecurse{10} {\startframe \useMPgraphic{inversionPoint}{n=#1}% \stopframe} \stopanimation
Wolfgang