From: "Zack Lovatt" Received: from mail-lb0-f172.google.com ([209.85.217.172] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 5524357 for AE-List@media-motion.tv; Sat, 12 Jul 2014 21:06:06 +0200 Received: by mail-lb0-f172.google.com with SMTP id c11so1864672lbj.31 for ; Sat, 12 Jul 2014 12:06:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=0VRd8jrqE6gs1fjGJ+z9TcjqNo/ksm92FKSTBrR3JDk=; b=GZ7Qii6hNU6PCMZsvhKEkgrZcJCxmRdSqaEQuJVulPc1fuyGx5YUoNJp8QapyD+Px5 3wcKDKrpIbht/VQu9baPaB0UYPgv+D/VZ6RrtYQFndu57C4VoIC1SGpGOBXnqI5Jm+Fu i4LZwKCHk0+DG3EC4x2U+Ovdpg6cwdqK34TPhv0okmw51cRFBn2yKAf1HvS42Y7DBAZk 7pdzs8xUElA87oF1p/YBK4DdfKTAzZmA1AxRWvTIefsZcTG0TXXE30mrNCiW7yxFl+vt wwqCr1rfuIivNXpZRhfrA8xo+rSjkq9TKlR6g5rKIkt1iwYjkQRD/HAKH0prOKfHvJ5a T67Q== X-Gm-Message-State: ALoCoQmOkNuXr/hMP0GBBgsSJcwRQu6akbeupTXaJ4cFHk01Jvumee+THQ+jgWWmc5nJCEqI7Ghe X-Received: by 10.112.165.1 with SMTP id yu1mr951336lbb.68.1405191966590; Sat, 12 Jul 2014 12:06:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.57.1 with HTTP; Sat, 12 Jul 2014 12:05:26 -0700 (PDT) X-Originating-IP: [184.175.39.233] In-Reply-To: References: Date: Sat, 12 Jul 2014 15:05:26 -0400 Message-ID: Subject: Re: [AE] Applying a slider control to an overall set of keyframes To: After Effects Mail List Content-Type: multipart/alternative; boundary=001a1134592602a34a04fe03c0a9 --001a1134592602a34a04fe03c0a9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Chris's expression would do what you're looking for. Set 'minx=3D' and 'miny=3D' to whatever you want the minimum value to be. As your slider goes from 0 to 100, the value will change from [minX, miny] to the keyed value. Zack Lovatt 416.786.4129 www.zacklovatt.com On 12 July 2014 11:18, Teddy Gage wrote: > Ha, I wrote that after a few gin and tonics myself, so maybe it wasn't > clear. Basically, this is a followup from the realistic camera shake > thread. I have a camera with hundreds / thousands of shake keyframes > extrapolated from the 3D camera tracker. That is parented to a null that = is > making the actual camera path and motion, which is smooth. What would be = a > good way to scale up or scale down the amount of shake on the camera as > needed? Also maybe the best way to smooth / interpolate those keys, as so= me > are quite juddery? > > > On Fri, Jul 11, 2014 at 11:09 PM, Rendernyc > wrote: > >> Looks like I misread your email teddy while I was having a beer and >> holding a baby=E2=80=A6 my mistake :) >> >> Rereading now and do you want to use the slider as a multiplier? So when >> the slider is at 1 the object is on the path... At 0 the object would be= at >> 0,0,0 at 2 the object would be double the position of the current time= ? >> >> On Jul 11, 2014, at 8:57 PM, "Chris Zwar" >> wrote: >> >> Not sure I understand 100%, but it sounds like you would use a slider to >> control the interpolation between the layers actual position, and a mini= mum >> or maximum amount. So if you have a slider called "Amount 0-100" your >> position expression would be: >> >> p=3Dtransform.position; >> x=3Dp[0];y=3Dp[1]; >> >> minx=3D0;miny=3D0; >> >> slider=3Deffect("Amount 0-100")("Slider"); >> x=3Dlinear(slider,0,100,minx,x); >> y=3Dlinear(slider,0,100,miny,y); >> >> [x,y] >> >> >> Is this what you mean? >> >> >> -Chris >> >> >> On 12/07/2014, at 10:07 AM, Teddy Gage wrote: >> >> Not even sure this is possible. But say you have an object on a motion >> path with hundreds of keys (not able to be reproduced by expressions). >> Would it be possible to put an expression on a slider linked to those >> keyframes to dynamically control, say, the absolute minimum and maximum >> values the object travels on the x axis? >> >> Sort of like scaling the entire motion path of keys in one or all >> directions, but tying that to a slider, so that when the slider is at 0, >> there is no motion. ie it clamps all values to 0. >> >> There is probably an easier way to do this but I was wondering if this i= t >> was possible like this. Thanks, >> -TG >> >> -- >> _____________________________ >> VFX & Motion Graphic Artist >> teddygage dot com >> >> >> > > > -- > _____________________________ > VFX & Motion Graphic Artist > teddygage dot com > --001a1134592602a34a04fe03c0a9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Chris's expression would do what you're looking fo= r. Set 'minx=3D' and 'miny=3D' to whatever you want the min= imum value to be. As your slider goes from 0 to 100, the value will change = from [minX, miny] to the keyed value.

Zack Lov= att
416.786.4129


On 12 July 2014 11:18, Teddy Gage <AE-List@media-motion.tv> wrote:
Ha, I wrote that after a few gin and tonics myself, so may= be it wasn't clear. Basically, this is a followup from the realistic ca= mera shake thread. I have a camera with hundreds / thousands of shake keyfr= ames extrapolated from the 3D camera tracker. That is parented to a null th= at is making the actual camera path and motion, which is smooth. What would= be a good way to scale up or scale down the amount of shake on the camera = as needed? Also maybe the best way to smooth / interpolate those keys, as s= ome are quite juddery?


On Fri, Jul 1= 1, 2014 at 11:09 PM, Rendernyc <AE-List@media-motion.tv> wrote:
Looks like I misread = your email teddy while I was having a beer and holding a baby=E2=80=A6 my m= istake :)

Rereading now and do you want to use the slider as a mu= ltiplier? So when the slider is at 1 the object is on the path... At 0 the = object would be at =C2=A00,0,0 =C2=A0at 2 the object would be double the po= sition of the current time?

On Jul 11, 2014, at 8:57 PM, "Chris Zwar" <= AE-List@media-= motion.tv> wrote:

Not sure I understand 100%, but it sounds like you would use a slider to co= ntrol the interpolation between the layers actual position, and a minimum o= r maximum amount. =C2=A0So if you have a slider called "Amount 0-100&q= uot; your position expression would be:

p=3Dtransform.position;
x=3Dp[0];y=3Dp[1];

minx=3D0;miny=3D0;

slider=3Deffect("Amount 0-100")("Slider");
x=3Dl= inear(slider,0,100,minx,x);
y=3Dlinear(slider,0,100,miny,y);

[x,y]


Is this what you mean?=C2=A0


-Chris


On 12/07/2014, at 10:07 AM, Teddy Gage <AE-List@media-motion.tv> wrote:
Not even sure this is pos= sible. But say you have an object on a motion path with hundreds of keys (n= ot able to be reproduced by expressions). Would it be possible to put an ex= pression on a slider linked to those keyframes to dynamically control, say,= the absolute minimum and maximum values the object travels on the x axis?= =C2=A0

Sort of like scaling the entire motion path of keys in one o= r all directions, but tying that to a slider, so that when the slider is at= 0, there is no motion. ie it clamps all values to 0.

There is probably an easier way to do this but I was wondering if this= it was possible like this. Thanks,
-TG

= --
_____________________________=
VFX & Motion Graphic Artist
teddyga= ge dot com




--
_____________________________
VFX & Motion Graphic Artist
teddygage dot com

--001a1134592602a34a04fe03c0a9--