Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Time delay and stretching modifiers

  • Time delay and stretching modifiers

    Posted by Elvis Sahakian on September 25, 2007 at 11:37 pm

    OK, so heres the deal:
    I have a Particular Emitter in my first comp, it’s drawing out a path for a logo. in my second comp (wich contains the first) i am trying to get a camera to run along this drawn line so i whip’d the POI to my emitter. at this point i realized i had 2 problems… my first sequence is 10 seconds long wile the second is 15 and also i’d like to use the pick whip to do my camera movement, thus i need to find an expression to retard the movement around 10 frames behind the POI/emitter.

    any help greatly appreciated.

    Elvis Sahakian replied 18 years, 7 months ago 2 Members · 4 Replies
  • 4 Replies
  • Mike Clasby

    September 26, 2007 at 5:24 am

    I dunno what to do about the 10 sec, 15 sec thing. Maybe a time remap or simple Time Stretch, I don’t fully under stand the problem, but I think I have the Camera Delay solved.

    This for delay.

    Just curious what your pickwhipped expression for the Camera’s POI looked like? Did you pickwhip to the “Particular>Emitter>Position XY”? to get this:

    temp = thisComp.layer(“Black Solid 2”).effect(“Particular”)(“Position XY”);
    [temp[0], temp[1], temp[1]]

    Then highlight the last “temp[1]” in line two, pickwhip that to “Particular>Emitter>Position Z” to get:

    temp = thisComp.layer(“Black Solid 2”).effect(“Particular”)(“Position XY”);
    [temp[0], temp[1], thisComp.layer(“Black Solid 2”).effect(“Particular”)(“Position Z”)]

    This puts the POI on the Emitter, taking the XY from “Particular>Emitter>Position XY”and the Z from “Particular>Emitter>Position Z” .

    To get the Camera to follow the Emitter, I just modified a Dan Ebberts delay expression for trails (reference below) to follow 10 frames behind you Camera POI (since the POI is now the same as the Particle’s Emitter due to the earlier expression). This goes on the Camera’s Position Stopwatch:

    delay = 10; //number of frames to delay
    d = delay*thisComp.frameDuration;
    pointOfInterest.valueAtTime(time – d)

    It seems to work fine, the Camera’s position is exactly 10 frames behind the emitter. Change the delay to what you want.

    Dan’s trails expressions, here:

    https://www.motionscript.com/mastering-expressions/follow-the-leader.html

  • Elvis Sahakian

    September 26, 2007 at 6:06 pm

    Thanks for the awsome feedback, its exactly what i was looking for. i will try this in the next hour and give an exact feedback. As soon as i get back to my desk i will post the exact expression that the pickwhip created.

    Watch this space 😀

  • Elvis Sahakian

    September 26, 2007 at 7:34 pm

    ok, i started a completly new sequence so i could use the exact timebase as the other.

    When i pickwhip the camera to the POI this is what comes out:

    comp(“Comp 1 R”).layer(“Emitter”).transform.position

    I tried your method and i dont seem to be able to make it work. Sorry, im not the most Expression saavy person. It keeps giving me all sorts of errors. What im interested in is just using the XY from the emitter for both the camera position and POI wich should work perfectly. your delay expression seems to work, but since my Z axis is currently locked onto the other Comps Z axis, it just looks mighty wrong.

    Any ideas? should i email you an example of exactly what im doing?

  • Elvis Sahakian

    September 26, 2007 at 10:39 pm

    I broke down and waypointed the whole thing by and. 4 hours of work. whooo.

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