Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Posted by Samuli Alapuranen on February 11, 2008 at 2:10 pm

    I’ve been trying to modify the After Effects’ “Fade In+Out – frames” Animation Preset to be used with Position instead of Opacity (I’m calling it “Push In+Out”). With my skills I just get a lot of errors. 🙂 Maybe someone could give me a few pointers.

    What I’m trying to achieve is: starting from the Layer inpoint, the layer positions itself in 15 frames from a pre-set position (say from the bottom of the screen, just outside the visible area) to another pre-set position (say in the centre of screen). And 15 frames before the end of the Layer outpoint the movement would be vice versa, from the centre of the screen to the bottom.

    Would this be difficult/possible to do with the help of inPoint and outPoint?

    Samuli Alapuranen replied 18 years, 3 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    February 11, 2008 at 3:05 pm

    Something like this should work:

    moveFrames = 15;
    offScreen = [-width/2, thisComp.height + height/2];
    onScreen = [thisComp.width, thisComp.height]/2;

    moveTime = moveFrames*thisComp.frameDuration;
    if (time <= inPoint + moveTime){ ease(time, inPoint, inPoint + moveTime, offScreen, onScreen); }else if (time < outPoint - moveTime){ onScreen; }else{ ease(time, outPoint - moveTime, outPoint, onScreen, offScreen); } Dan

  • Dan Ebberts

    February 11, 2008 at 6:02 pm

    A little tweak to the last version – this one lets you have different entry and exit points and gets rid of a little uneccessary code:

    moveFrames = 15;
    onScreen = [thisComp.width, thisComp.height]/2;
    offScreen1 = [-width/2, thisComp.height + height/2];
    offScreen2 = [thisComp.width + width/2, thisComp.height + height/2];

    moveTime = moveFrames*thisComp.frameDuration;
    if (time < outPoint - moveTime){ ease(time, inPoint, inPoint + moveTime, offScreen1, onScreen); }else{ ease(time, outPoint - moveTime, outPoint, onScreen, offScreen2); } Dan

  • Samuli Alapuranen

    February 12, 2008 at 3:31 pm

    Thanks, this works great!

    Next I’ll try to modify it to work with some other properties and offset the timings a bit. Will keep me busy for a while. 🙂

    Samuli

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy