-
Error – no active camera?
I’m using AE CS6 (v11.0.1.12) and have a strange error that I see has occured before in one or two posts.
I’ve applied the auto orient on Y axis only expression from Dan’s site (thanks yet again Dan!) to the Y rotation of an illustrator layer. The comp is a pre-comp but has an active camera in both the main comp and pre-comp.
I get the following error and the expression is disabled:
No active camera at time xxxxx
At first it was always at time -00:00:00:01 but then I purged all memory several times and then re-entered the expression. I briefly got it to work and the layer oriented in the Y axis but without touching anything, several seconds later I got the same error but at 00:00:20:00.
Very weird – got to be a bug maybe unless I’m missing something?
Any ideas?
Thanks,
Paul.
delta = toWorld(anchorPoint) - thisComp.activeCamera.toWorld([0,0,0]);
radiansToDegrees(Math.atan2(delta[0],delta[2]))