After Effects CS3  |  Go to CS4 Help

Example: Match camera’s focal plane to another layer

  Apply the following expression to a camera layer’s Focus Distance property to have its focus distance match the distance to the anchor point of a layer named “target”:
  target = thisComp.layer("target"); 
  V1 = target.toWorld(target.anchorPoint) - toWorld([0,0,0]); 
  V2 = toWorldVec([0,0,1]); 
  dot(V1,V2);



Comments

Comments are no longer accepted for After Effects CS3. After Effects CS4 is the current version. To discuss After Effects CS3, please use the Adobe forum.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/en_US/AfterEffects/8.0/WS462B02B2-94DF-4e21-BD03-4DADC829B47F.html