Thanks a lot!
The movment of the first Layer is already defined by keyframes and the animation of the position is working properly. I might just try to change the pictures to 3d space and move those I want in the forground towords the camera. That should also solve my problem.
https://forums.adobe.com/people/Rick+Gerard schrieb
sif = effect("slideIn Frames")("Slider");
sof= effect("slideOut Frames")("Slider");
// find in and out point
inTime = sif * thisComp.frameDuration;
if (effect("Match SI SO")("Checkbox") == 0) {
outTime = sof * thisComp.frameDuration;
}
else if (effect("Match SI SO")("Checkbox") == 1) {
outTime = inTime;
}
// Fix layer size when scaled
sf = scale - [100, 100];
xSize = width + (width * sf[0]/100);
ySize = height + (height * sf[1]/100);
realSize = [xSize, ySize];
// Set Positions
spx = 0 - realSize[0] + realSize[0]/2 ;
rstx = value [0];
rsty = value[1];
epy = thisComp.height + realSize[1] - realSize[1]/2;
// create movement
freq = effect("bounce Frequency")("Slider");
amplitude = effect("bounce Amplitude")("Slider");
decay = effect("bounce Decay")("Slider");
posCos = Math.abs(Math.cos(freq*time*2*Math.PI));
nt = time-inPoint;
y = amplitude*posCos/Math.exp(decay*nt);
moveIn = Math.min(linear(time,inPoint,inPoint + inTime,spx ,rstx-y));
moveOut = Math.min(easeIn(time,outPoint - outTime,outPoint - thisComp.frameDuration,rsty ,epy));
[moveIn, moveOut]
This look very interesting! Do you happen to have a project file which has this applied? I would love to try this sometime!
Thanks again!
Greetings,
Adrian