0
AE Expressions Tip - Display Multiple Layer Names on a single Text Layer
Valorous Hero
,
/t5/after-effects-discussions/ae-expressions-tip-display-multiple-layer-names-on-a-single-text-layer/td-p/15365489
Jun 11, 2025
Jun 11, 2025
Copy link to clipboard
Copied
Occasionally, we want to display active timeline layer's names and if we don't know better, the solution is to use one Text Layer for each 'target' layer.
BUT there's a better way - drop this Expression in a Text Layer, placed at the top of the Timeline hierarchy and drop this Expression into its source text property -
let layerNames = "";
for (let i = 1; i <= thisComp.numLayers; i++) {
if (i === index) continue;
let targetLayer = thisComp.layer(i);
if (targetLayer.active) {
layerNames += `Layer Index:${targetLayer.index} - ${targetLayer.name}\r\n`;
}
}
layerNames.trim();
Very Advanced After Effects Training | Adaptive & Responsive Toolkits | Intelligent Design Assets (IDAs) | MoGraph Design System DEV
TOPICS
Expressions
,
How to
,
Resources
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Adobe Employee
,
LATEST
/t5/after-effects-discussions/ae-expressions-tip-display-multiple-layer-names-on-a-single-text-layer/m-p/15365919#M265837
Jun 11, 2025
Jun 11, 2025
Copy link to clipboard
Copied
Thanks for taking the time to create this post, Roland.
Thanks,
Nishu
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

