Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Subdivide a path

  • Posted by Gennie Fasanella on July 12, 2023 at 1:35 pm

    Hello,

    In Cinema 4D, there is a button called “subdivide.” Feed subdivide a number and it will divide your path into equal segments totaling the number you gave. I want to know if this exists for After Effects. If not, how could I write an expression for one? I’ve been looking into this on my own for some time now but have come up with nothing.

    Filip Vandueren replied 2 years, 10 months ago 2 Members · 1 Reply
  • 1 Reply
  • Filip Vandueren

    July 16, 2023 at 11:22 am

    It depends on why you want to subdivide the path.

    If you’re only after a visual representation of the segments, you can use trim Paths which works with percentages so only that part of the path receives a stroke/fill.

    If you need an actual copy of a section of the Path, it’s a bit trickier: an expression can copy the points and tangents of another path, or get a location at a certain percentage along the path (pointOnPath), but AFAIK there’s no built-in way to combine the two: you don’t know how far along the length of a path a certain point lies, so that needs some code/logic

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