Mailing List AE-List@media-motion.tv ? Message #45777
From: Byron Nash <byronnash@gmail.com>
Subject: Calculating the size of a vector from camera view
Date: Mon, 17 Sep 2012 16:05:09 -0400
To: After Effects Mail List <AE-List@media-motion.tv>
I am trying to get the 2D size of a vector in 3D space. I need to know how many pixels wide in 2D a null is as it moves around the comp. This seems to do something, but it is finicky and gives inconsistent results. My keyframes in the Z position are smooth, but the resulting length has strange "pops" in the value. 

N = thisComp.layer("3D Null");
length(N.toComp(N.anchorPoint), N.toComp(N.anchorPoint+50))


 
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to ListMaster