-
Select path of a shape layer via script
Is it possible to select the Path 1 content of a shape layer via scripting so that I don’t have to twirl down to find it every time?
var activeItem = app.project.activeItem;
if (activeItem == null || !(activeItem instanceof CompItem)) {
alert("Please select or open a composition first.");
} else {
var selectedLayers = activeItem.selectedLayers;
if (activeItem.selectedLayers.length == 0) {
alert("Please select at least one layer in the active comp first.");
} else {var activeComp = activeItem;
var myLayers = activeItem.selectedLayers;
for (i = 0; i <= myLayers.length - 1; i++) {
currentLayer = myLayers[i];
var compName = myLayers[i].name;
//alert(currentLayer.name);
currentLayer.content("Shape 1").content("Path 1").setActive; // how to set this to active so that I may move the points
}
}
}