Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Use expression to control a Channel effect “Source layer mode”

  • Use expression to control a Channel effect “Source layer mode”

  • Al Parusto

    December 3, 2022 at 9:41 pm

    Hello there,

    Is there an expression to control the source layer mode dropdown (“Source”, “Masks”, “Effects and Masks”) of a “Calculations” or “Set Channels” effects ?

    – Al

     

  • Dan Ebberts

    December 3, 2022 at 9:57 pm

    No way to do that, I’m afraid. If you can’t keyframe it, you can’t control it with an expression.

  • Al Parusto

    December 3, 2022 at 10:02 pm

    Thanks for your answer.

    What’s weird is that I do have access to the first dropdown of this “Second Layer” property using :

    effect.property("Second Layer").setValue(layerIndex);

    But I can’t find a way to access to the second dropdown of that same property!

  • Dan Ebberts

    December 4, 2022 at 12:27 am

    Hmm… that looks like scripting. I thought you were asking about expressions.

  • Constantin Maier

    December 4, 2022 at 7:47 pm

    If you’re talking about scripting, the only way to go about it is to add the effect to a layer, set the layer control to another layer, select “Effects & Masks” from the dropdown, then remove the referenced layer and now save the effect as a preset. Afterwards, you can apply the preset within your script and “Effects & Masks” will be selected right away.

Viewing 1 - 5 of 5 posts

Log in to reply.

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