Hey Aharon,
the script cannot display whatever is the text of the marker, because like Dan said: reading the text of a marker is broken in the last few versions of After effects.
The script uses a different method that’s not broken: you can say marker(2) or you can say marker(“2”) to select a marker: the first one selects the 2nd marker, the second one selects the marker who’s text is “2”
So if you check all possible names a marker could have, and see if you ‘hit’ an existing marker, you can then compare the time of that marker to the playback time to determine if the found marker is the ‘current’ marker.
In my example it creates possible names by adding a number from 1-110 after the word “scene “: those are the only markers the script will find. You can empty the ‘prefix’ string if it’s just numbers.
Another possible method would be to compare markernames against a list of possible values like
[“marker 1″,”marker 2″,”the third marker”,”intro”,”outro”,”music cue”] etc. which is not very helpful either.
Any way: you have to know or calculate all possible values of the marker’s text for this to be succefull.
I hope this helps.
Let me know if you need a script utilizing the second aproach, though mind that I’m on a CET timetable 😉
If you know someone who’s more versed in scripts rather than expressions, I still think that it would be a piece of cake to write a script that converts markernames to textsource keyframes, because I think the functionality is not broken in the scripting side of after effects.
Oh, and thanks for your podcasts… They’re fun.