Quantcast
Channel: Adobe Community : Popular Discussions - After Effects Expressions
Viewing all articles
Browse latest Browse all 47983

Can't find the words to Express myself, Nestled parenthesis?

$
0
0

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.

http://www.jjgifford.com/expressions/basics/index.html


Viewing all articles
Browse latest Browse all 47983

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>