1

I'm moving an object and I would like to make a track that "follow it", I would like to make a path stroke (that I will animate, trimming it) from the path of the object I move

2

2 Answers 2

2

There are many ways to do this - here is one:

  1. Make a null object
  2. Make a mask path on the null layer using the pen
  3. Set a single keyframe on the mask's path
  4. Go to your object (e.g. a star in this example)
  5. Make a single keyframe on its position
  6. Copy your mask path keyframe
  7. Select your position keyframe
  8. Paste, and you should see your object now moves along the path

To make a tail that follows the star:

  1. Add a new shape layer with a single line in it
  2. Make a keyframe on that line's path
  3. Copy the path from your null
  4. Paste it into your new shape layer.
  5. Now you will have a line the same shape as your star's path.
  6. Add a Trim Paths effect to your Line layer
  7. Animate the 'End' control on the Trim Paths effect to get the path you need.

This set of scripts is excellent, and free. http://www.redefinery.com/ae/rd_scripts/ It includes scripts such as "shapes to masks" and "masks to shape". Highly recommended

screengrab

0

Please tell me you are not looking for optical flow

4
  • I'm trying to make a trim stroke effect, but this Is not the problem, the problem Is that usually you start from a stroke and you can make something follow this stroke, making a Path from it
    – Gianmarco
    Sep 8, 2020 at 9:12
  • But I didnt start from a stroke (a line), I start animating an object moving It, I would like to take his Path and make a stroke (a line)
    – Gianmarco
    Sep 8, 2020 at 9:13
  • Then you might check Quaternion Slerp; i use it to interpolate human motion between keyframes represent in bvh
    – xer-rex
    Sep 8, 2020 at 9:49
  • I Will give It a look
    – Gianmarco
    Sep 8, 2020 at 9:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.