Created
June 24, 2021 21:44
-
-
Save justintaylor-dev/34c7a843c30db7103bbc78183bf603af to your computer and use it in GitHub Desktop.
Get Name of Active Layer Below #code_aeft
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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