Return-Path: Received: from [208.97.132.66] (HELO homiemail-a15.g.dreamhost.com) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP id 5365168 for AE-List@media-motion.tv; Mon, 03 Feb 2014 19:04:12 +0100 Received: from homiemail-a15.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a15.g.dreamhost.com (Postfix) with ESMTP id 47E2476C06B for ; Mon, 3 Feb 2014 10:08:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=aescripts.com; h= mime-version:in-reply-to:references:from:date:message-id:subject :to:content-type; s=aescripts.com; bh=sVmvpH1Y8ha2ncY6nP/PahTfnS w=; b=Pjpu5EAgSBaryNKG9JrafMtHvsJkYjrozweSArrlJT3oUyRRgra160687B 3ix88R5GkgX4lBOS16t/p8Lak5YDBNfxEVYwXC7T0TpND68cmnGzEeb/kK/7fv3g krML+7J0FOLLiV5o7u6GWKhQPsOslcdR6RdvJzq7QQnv8s+Lw= Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: lists@aescripts.com) by homiemail-a15.g.dreamhost.com (Postfix) with ESMTPSA id 0B9F876C069 for ; Mon, 3 Feb 2014 10:08:38 -0800 (PST) Received: by mail-vc0-f174.google.com with SMTP id im17so4914479vcb.19 for ; Mon, 03 Feb 2014 10:08:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=s1zzvZfl0PhCIdxgLzT7m0fiJn2R4oQupidC52P2ews=; b=FnSl3Ak5QbRlbR0Yh5j3EtKbDqMAoGs6CFVnCbRK1JAYzmEL7VkcyhtBaLCbzFv7I2 3qAHNS8kmzJh4toc00gHxxxHrwvtJkNuyXLI2jLIeL1xB2JAxrXMvuNm1jzqG81I2YQX E+pO0dt1WbwJSDjUN1J4AI3GDPehVkwR0PqpbcDHXChY5tekZxwfEZQvXRwPuHlbMxzn rZdhSOKrrNsdMbK2h/4fd7Itx5PlqL2UhKnzSROttio/Nzcm1TwRg40dh6dP9zFdJ86D vuQWnHDAq4yxar4z+pwzkYwwzbBhFxUWt4NeXJdaLXZPeBLsEeNNOKh3XsCWIE+Ov1k/ 7nUQ== X-Received: by 10.220.193.132 with SMTP id du4mr179225vcb.39.1391450918136; Mon, 03 Feb 2014 10:08:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.193.7 with HTTP; Mon, 3 Feb 2014 10:07:57 -0800 (PST) In-Reply-To: References: From: Lloyd Alvarez Date: Mon, 3 Feb 2014 13:07:57 -0500 Message-ID: Subject: Re: [AE] Trigger opacity from markers AND use marker duration To: After Effects Mail List Content-Type: multipart/alternative; boundary=089e0111d732b2b2d204f1846960 --089e0111d732b2b2d204f1846960 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable This should do it: myNearestKey =3D marker.nearestKey(time); (myNearestKey.comment =3D=3D "active" && time >=3D myNearestKey.time && tim= e <=3D (myNearestKey.time + myNearestKey.duration))?100:0 Cheers, Lloyd On Mon, Feb 3, 2014 at 12:21 PM, Salvador wrote: > By the way, I could easily do this by having two markers, "on" and "off" > but for practical reasons I really need only one marker to trigger the > opacity on and off. > > > On Mon, Feb 3, 2014 at 4:45 PM, Salvador wrote: > >> http://www.motionscript.com/design-guide/marker-sync.html >> >> >> On Mon, Feb 3, 2014 at 4:36 PM, mylenium@mylenium.de < >> mylenium@mylenium.de> wrote: >> >>> Which of Dan's examples are you referring to specifically? >>> >>> Mylenium >>> >>> [Pour Myl=C3=A8ne, ange sur terre] >>> ----------------------------------------- >>> www.mylenium.de >>> >>> >>> Salvador hat am 3. Februar 2014 um 17:25 >>> geschrieben: >>> >>> Hi, >>> >>> It's been a while since I've used AE so I feel a bit rusty. >>> >>> I'm trying to use markers to triggers a layer's opacity, which is quit= e >>> easy, especially when using Dan Ebbert's solution. What I can't manage = to >>> do is to use the marker duration to say for how long I want this value = to >>> be triggered. >>> >>> Here is one example : >>> >>> A layer has a marker with "active" as a comment, and 10 frames in the >>> duration field at frame 100, and another marker named "active" with 12 >>> frames duration at frame 200. >>> >>> I want to trigger the layers opacity to 100% from frames 100 to 109 an= d >>> from frames 200 to 211, and have the layer's opacity set to 0% the rest= of >>> the time. >>> >>> Does any of you have a clever solution to do this ? >>> >>> >>> Thank you, >>> >>> >>> >>> >>> Salvador >>> >>> >>> >>> >> >> > --089e0111d732b2b2d204f1846960 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
This should do it:

myNearestKey =3D mar= ker.nearestKey(time);
(myNearestKey.comment =3D=3D "active&q= uot; && time >=3D myNearestKey.time && time <=3D (myN= earestKey.time + myNearestKey.duration))?100:0

Cheers,<= div>Lloyd


On Mon, Feb 3, 2014 at 12:21 PM, Salvado= r <s.zalvidea@gmail.com> wrote:
By the way, I could easily do this by having two markers, = "on" and "off" but for practical reasons I really need = only one marker to trigger the opacity on and off.=C2=A0


On Mon, Feb 3, 2014 at 4:45 PM, Salvador= <s.zalvidea@gmail.com> wrote:


On Mon, Feb 3, 2014 at 4:36 PM, mylenium@mylenium.de= <mylenium@mylenium.de> wrote:
=20 =20 =20 =20
=20
Which of Dan's examples are you referring to specifically?
=20
=C2=A0
=20
Mylenium
=20
=C2=A0
=20
[Pour Myl=C3=A8ne, ange sur terre]
-----------------------------------------
www.mylenium.de=
=20
=C2=A0
=20
Salvador <s= .zalvidea@gmail.com> hat am 3. Februar 2014 um 17:25 geschrieben:

=20
Hi,=20
=C2=A0
=20
It's been a while since I've used AE so I feel a bit rusty.
=20
=C2=A0
=20
I'm trying to use markers to triggers a layer's opacity, which= is quite easy, especially when using Dan Ebbert's solution. What I can= 't manage to do is to use the marker duration to say for how long I wan= t this value to be triggered.
=20
=C2=A0
=20
Here is one example :
=20
=C2=A0
=20
A layer has a marker with "active" as a comment, and 10 fram= es in the duration field at frame 100, and another marker named "activ= e" with 12 frames duration at frame 200.
=20
=C2=A0
=20
I want to trigger the layers opacity to 100% from frames 100 to 109 an= d from frames 200 to 211, and have the layer's opacity set to 0% the re= st of the time.=C2=A0
=20
=C2=A0
=20
Does any of you have a clever solution to do this ?
=20
=C2=A0
=20
=C2=A0
=20
Thank you,
=20
=C2=A0
=20
=C2=A0
=20
=C2=A0
=20
=C2=A0
=20
Salvador
=20
=20
=20

=C2=A0
=20



--089e0111d732b2b2d204f1846960--