-
Add something to a selected group of a shapelayer
Hallo, so i want to add something, for example a trim path effekt, to a shapelayer. That works with the script below but how could i change the script so it will put the effekt on a the selected group of the shapelayer?
var comp = app.project.activeItem;
var layers = comp.selectedLayers;
for (var i = 0; i < layers.length; i++) {
if (layers[i] instanceof ShapeLayer) {
var propertyOne = layers[i].property(“ADBE Root Vectors Group”);
propertyOne.addProperty(“ADBE Vector Filter – Trim”);
}
}
There is the code: selectedProperties, but i dont know how to implement this into my script.