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!