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.
Marker Comment to Source Text on Text Layer
----
Jason Hearne
Senior Designer/Animator - GSN
Jason Hearne
Senior Designer/Animator - GSN
-
- Posts: 320
- Joined: June 26th, 2004, 10:01 am
- Location: Folsom, CA
- Contact:
Try this:
Dan
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 ""