Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Parenting & Linkage to create a moving Train

  • Parenting & Linkage to create a moving Train

    Posted by Marcus Folkesson on December 2, 2008 at 8:34 am

    Hey,

    I need some advice regarding the need to create a moving train. I will use a top view, where a locomotive will carry a couple of vehicles behind it. Each and every vehicle will be connected to and follow the other. I have no problem with the parenting part. I do need help to solve the linkage between the vehicles though! How do I connect them and make them move seamlessly and independently?

    Thanks!

    /Marcus

    Trent Armstrong replied 17 years, 9 months ago 2 Members · 1 Reply
  • 1 Reply
  • Trent Armstrong

    December 2, 2008 at 7:06 pm

    It might be best for you to use valueAtTime() for the cars that follow. You can put layers in numerical order and use the index of the previous layer to link through valueAtTime().

    Have the Engine layer Align to Path.

    You would need to adjust the (time – #) to get the right offset. This can be done easily across all the layers with an Expression Slider.

    LAYER 2 Position Expression: thisComp.layer(index – 1).position.valueAtTime(time – 1)

    Then duplicate Layer 2 for the number of cars you need and replace them if you need to.

    Trent Armstrong – Creative Cow Leader
    https://www.dallasaeug.com

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