Return-Path: Received: from qmta07.emeryville.ca.mail.comcast.net ([76.96.30.64] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP id 4700649 for ae-list@media-motion.tv; Sun, 29 Apr 2012 17:52:06 +0200 Received: from omta21.emeryville.ca.mail.comcast.net ([76.96.30.88]) by qmta07.emeryville.ca.mail.comcast.net with comcast id 3rNj1j0021u4NiLA7rtPRv; Sun, 29 Apr 2012 15:53:23 +0000 Received: from HPZ200 ([76.20.32.7]) by omta21.emeryville.ca.mail.comcast.net with comcast id 3rtN1j00509DSM08hrtNUU; Sun, 29 Apr 2012 15:53:22 +0000 Message-ID: <7D3E8C3572794580AA461E6B1DBB91FE@HPZ200> From: "Dan Ebberts" To: "After Effects Mail List" References: In-Reply-To: Subject: Re: [AE] Addressing Layer comments in an expression Date: Sun, 29 Apr 2012 08:53:22 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000E_01CD25E5.87D8C000" X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3538.513 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3538.513 This is a multi-part message in MIME format. ------=_NextPart_000_000E_01CD25E5.87D8C000 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable This should work: m =3D thisLayer.marker; t1 =3D m.key("left").time; t2 =3D m.key("right").time;=20 t3 =3D m.key("hold").time; =20 if (time >=3D t1 && time < t2) 90 else if (time >=3D t2 && time < t3) -90 else 0 Dan From: Karl Newman=20 Sent: Saturday, April 28, 2012 11:50 PM To: After Effects Mail List=20 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.=20 I think it should go something like this but it does not work. m=3DthisLayer.marker; if ((time >=3D m.comment("left").time) && (time < = m.comment("right").time)) { rotation=3D-90; }=20 else if ((time >=3D m.comment("right").time) && (time < = m.comment("hold").time)) { rotation=3D90; } else { rotation=3D0 } Any pointers in the right direction would be appreciated. Karl Newman Karl Newman Productions kwnewman@verizon.net ------=_NextPart_000_000E_01CD25E5.87D8C000 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
This should work:
 
m =3D thisLayer.marker;
t1 =3D m.key("left").time;
t2 =3D m.key("right").time;
t3 =3D m.key("hold").time; 
if (time >=3D t1 && time < t2)
  90
else if (time >=3D t2 && time < t3)
  -90
else
  0
 
 
Dan
 
Sent: Saturday, April 28, 2012 11:50 PM
Subject: [AE] Addressing Layer comments in an=20 expression
 
I=20 cannot seem to find the correct way to write expressions to find the = comment's=20 contents in a layer marker.=20
 
I think it should go something like this but it does not work.
 
m=3DthisLayer.marker;
 
if ((time >=3D m.comment("left").time) && (time <=20 m.comment("right").time))
{
rotation=3D-90;
}
else if ((time >=3D m.comment("right").time) && (time = <=20 m.comment("hold").time))
{
rotation=3D90;
}
else
{
rotation=3D0
}
 
Any pointers in the right direction would be = appreciated.


Karl Newman
Karl Newman Productions
 
 
 
------=_NextPart_000_000E_01CD25E5.87D8C000--