Hi,
I have a project I am supposed to turn over to other people so they can "easily edit" and produce the same thing over and over. that would be too simple, so I decided to put as much of the stuff they would need to adjust into a comp "configuration"
this is the expression I used to change the text at any given time. I like this expression because it's easier to work with than source and lets you move markers over lots of layers without having to twirl down each layer to read or move keyframes:
comp("configuration").layer("EDIT-TOP-TEXT-PANEL1").marker.nearestKey( time).comment;
the problem I am having is that it chooses the nearest marker, so you have to guess/tweak till you find the middle. Instead I want to use the last marker until I reach the next
thisLayer.marker.key(thisLayer.marker.numKeys).time
when I try
comp("configuration").layer("EDIT-TOP-TEXT-PANEL1").marker.key(comp("c onfiguration").layer("EDIT-TOP-TEXT-PANEL1").(numKeys).time.comment)
I've broken the expression, I've actually tried to reference the external layer a few ways but seem to break everything when I leave tried and true.
(thanks Mylennium for the pointer to the expression)
BTW, those learning expressions, should check out this page, it's got some nice reference and examples.