Mailing List AE-List@media-motion.tv ? Message #43290
From: Dan Ebberts <debberts@comcast.net>
Subject: Re: [AE] Addressing Layer comments in an expression
Date: Sun, 29 Apr 2012 08:53:22 -0700
To: After Effects Mail List <AE-List@media-motion.tv>
This should work:
 
m = thisLayer.marker;
t1 = m.key("left").time;
t2 = m.key("right").time;
t3 = m.key("hold").time; 
if (time >= t1 && time < t2)
  90
else if (time >= t2 && time < t3)
  -90
else
  0
 
 
Dan
 
Sent: Saturday, April 28, 2012 11:50 PM
Subject: [AE] Addressing Layer comments in an expression
 
I cannot seem to find the correct way to write expressions to find the comment's contents in a layer marker.
 
I think it should go something like this but it does not work.
 
m=thisLayer.marker;
 
if ((time >= m.comment("left").time) && (time < m.comment("right").time))
{
rotation=-90;
}
else if ((time >= m.comment("right").time) && (time < m.comment("hold").time))
{
rotation=90;
}
else
{
rotation=0
}
 
Any pointers in the right direction would be appreciated.


Karl Newman
Karl Newman Productions
 
 


 
 
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to ListMaster