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 pmHello 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 pmNo 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 pmThanks 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 amHmm… that looks like scripting. I thought you were asking about expressions.
-
Constantin Maier
December 4, 2022 at 7:47 pmIf 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.
Log in to reply.