Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Cycling through layer masks in a fill of shape layer set-up / maybe expression?

  • Cycling through layer masks in a fill of shape layer set-up / maybe expression?

  • graham smith

    August 27, 2020 at 4:37 pm

    Hi all

    So i know the long winded workaround to this and when dealing with 20 / 50 / 100 / more) masks that have been created using the complexity of auto trace (the methods i’ve used) i want to find a way to randomly or on a slider (with some control) be able to cycle through the masks on one layer and not have to move all masks to new layer (there is a plugin for this) I’m hoping its a shape layer of fill mask based expression and it will hopefully cut down a lot of comping and file sizes, as they can get quite big once you have only a section auto traced with say 100 layers and keyframes.

    I don’t think i need to show a file, its just a simple ask. can you cycle through masks in any plugins or expression code?

    I was thinking possibly set matte as this works with shape layer??


    thank you and stay safe


    life is breathtaking!

  • Filip Vandueren

    August 27, 2020 at 7:30 pm

    Hi Graham, since you can’t keyframe the Mask selection popup directly, you can’t write an expression for it either.
    You’ll have to reference a Mask you reserve for this process (say “Mask 0”), and give that mask’s path an expression along these lines:

    maskParade = thisComp.layer("MaskLayer")("Masks");
    n = 1 + Math.floor(time)% maskParade.numProperties;


Viewing 1 - 2 of 2 posts

Log in to reply.

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