Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Is there a way to return which mask vertices the user has selected?

  • Is there a way to return which mask vertices the user has selected?

    Posted by Corey Drake on September 23, 2011 at 5:37 pm

    I have built a script for recording the position of bezier points, but the way I select the desired point is a little clunky. I have a button that creates a null and then cycles through each point so you can visualize the selection. I also have options for checking bezier points up and down the array so I can average them.

    Ideally, what I want to do is have the user select the points they want, and get the average position for the ‘tracking’ data.

    My thoughts on the order:
    Check which mask is selected
    Check which vertices are selected
    Add the positions of the selected vertices and divide by the number selected

    Thanks in advance for any help.

    Dan Ebberts replied 14 years, 10 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    September 23, 2011 at 8:47 pm

    As far as I know, the selection status of a mask vertex is not accessible.

    Maybe you could create and position little guide layers above the mask vertices. Then the user could select them and you could detect it. Just a thought…

    Dan

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