displaying multiple images over time

Moderators: Disciple, zlovatt

Post Reply
amitzinman
Posts: 17
Joined: November 22nd, 2007, 4:56 am
Location: Tel Aviv
Contact:

Hi,
I have 400 employee pictures that I need to display in 3 minutes.
my plan is:
1. Line all of them together
2. Use the index value to display 3 pictures every second, by adjusting the scale property from 0 to 100 and than back to 0.

Problem is, I am a bit weak on the math side and I need help working out the right expression.

Amit
kobyg
Posts: 128
Joined: December 7th, 2007, 10:11 am

Try this expression for the scale property.
It will expand and shrink groups of 3 pictures each time together, every second.

Code: Select all

T1=0.2;
T2=0.2;
i = Math.floor((index-1)/3);
if (time<i+0.5) s = ease(time, i, i+T1, 0, 100);
if (time>=i+0.5) s = ease(time, i+1-T2, i+1, 100, 0);
[s,s]
Where:
T1 is the time (in seconds) the layer expands from 0% to 100%
T2 is the time (in seconds) the layer shrinks back from 100% to 0%

I don't know how you want to position the pictures on screen, but you will have to position them in such a way that each picture, in those 3 picture groups, won't hide one another.

Koby.
Post Reply