Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions AE Expression to move in Z Space (stratastencil)

  • AE Expression to move in Z Space (stratastencil)

    Posted by Dan Vink on May 16, 2013 at 3:02 am

    Hi There,

    I’m trying to achieve a stratastencil effect in after effects. It’s working ok, but I feel it could be better. I’m using this expression to send each layer backwards in Z Space

    veloc = 2000;
    x = position[0];
    y = position[1];
    z = position[2] + (time – inPoint) *veloc;
    [x,y,z]

    This isn’t perfect, all the objects are constantly traveling backwards which doesn’t really give the desired stop motion style effect. Does anyone know how I could modify this expression so that the layer ‘jumps’ back every second frame? Or can anyone suggest a different expression?

    I’ve also tried manually setting up each layer to jump back every 2 frames, but since that resulted in pre composing the layers to avoid a unworkable timeline, it affects the lighting/shadows.

    I hope this is clear, in case it’s not this is what i’m trying to achieve –
    https://vimeo.com/60763684

    Regards
    Dan

    veloc = 2000;
    x = position[0];
    y = position[1];
    z = position[2] + (time - inPoint) *veloc;
    [x,y,z]

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Vimeo framework” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

    Dan Vink replied 12 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    May 16, 2013 at 3:08 am

    Something like this should work:

    veloc = 2000;
    f = timeToFrames(time-inPoint);
    zOffset = framesToTime(Math.floor(f/2))*veloc;
    value + [0,0,zOffset]

    Dan

  • Dan Vink

    May 16, 2013 at 4:55 am

    Nailed it!

    Thanks Dan, worked a treat.

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