Skip navigation
Currently Being Moderated

"No active camera" error

Jul 20, 2012 6:39 PM

Tags: #error #after_effects #ae #cs6 #expression

Ran into this problem tonight with a couple expressions I've used in the past in CS3+. My scene has 1 camera. It it's set to active and the eyeball is on and its in/out is the length of my comp. Is 'activeCamera' broken in CS6?

 

These expressions are turning off:

 

delta = toWorld(anchorPoint) - thisComp.activeCamera.toWorld([0,0,0]);

radiansToDegrees(Math.atan2(delta[0],delta[2]))

 

and

 

C = thisComp.activeCamera;

V = C.toWorldVec([0,0,1]);

P = toWorld(anchorPoint);

lookAt(P, P + V)[0];


 
Replies
  • Currently Being Moderated
    Jul 20, 2012 7:06 PM   in reply to Navarro Parker

    My advice is, if possible, use the name of the  camera layer instead of "activeCamera":

     

     

    C = thisComp.layer("Camera 1");

     

     

    Dan

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points