-
Current Frame Number
Hi everyone
i’m using an expression that shows me the active layer name in an Edit.
i was wondering if there’s a way to add the current active layers’ frame number as well…
i found the original expression in the AE help file but i just can’t seem to tweak it to add that extra funtionality.
and i don’t want to paste a “Timecode” effect on every layer if possible.
any ideas ?
any help would be more than welcome
and thanks in advanceA
source_footage_name = "";
for (i = 1; i <= thisComp.numLayers; 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.timeToFrames(time);
}catch(err1){
source_footage_name = my_layer.timeToFrames(time)
}
break;
}
}
source_footage_name