Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions expressions help…

  • expressions help…

    Posted by Chemix Ferreiro on February 1, 2006 at 6:49 pm

    Hi there

    I’m trying to simulate the look of old 8mm footage. I could use a plugin but… I like to try doing things the hard way first (the learning experience is great…)

    well, so far it looks pretty good but the image is too static. I want it to randomly jitter a little bit… (more on the Y axis than on the X axis) and I can do that BUT, now It looks too nervous! Tha question is: how do I manage to create an expression that does not change every frame… but maybe every 3 frames or better yet: randomly but never closer than 3 or 4 frames??

    Thanks in advance

    BUNKER studio
    “edit in paradise”

    Chemix Ferreiro replied 20 years, 3 months ago 2 Members · 5 Replies
  • 5 Replies
  • Dan Ebberts

    February 1, 2006 at 7:35 pm

    Something like this might do it:

    
    
    minDelay = 3;  // minimum delay (frames)
    maxDelay = 15; // maximum delay (franes)
    maxX = 5; // max x offset (pixels)
    maxY = 15 // max y offset (pixels)
    
    end = 0;
    j = 0;
    while ( time >= end){
     j ++;
     seedRandom(j,true);
     end += random(minDelay,maxDelay)*thisComp.frameDuration;
    }
    value + random([-maxX,-maxY],[maxX,maxY]);
    
    
    

    Dan

  • Chemix Ferreiro

    February 1, 2006 at 7:55 pm

    WOW !!!!! Thanks a lot Dan, I now understand how little I know about expressions !!!!!

    Anyhow, AAF is giving me an expression error regarding the “seedRandom” line when I try to copy/paste your expression on the position track…

    using AAF 5.5 could be the issue?

    Thanks again

    BUNKER studio
    “edit in paradise”

  • Chemix Ferreiro

    February 1, 2006 at 8:17 pm

    Ok, never mind my reply… I just looked through the manual and your MOTIONSCRIPT page and finally figured it out

    THANKS a LOT again for your help.

    Chemix
    Canary Islands

    BUNKER studio
    “edit in paradise”

  • Dan Ebberts

    February 1, 2006 at 8:19 pm

    This version should be 5.5 friendly (didn’t try it though):

    
    
    minDelay = 3;  // minimum delay (frames)
    maxDelay = 15; // maximum delay (franes)
    maxX = 5; // max x offset (pixels)
    maxY = 15 // max y offset (pixels)
    
    end = 0;
    j = 0;
    while ( time >= end){
     j ++;
     seed_random(j,true);
     end += random(minDelay,maxDelay)*this_comp.frame_duration;
    }
    value + random([-maxX,-maxY],[maxX,maxY]);
    
    

    Dan

  • Chemix Ferreiro

    February 1, 2006 at 10:24 pm

    Yes sir, that’s the one. I tried it and works fine. Now it’s time to fiddle with parameters and get the results.

    If you ever come down to Canary Islands, don’t hesitate to contact me first, I’ll show you around.

    Chemi Ferreiro

    BUNKER studio

    BUNKER studio
    “edit in paradise”

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