Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Sequentially Animating Masks Using mask(index)

  • Dan Ebberts

    January 26, 2015 at 10:26 pm

    For an expression on the Mask Expansion property, this should give you the index of the mask itself:

    thisProperty.propertyGroup(1).propertyIndex

    dan

  • Mike Kirsch

    January 27, 2015 at 7:24 pm

    That did the trick. Thank you so much! This was the first time I’ve ever used an expression that wasn’t just straight copy/pasted, so thank you! (Although it was mostly stolen from a tutorial, but still – you have to learn somehow.)

    I also caught some other errors as I refined the expression. My final code is below.

    delay = thisComp.layer("Null 1").effect("Delay")("Slider")
    d = delay*thisProperty.propertyGroup(1).propertyIndex;
    t = time-d
    exp = thisComp.layer("Null 1").effect("Slider Control")("Slider").valueAtTime(t);
    exp

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