Mailing List AE-List@media-motion.tv ? Message #43288
From: mylenium@mylenium.de <mylenium@mylenium.de>
Subject: Re: [AE] Addressing Layer comments in an expression
Date: Sun, 29 Apr 2012 09:35:17 +0200 (CEST)
To: After Effects Mail List <AE-List@media-motion.tv>

You need to determine which marker first, either with a numerical index or by using the nearest time... Check Dan's classic:

 

http://www.motionscript.com/design-guide/marker-sync.html

 

Mylenium

[Pour Mylène, ange sur terre]
-----------------------------------------
www.mylenium.de


Karl Newman <kwnewman@verizon.net> hat am 29. April 2012 um 08:50 geschrieben:

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