Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save justintaylor-dev/34c7a843c30db7103bbc78183bf603af to your computer and use it in GitHub Desktop.
Save justintaylor-dev/34c7a843c30db7103bbc78183bf603af to your computer and use it in GitHub Desktop.
Get Name of Active Layer Below #code_aeft
const startIndex = thisLayer.index + 1;
const endIndex = thisComp.numLayers;
let activeLayer;
for(i=startIndex;i<endIndex+1;i++){
const l = thisComp.layer(i);
if(l.inPoint <= time && l.outPoint > time){
activeLayer = l;
break;
}
}
activeLayer && activeLayer.name || '';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment