Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Copying mask point overtime

  • Copying mask point overtime

    Posted by Marie-christine Laniel on March 23, 2019 at 10:20 pm

    Hi there everyone!

    I have a question that I had ask myself for a long time, and I can’t find answer anywhere about this subject. Is there a way that when you’re doing masking/rotoscoping, you could select a point from the path, and copy ONLY the point to overwrite the same point of the same path couple of frames later. So my point here is not to copy/paste the entire path of the keyframe, but only one point.

    I hope that someone understand why I am asking this question. Especially when you are using the ”track mask” function and you want one point to stay at the same place, not move, for a period of time. I really hope that I explained it clearly, thank you in advance!

    Marie-Christine Laniel

    Steve Bentley replied 7 years, 1 month ago 3 Members · 7 Replies
  • 7 Replies
  • Eric Santiago

    March 23, 2019 at 11:55 pm

    I have never got that to work.
    Similar to Maya as far as creating blend shapes.

  • Marie-christine Laniel

    March 24, 2019 at 6:10 pm

    Thank you both for your quick answer! Do you know any kind of alternative or script that could help for this purpose?

    Marie-Christine Laniel

  • Steve Bentley

    March 24, 2019 at 8:16 pm

    You might be able to use the new node control. Write an expression that tests the time parameter: if time is between thistime and thistime, then the mask node takes the attributes from some static value (a null say). Outside of those time parameters the null would follow along with the keyframes set in the animation.

  • Marie-christine Laniel

    March 24, 2019 at 8:35 pm

    I am really not that good in expression, I wouldn’t know where to begin unfortunately. But im really interested about the new node control, I never heard of it in after effects! Where do you find it in your after effects interface?

    Marie-Christine Laniel

  • Steve Bentley

    March 24, 2019 at 9:22 pm

    Once you have a mask you can go under the Windows menu and scroll down near the bottom to find “Create Nulls from paths”. From there you can choose either “points follow nulls” or “nulls follow points”.

  • Steve Bentley

    March 24, 2019 at 9:32 pm

    You could probably use MaskAvenger too – its a plug in on aescriptsdotcom. It gives you access to each point on a path.

  • Steve Bentley

    March 24, 2019 at 10:21 pm

    Just tested the points follows nulls idea. It works.
    You have to make two copies of your animated mask. One gets “points follows nulls” and one gets “nulls follows points”. Then you can pickwhip the position value of the nulls AE generated that control mask (that has suddenly stopped animating because you used points follows nulls and the new nulls have no animation on them) and link those to the nulls AE generated that are following the first mask around. After you do this pickwhipping, both masks will be back moving around the way you have animated them. Then pick the one you want to stop moving and apply an expression to the null that controls that point (not the null that is following that point around)
    It would be something like:

    a=thisComp.layer(“MySolid 1: Mask 1 [1.0]”).transform.position // this sets a= to the position of the null that is following the node on the mask around
    if(time>20 || time<60) { // this defines the spot in time (in seconds) where you want the null to freeze
    b=[20,30]; // this sets the position of the null during the freeze (here’s its x=20 and y=30)
    }
    else { // if not within your time parameters do the following
    b=a; // set the null to the position of the null that is following the mask around
    }

    You could also have the null figure out where it is in time so it sets the static position correctly (using the valueAtTime() paramater.
    In the first line of the code the “Mask 1 [1.0] stuff is just the index of the node point. So the third node would be[1.2] because the node indexes start at zero.

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