Scripting – Set Layer Selection
I have a script that applies an effect. The effect has a layer dropdown menu. I would like to change the layer selected by inputting a numeric value. I’m not sure if this is close.
var myComp = app.project.activeItem;
var myLayers = myComp.selectedLayers;
myParent = myLayers.effect("Parent Me")("Select Parent");
myParent.selection = 3;