Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Script to add points to a mask

  • Script to add points to a mask

    Posted by Daniel Crooks on April 2, 2014 at 9:43 am

    hi people

    I need to add x number of new vertices between the current vertices of a mask – following the current bezier paths – basically the same functionality as in illustrator Object/Path/Add Anchor Points. Hiroyuki Sato has an excellent script called Divide for doing this in Illustrator (https://shspage.com/aijs/en/#divide) and I’ve spent the last 2 days trying to port it for after effects but it is just a little beyond my Javascript skills… dang it. I’m hoping someone might have another option on how to do this…?

    cheers../Daniel

    Daniel Crooks replied 12 years, 1 month ago 1 Member · 2 Replies
  • 2 Replies
  • Daniel Crooks

    April 3, 2014 at 8:15 am

    so my problem just got a little more tricky. I now need to redistribute the mask vertices along the mask path. So for example I have a closed mask with 25 vertices (with bezier handles), some are bunched up together and others are spaced quite apart. I now want the final path to have 100 vertices distributed fairly evenly along the mask path staying as close as possible to the original curves…

    any pointers or code snippets very greatly appreciated.

    cheers../daniel

  • Daniel Crooks

    April 3, 2014 at 9:21 am

    for example:

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