-
Add markers to parented layers & selected
Hi everyone working on a script. And my current iteration works, but it grabs every single layer that is parented and adds a marker. I’ve tweeked the for loop, and nested if statement but AE just ignores it. The script iterates through every single layer instead of only the selected. If by chance you could help here is my code.
var comp = app.project.activeItem;for (i = 1; i <= comp.layers.length; i++) {if (comp.layers[i].parent != null) {var myMarker = new MarkerValue(comp.layers[i].parent.name);app.project.activeItem.layer(i).property("Marker").setValueAtTime(2, myMarker);}}}TempNull(); // add null};