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
|