Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Trim Path end value controlled by camera Z

  • Trim Path end value controlled by camera Z

    Posted by Peter Zeet on October 5, 2012 at 12:21 am

    Hi!
    the question….
    …first, the elements I have (there are some more elements, but not important here):
    1.cam
    2.null to control the cam
    3.shape layer with a curvy path (like a long long road), and Trim Paths set both Start and End to 0.

    At certain point, the camera flies to the infinite Z, and I want the Trim Path`s End value goes from 0 to a value controled by the camera`s Z movement (or maybe the null wich controls the camera), so you are like a bird flying and watching the road growing at your feet.
    No matter where in Z you are, that End value will always be close to you so you can see the road`s end border…
    (My explanation is awful, but I think you get the picture)

    I tried tweaking a bit that “Fade opacity of a 3D layer based on distance from camera” expression, but not getting great results (mainly because at certain point that X value increases more than the camera Z movement and the road grows at 100%)

    Many thanks!

    Peter Zeet replied 13 years, 10 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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