Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expressions and mask

  • Expressions and mask

    Posted by Frank Brown on July 19, 2011 at 8:30 pm

    I wonder how to control mask using expression.

    I tried to parent mask to shape layer and used any of simple deformations (zig zag, twist and etc),
    but mask didn`t change. I think that`s because mask should add new points for these deformations.

    So the main subject is how to control (addremoveset the position) points in the mask ?

    Thanks in advance!

    Frank Brown replied 14 years, 9 months ago 2 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    July 19, 2011 at 9:28 pm

    Expressions don’t have access to individual mask nodes and handles. You can only link one path to another.

    Scripts have access to everything, but there’s no live link so you’d have to re-run your script every time you made a change.

    Dan

  • Frank Brown

    July 20, 2011 at 5:14 am

    So same to shape layer?
    I can`t control its points?

    “You can only link one path to another.”

    Could you post an example?

  • Dan Ebberts

    July 20, 2011 at 1:31 pm

    Correct.

    There’s not much to post. The expression to link Layer 2’s mask path to Layer 1’s mask path would look like this:

    thisComp.layer(“Layer 1”).mask(“Mask 1”).maskPath

    I generally just use the pen tool to create one point of the slave mask and then use the pickvwhip to create the expression.

    Dan

  • Frank Brown

    July 20, 2011 at 1:59 pm

    Thank you Dan!

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