I’m making a script that does things to Path on a ShapeLayer. But can’t single out the Path from multiple selectedProperties because it can be nested inside PropertyGroups. if Path’s PropertyGroups has group outside AE auto select that group too, some groups can have “Path” as name and user can accidently select multiple PropertyGroups and Paths or other Property.
var shapeLayer = app.project.activeItem.selectedLayers;
var props = shapeLayer.selectedProperties;
var find = cars.getElementsByName(“Path”);
I have tried like this but it’s not working. Pls help.🙏