Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How calculate the circumference’s lenght of a mask / dotted lines along mask path

  • How calculate the circumference’s lenght of a mask / dotted lines along mask path

    Posted by Sebastien Allain on April 16, 2006 at 5:54 pm

    Hye everyone !
    I want to surround a lot of pictures with a dotted line for each one.
    The size and scale are very different for the pictures and i want to keep the same aspect for the dotted lines…
    I’m currently using the vegas effect BUT i need to adjust everytime the number of the segment.
    Any idea to calculate (expression) the lenght of a mask to automatically adjust the number of this segment ?

    sebastien

    Sebastien Allain replied 20 years ago 2 Members · 5 Replies
  • 5 Replies
  • Mylenium

    April 16, 2006 at 6:10 pm

    Nope. Sorry, you cannot read mask points with expressions and thuis not calculate mask lengths (but Bresnev Shu’s Expression Effects can). If they are rectangular masks, you would simply need to add the 4 sides together.

    Mylenium

    [Pour Myl

  • Sebastien Allain

    April 17, 2006 at 3:58 pm

    Unfortunatly, i’m using strange shape with bezier…
    Perhaps there is other ways to solve this effect ?

    sebastien

  • Mylenium

    April 17, 2006 at 5:10 pm

    [sebastien] “Perhaps there is other ways to solve this effect ?”

    Not really. The only other option I see is using text (dots and dashes) but similarly they are dependent on accessing the mask data and you woulkd also need acccesss to the advanced text properties (such as spcing in true world pixel units), which AE also doesn’t provide. The cleanest way I can think of would be using Illustrator with a batch action to auto-trace the contours, apply a dashed stroke (which unlike with Vegas is independent from the actual layer size) and then convert that stroke to contours. Those images could then be used in AE.

    Mylenium

    [Pour Myl

  • Sebastien Allain

    April 17, 2006 at 5:16 pm

    I hoped another issue with my favorite software…
    Thanks for this new post Mylenium !

    [Pour Myl

  • Sebastien Allain

    April 19, 2006 at 8:49 am

    OK!!
    Mylenium
    Here is my solution to read the true world pixel units:
    http://www.apt-a.com/cow/dotted_lines_AE7.aep

    My idea was to use the ability of AE to exchange data between mask and spatial position. Let me explain: with a spatial position, we can find a speed so a number of pixel by seconde… if we know the duration, we are able to know the lenght of the path, and the lenght of the mask !!!!!
    It works great with scale too.

    The only thing i need is a script to automatically convert the mask to the spatial position… to avoid copy/paste everytime !

    Let’s have a look and Tell me what you think about it !

    sebastien

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