ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Can Parented Camera “know” it is OFF?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Shai Benshoshan
Can Parented Camera “know” it is OFF?
on Feb 27, 2019 at 7:36:58 pm

I have this camera nicely moving over a 3d surface between points, using Dan_E’s expression mainly.
Is there any trick to use the rotation to “fix” the angle back to a safe margin?
I know the way to to this is by figuring the distance between the camera’s position and point of interest
and then using the angle to the ground as a bar.




Help is appreciated ;
Thanks;
Shai
Dan Ebbert's Expressions:

moveTime = 1.0;
stopTime = 0.2;
numberOfLayers = 11;
segDur = moveTime+stopTime;
idx = Math.floor(time/segDur)+1;
phase = time%segDur;
if (idx &lt; numberOfLayers){
P1 = thisComp.layer(idx).transform.position;
P2 = thisComp.layer(idx+1).transform.position;

ease(phase,0,moveTime,P1,P2);
}else{
thisComp.layer(numberOfLayers).transform.position;
}


Return to posts index

Kalleheikki Kannisto
Re: Can Parented Camera “know” it is OFF?
on Mar 6, 2019 at 10:11:36 am

Not sure I understand what you're trying to achieve, but perhaps using a single-node camera (without the point of interest node) would avoid the rotation issue?

Kalleheikki Kannisto
Senior Graphic Designer


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]