Return-Path: Received: from moutng.kundenserver.de ([212.227.17.10] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP id 4700438 for AE-List@media-motion.tv; Sun, 29 Apr 2012 09:34:01 +0200 Received: from oxbaltgw00.schlund.de (oxbaltgw00.schlund.de [172.19.246.6]) by mrelayeu.kundenserver.de (node=mreu3) with ESMTP (Nemesis) id 0MOpN4-1SJSRX1uLe-0063WL; Sun, 29 Apr 2012 09:35:17 +0200 Date: Sun, 29 Apr 2012 09:35:17 +0200 (CEST) From: "mylenium@mylenium.de" Reply-To: "mylenium@mylenium.de" To: After Effects Mail List Message-ID: <270748928.530864.1335684917106.JavaMail.open-xchange@email.1und1.de> In-Reply-To: References: Subject: Re: [AE] Addressing Layer comments in an expression MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_530863_1204533771.1335684917060" X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v6.20.0-Rev36 X-Provags-ID: V02:K0:gXhHDR5B+JsDNNrVZBN3oGkaV6rN4HNhK/W7Bnuta1V /KMJtwj1hhkCoptrLteWuTIvl+wU7Qxk6wnC+q2wulGNfvSesn HvsZ1dLdD1i7st8weQ+BILQF7rkM9iFS2KlFsvw0Q8BKOpACPM s+vsE26LuccVg7lvW+mpw82djrlauWInlYGoS5b4tmSZA8LypS E4vUt/W2QXjdPKZMYJ7ezFpY0oZJjuTc8VF2KzFw3cT67ER+8q DtRKuRro7FWfqu+F40YBkPFdGs9tlVpMrh7t60NVNvwf3hdSuV T8+1T9cLUwghEXwaG8xCBMpH4mCmyS79hm8841BIoX3gZdKSK2 30z/EvwXpy/lcOGoyox5Z7rcxSw5YiBF7sWkVuQ5yO8rp/bQ6X Lxr6q4gTpOxhc4e8ETNZMt4rcD8eQ3FtyA= ------=_Part_530863_1204533771.1335684917060 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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=C3=A8ne, ange sur terre] ----------------------------------------- www.mylenium.de Karl Newman hat am 29. April 2012 um 08:50 geschrieben: > way to write expressions to find the comment's contents in a layer marker= . >=20 > I think it should go something like this but it does not work. >=20 > m=3DthisLayer.marker; >=20 > if ((time >=3D m.comment("left").time) && (time < m.comment("right").time= )) > { > rotation=3D-90; > } > else if ((time >=3D m.comment("right").time) && (time < > m.comment("hold").time)) > { > rotation=3D90; > } > else > { > rotation=3D0 > } >=20 > Any pointers in the right direction would be appreciated. >=20 >=20 > Karl Newman > Karl Newman Productions >=20 > kwnewman@verizon.net >=20 >=20 ------=_Part_530863_1204533771.1335684917060 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

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
 
 


 
------=_Part_530863_1204533771.1335684917060--