How to set Effect Dropdown Menu value


I have another question. I’m trying to figure out how to set a dropdown menu value in an effect. In this case, I’m trying to point the dropdown menu of a Displacement Map Layer (in a Displacement Map effect) to use a different layer. I made that layer a variable, but I can’t figure out how to point to it. Can you help me figure this one out?


I figured out how to select the layer by setting the index and pointing the dropdown menu to it! However, I’m now struggling trying to get the dropdown menus underneath to cooperate. I tried to use the same technique to use the index of “Luminance” in the dropdown menu, but it doesn’t seem to be working. So, I guess my question has changed to “how do I do that?” Thanks!

THanks for your help! I’ll give this a shot in a bit. I did get the layer one working, for what it’s worth. Like I say, it was when I tried to change the horizontal displace to “luminance” that I couldn’t figure out a solution. I attached the automation settings for selecting the layer so you could see what I did. :slight_smile:
Glass Displacement.json (22.0 KB)

My bad, lol !!
I found a bug when typing the value but it still works fine with number variables as you said,
Nice work! you really got it, you just have to set the “Use For Horizontal Displacement” property to 5.
I marked my lines with green.

download -
Refraction lines.json (25.8 KB)

sorry for my long and messy message, ignore that completely.

1 Like

This is perfect! Thank you!!!

Hi @alonshemer. I have a follow-up question to this. I am applying a “Calculations” effect to a layer and am trying to change the “Second Layer” dropdowns. I can change the first one, using the method above, but is there a way to change the second one to change it from “Source” to “Effects and Masks?”

Thanks in advance!

Hi @skimber, as far as I know its not possible to change this type of dropdowns [Source, Masks, Effects & Masks], adobe didn’t added support for that yet.

maybe if you would save this effect as as an animation preset with the right settings in these dropdowns and then you can change the dynamic parameters with the automation.

Hopes it help you in some way.

Darn. That stinks. Maybe what I’ll do is precomp the reference layer with the effects in it. That should fix it. Thanks for your help, as always!