You can do that via scripts. Save this in a file with the .jsx extension
var myComp = app.project.activeItem;
var filePath = app.project.file.path + "/" + myComp.name + ".txt";
var layerList = createTextFromComp(myComp);
createFile(filePath, layerList);
function createFile(filePath, content) {
var myFile = new File(filePath);
if (myFile.open("w")) {
myFile.encoding = "BINARY";
myFile.write(content);
myFile.close();
} else {
alert("Error opening file " + myFile.displayName + ": " + myFile.error, "Function createFile");
}
}
function createTextFromComp(myComp) {
layerNames = [];
numberOfLayers = myComp.numLayers;
for (var i = 1; i <= numberOfLayers; i++) {
layerNames.push(myComp.layer(i).name);
}
return layerNames.join("\n");
}
Then, before running this, make sure that your project is saved.
Run the script by File>Scripts>Run Script File… and choose the file you saved.
It will create a txt file in the same destination as your project with the comp name and inside the list of all the layers.
Andrei
My Envato portfolio.