Return-Path: Received: from qmta04.emeryville.ca.mail.comcast.net ([76.96.30.40] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP id 5164029 for ae-list@media-motion.tv; Thu, 01 Aug 2013 23:32:07 +0200 Received: from omta07.emeryville.ca.mail.comcast.net ([76.96.30.59]) by qmta04.emeryville.ca.mail.comcast.net with comcast id 7RgT1m0051GXsucA4ZjeZj; Thu, 01 Aug 2013 21:43:38 +0000 Received: from HPZ200 ([76.20.32.7]) by omta07.emeryville.ca.mail.comcast.net with comcast id 7Zjd1m00l09DSM08UZjeLV; Thu, 01 Aug 2013 21:43:38 +0000 Message-ID: <982F08A13D9D4B13825D9D0A60F10FDE@HPZ200> From: "Dan Ebberts" To: "After Effects Mail List" References: In-Reply-To: Subject: Re: [AE] Expression/Effect center Date: Thu, 1 Aug 2013 14:43:39 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00AC_01CE8EC5.82A25020" X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1375393418; bh=WaByeQVSkKQiIwhBdCM+pKw/hxQjtyfWeGGH6QDNUk8=; h=Received:Received:Message-ID:From:To:Subject:Date:MIME-Version: Content-Type; b=U1G1+p3Ky68PWT+StO2LZbDTQXbDbOtcMsktw5WvLKnYdbJKDmnHrv/Ysw/hmG//c SyFmikiQask3aHEvhbsm2kdN8qRjSudNqwbh6wD9izxRn6fvLBBON7oNSetp9Gb3P0 HtxtUh+uWinrMWYBzhBAVTw45V6pzVnp5aL7zc5DlsX1IEAVORBRO9PPlOeuSJz+no fyAbK461Dv79od++p/wLLwCnUu8BPe7/FzpnZLIcdNPjkiNzjJA4CXKDEdc2scrNE0 vrjTGK5/ykEdH0hfeCI8TWZGUW7030lbOKCE3tMTg2haKwunhfnvJqlEPerbxI/A8k 29tjck+Hl79PA== This is a multi-part message in MIME format. ------=_NextPart_000_00AC_01CE8EC5.82A25020 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I think I would parent a null to the center of the magnifying glass and = then use: thisComp.layer("Null 1").toComp([0,0,0]); Dan From: Doug=20 Sent: Thursday, August 01, 2013 1:54 PM To: After Effects Mail List=20 Subject: Re: [AE] Expression/Effect center Hey Dan, That didn't work out. I thought that was what I used once before too. The best way to describe what I'm trying to do is similar to a = magnifying glass. Think of 2 Layers. 1. Magnifying glass layer 2. Adjustment layer - this has the effect magnify. I want the magnify center effect point to follow position and rotation = of 1. Magnifying Glass layer Which also has it's anchor point moved to = the handle so it pivots at that point. Adding thisComp.layer("magnifying_glass.ai").transform.position to the = effect center point works great except it's center is aligned with the = anchor of 1. Magnifying glass layer. I need to offset this to the center of the glass. I've tried compCoords = =3D [960,540]; and layerCoords =3D [200,450];, I've tried pre-comping, = parenting, re-parenting to nulls, but it always breaks. From: Dan Sent: Thursday, August 01, 2013 12:43 PM Subject: [AE] Expression/Effect center nstead of +value, try appending .valueAtTime(0) to what you got = from the pick whip. Dan From: Doug Sent: Thursday, August 01, 2013 12:43 PM Subject: [AE] Expression/Effect center I have an effect center point on and adjustment layer pick whipped = to another layers position. It works fine, but I need it to retain it's original position and = not move to the anchor point because I'm using rotation. I thought I = could just do +value at the end, but no luck. thisComp.layer("glass.ai").transform.position =20 ------=_NextPart_000_00AC_01CE8EC5.82A25020 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I think I would parent a null to the center of the magnifying glass = and=20 then use:
 
thisComp.layer("Null 1").toComp([0,0,0]);
 
 
Dan
 
 
 
From: Doug
Sent: Thursday, August 01, 2013 1:54 PM
Subject: Re: [AE] Expression/Effect center
 
Hey Dan,
That didn't work out. I thought that was what I used once  = before=20 too.
 
The best way to describe what I'm trying to do is similar to a = magnifying=20 glass.
Think of 2 Layers.
1. Magnifying glass layer
2. Adjustment layer - this has the effect magnify.
 
I want the magnify center effect point to follow position and = rotation of=20 1. Magnifying Glass layer Which also has it's anchor point moved to the = handle=20 so it pivots at that point.
Adding thisComp.layer("magnifying_glass.ai").transform.p= osition to=20 the effect center point works great except it's center is aligned with = the=20 anchor of 1. Magnifying glass layer.
 
I need to offset this to the center of the glass. I've tried = compCoords =3D=20 [960,540]; and layerCoords =3D [200,450];, I've tried pre-comping, = parenting,=20 re-parenting to nulls, but it always breaks.
 
 
From: Dan
Sent:=20 Thursday, August 01, 2013 12:43 PM
Subject:=20 [AE] Expression/Effect center
nstead of +value, try appending  .valueAtTime(0) to what = you got=20 from the pick whip.
 
Dan
 
From: Doug
Sent: Thursday, August 01, 2013 12:43 PM
Subject: [AE] Expression/Effect = center
 
I have an effect center point on and adjustment layer pick = whipped to=20 another layers position.
It works fine, but I need it to retain it's original position = and not=20 move to the anchor point because I'm using rotation. I thought I = could=20 just do +value at the end, but no luck.
 

thisComp.layer("glass.ai").transform.position

------=_NextPart_000_00AC_01CE8EC5.82A25020--