Return-Path: Received: from nk11p08mm-asmtp002.mac.com ([17.158.58.247] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP id 5356077 for AE-List@media-motion.tv; Fri, 24 Jan 2014 00:56:58 +0100 Received: from [10.235.237.100] (50-0-196-100.dedicated.static.sonic.net [50.0.196.100]) by nk11p08mm-asmtp002.mac.com (Oracle Communications Messaging Server 7u4-27.08(7.0.4.27.7) 64bit (built Aug 22 2013)) with ESMTPSA id <0MZV00335PDNH310@nk11p08mm-asmtp002.mac.com> for AE-List@media-motion.tv; Fri, 24 Jan 2014 00:01:04 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.11.87,1.0.14,0.0.0000 definitions=2014-01-23_05:2014-01-23,2014-01-23,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=4 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1308280000 definitions=main-1401230174 From: Rachel Max Content-type: text/plain; charset=utf-8 Content-transfer-encoding: quoted-printable Subject: [AE] distribute layers in Z space - but keep "relative " positions Date: Thu, 23 Jan 2014 16:00:59 -0800 References: <0089DBB3-F345-4EC9-8CF3-D0AC1DC8A934@me.com> To: AE-List@media-motion.tv Message-id: <1D454544-CD3E-429D-BE4E-333410210491@mac.com> MIME-version: 1.0 (Mac OS X Mail 7.1 \(1827\)) X-Mailer: Apple Mail (2.1827) THANK YOU ALL AGAIN! I love this list. =E2=9D=A4 - Rachel On Jan 23, 2014, at 3:53 PM, Chris Zwar wrote: > Here's the expression I use - apply to a 3D layer's scale value, = assuming your camera is called "Camera 1" >=20 > campos=3DthisComp.layer("Camera 1").toWorld([0,0,0]); // camera = position // > zoom=3DthisComp.layer("Camera 1").cameraOption.zoom; // camera zoom // > lpos=3DthisLayer.toWorld(thisLayer.anchorPoint); // layer position // > lscl=3DthisLayer.transform.scale; // layer scale // >=20 > d=3Dlength(campos,lpos); // distance from layer to camera // >=20 > xscl=3Dlscl[0];yscl=3Dlscl[1];zscl=3Dlscl[2]; > x=3D(d/zoom)*xscl; > y=3D(d/zoom)*yscl; > z=3D(d/zoom)*zscl; >=20 > [x,y,z] >=20 >=20 > Basically, the camera's lens is measured in pixels and called "zoom". = A layer will appear 100% of it's size (i.e. normal) when its distance = from the camera is the same as the "zoom" value. >=20 > That expression calculates the distance in world space, so not = affected by parenting, and takes into account the scale values already = applied to the layer. >=20 > -Chris >=20 > -----Original Message----- > From: Rachel Max [mailto:rachelmax@mac.com] > Sent: Friday, January 24, 2014 10:16 AM > To: 'After Effects Mail List' > Subject: [AE] distribute layers in Z space - but keep = "relative" positions >=20 > Hi again, in the vein of the anamorphic illusions - is there a script = or trick to affect the Z of a layer, but have it appear as if it = hasn=E2=80=99t moved by scaling it and changing it=E2=80=99s position? >=20 > I=E2=80=99ve been eyeballing it but that has to be an easier way or = some math I can do. >=20 > Thanks, > Rachel >=20 >=20 >=20 >=20 > +---End of message---+ > To unsubscribe send any message to