How can I apply any effects to a layer using scripts in Illustrator?
I'm writing a script (in JSX) for Illustrator CC 2020, but there seems to be no way to apply an effect (like Gaussian blur) to a layer.
Of course it is possible to do this manually, but I'm looking for the right code to do this from my script.
Any suggestions?
NB: I searched all documents on https://www.adobe.com/devnet/illustrator/scripting.html, like the Scripting Guide, as well as the Illustrator Reference for Javascript. But nothing there... Neither on this forum, nor Adobe's website, Stackoverflow, Google, Bing, anywhere :'(
So far, I have this:
var myLayer = app.activeDocument.layers.getByName("Layer1");
// apply effect to myLayer
