I'm bumping in two different problems in the ATL animation that I want to implement.
What I want to achieve:
I want to show a grey rectangle. Then an image appear, zooming from the center of the rectangle.
After that, I show a slideshow of images, 3 times, than the slide show stops, the last image zoom out to the center of the grey rectangle.
The code I use so far
Code: Select all
transform tv_crime_program:
transform_anchor True
align (0.5,0.5)
zoom 0.0
linear 0.3 zoom 1.0
2.0
block:
choice:
"tv blood1" with my_fade
choice:
"tv blood3" with my_fade
2.0
choice:
"tv police" with my_fade
choice:
"tv corpse" with my_fade
2.0
choice:
"tv blood2" with my_fade
choice:
"tv blood4" with my_fade
2.0
choice:
"tv crimetape1" with my_fade
choice:
"tv crimetape2" with my_fade
2.0
repeat 3
zoom 1.0
linear 0.3 zoom 0.0
image tv crime = LiveComposite(
(425,240),
(0,0),Solid("#3a3a3a"),
(0,0), At("tv crimescene",tv_crime_program)
)
1) no matter what do, the zoom happens from and to the upper left corner, not the center. What I need to change so that the zoom happens from/to the center of the rectangle?
2) The first time I show the image, the slideshow plays nicely, but I need to show that image again, and the next times, the slideshow doesn't play. Is there a way to "reset" the animation each time the image is shown ?