Expression to select all active audio layers?
I'm trying to get an Array of all audio layers in the current comp that are currently ON and in frame (ie. In point < CTI < Out point).
Any tips on how to do this with expressions?
I'm trying to get an Array of all audio layers in the current comp that are currently ON and in frame (ie. In point < CTI < Out point).
Any tips on how to do this with expressions?
It would be something like this:
myArray = [];
for (i = 1; i <= thisComp.numLayers; i++){
myLayer = thisComp.layer(i);
if (myLayer.hasAudio && myLayer.audioActive && (time >= myLayer.inPoint) && (time <= myLayer.outPoint)){
myArray.push(myLayer);
}
}
Dan
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.