Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Can Parented Camera “know” it is OFF?

  • Can Parented Camera “know” it is OFF?

    Posted by Shai Benshoshan on February 27, 2019 at 7:36 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 < 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;
    }

    Kalleheikki Kannisto replied 7 years, 2 months ago 2 Members · 1 Reply
  • 1 Reply
  • Kalleheikki Kannisto

    March 6, 2019 at 10:11 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

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy