AE ENHANCERS

Expressions/Scripts/Presets
It is currently Tue Jul 22, 2014 8:26 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Marker Comment to Source Text on Text Layer
PostPosted: Mon Nov 26, 2007 2:58 pm 
Offline

Joined: Thu Mar 15, 2007 2:50 pm
Posts: 4
Location: Los Angeles
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 26, 2007 4:03 pm 
Offline

Joined: Sat Jun 26, 2004 10:01 am
Posts: 306
Location: Folsom, CA
Try this:

Code:
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

_________________
http://www.motionscript.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group