Marker Comment to Source Text on Text Layer

Moderators: Disciple, zlovatt

Post Reply
bexier
Posts: 4
Joined: March 15th, 2007, 2:50 pm
Location: Los Angeles
Contact:

I have a movie file that is ticked with Layer Markers and comments on each Marker. I am looking for a way to have the comment drive the Source Text on the Text layer.

Each time the time slider crosses a marker, it reads the comment box and displays that text. It should work like Hold keyframes.
----
Jason Hearne
Senior Designer/Animator - GSN
Dan Ebberts
Posts: 320
Joined: June 26th, 2004, 10:01 am
Location: Folsom, CA
Contact:

Try this:

Code: Select all

m = thisComp.layer("movie layer");
n=0;
if (m.marker.numKeys > 0){
  n = m.marker.nearestKey(time).index;
  if (m.marker.key(n).time > time) n--;
}

if (n > 0) m.marker.key(n).comment else  ""
Dan
Post Reply