AE Effect Controls Panel Opening Issue
I have written a script that adds an effect to the currently selected layer and then automatically opens the Effect Controls panel.
Because app.findMenuCommandId("Effect Controls") toggles the panel (opens or closes it),
it does not meet my needs.
Therefore I used the menu command "3734": "OpenEffectControls" instead,
as shown in the code below:
var cmdId = app.findMenuCommandId("Open Effect Controls");
app.executeCommand(cmdId);
However, the panel does not open when no layer is selected, and it also fails to open when the selected layer is a shape layer.
The panel opens correctly only when the selected layer is an AV (footage) layer.
Is this a limitation of After Effects itself?
What approach can guarantee that the Effect Controls panel opens automatically regardless of which type of layer is selected?
