I have been trying to make a script that will automatically apply an effect to the selected layer. So far, it looks like this:
var myLayer = app.project.activeItem.selectedLayers;
var myEffect = myLayer.Effects.addProperty("My Effect");
The only class I found in the CS3 scripting guide that has the
addProperty method was the
PropertyGroup object, found on page 147. There is no mention of
myLayer.Effects. In fact, I have not seen an attribute with a capitalized first letter before.
I am going to use this to automate creating around 100 circles on a layer. (This effect is found under Effects & Presets > Generate > Circle.) I want to be able to provide a list of X/Y coordinates and for each one generate a circle with this center and a fixed size. This list could come from a file or from a list of each null object on the same layer.