Skip to content

Instantly share code, notes, and snippets.

@keerah
Last active November 24, 2021 23:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keerah/54609de880925fdf207c6d77ce68fb63 to your computer and use it in GitHub Desktop.
Save keerah/54609de880925fdf207c6d77ce68fb63 to your computer and use it in GitHub Desktop.
AE expression: Layer info Names
// Sometimes you need to burn in your layer(s) information into your renders
// 1. Create an empty text layer
// 2. Unfold its properties to Text -> Source Text
// 3. Click its stopwatch while pressing Alt
// 4. Paste this expression. You can exclude these descriptive lines starting with //
// 5. Done. Now adjust the text properties to your preference
// This expression creates text with your composition name and current layer(s) names.
// If you do not want it to be included in the actual render, use Layer -> Guide Layer option
// This expression takes in account all the layers below itself, so to include all of comp layers make this text layer the topmost.
// The expression can be slow if you have some huge amount of layers in your comp.
var p = "", st = thisLayer.index+1;
for (var i = st; i <= thisComp.numLayers; i++) {
if ((time > thisComp.layer(i).inPoint) && (time < thisComp.layer(i).outPoint)) {p = ((p==="") ? p + thisComp.layer(i).name : p + ", " + thisComp.layer(i).name)}
}
"comp: "+thisComp.name+"\nlayers: " + p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment