Skip to content

Instantly share code, notes, and snippets.

@mediochrea
mediochrea / Layer names to text layer
Created May 8, 2017 23:40
Layer names to text layer #expression #aftereffects
source_footage_name = "";
for (i = 2; i <= 30; i++){
if (i == index) continue;
my_layer = thisComp.layer(i);
if ( (my_layer.hasVideo && my_layer.active)) continue;
if (time >= my_layer.inPoint && time < my_layer.outPoint){
try{
source_footage_name = my_layer.source.name;
}catch(err1){
source_footage_name = my_layer.name
### Keybase proof
I hereby claim:
* I am mediochrea on github.
* I am mediochrea (https://keybase.io/mediochrea) on keybase.
* I have a public key whose fingerprint is E48A 935B 56C5 546A 02DF 8B77 AF5C 3D2D 03A2 5C05
To claim this, I am signing this object: