-
after effects expressions, text, and subtitles
I am trying to get the marker audio transcription from premiere that i’ve imported (into after effects) to show in after effects, there is an expression for it when used the audio transcription markers will turn into words on screen therefore turning into automatic subtitles.
There is an expression given in the picture tutorial but it isn’t clear how to input them in the expression for text, it’s long and separated so not sure that i’ve inputted it right so it’s giving me an error for the expression that i’ve submitted.
Found in these websites:
https://www.adobe.com/devnet/video/articles/metadata_video.htmlhttps://www.realeyes.com/blog/2010/03/05/caption/
The expression sort of looks like this:
L = thisComp.layer(“Legato_Ames_BTS_02_trans.mov”); max = 5; // number of words
to display n = 0; if (L.marker.numKeys > 0){ n = L.marker.nearestKey(time).index; if (L.marker.key(n).time > time){ n–; } } s = ” “; if (n > 0){ base = Math.floor((n-1)/max)*max + 1; for (i = base; i < base + max; i++){ if (i <= L.marker.numKeys){ s += L.marker.key(i).comment
+ ” “; } } } sThank you for your time.
L = thisComp.layer("Legato_Ames_BTS_02_trans.mov"); max = 5; // number of words
to display n = 0; if (L.marker.numKeys > 0){ n = L.marker.nearestKey(time).index; if (L.marker.key(n).time > time){ n--; } } s = " "; if (n > 0){ base = Math.floor((n-1)/max)*max + 1; for (i = base; i < base + max; i++){ if (i <= L.marker.numKeys){ s += L.marker.key(i).comment
+ " "; } } } s