Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Controlling TimeRemapping relative to camera

  • Controlling TimeRemapping relative to camera

    Posted by Roland R. kahlenberg on October 28, 2008 at 5:04 am

    Hi Dan and Expresso Gurus!

    I’m trying to achieve the following effect –

    Move AE’s camera using X & Z position and y-rotation with a pre-rendered 3D image (8 seconds). The 3D render is identical to a lazy susan effect – essentially rotation around its y-axis.

    So, after placing this rendered file into AE. I’m hoping that an Expression can be used to control the TimeRemap value of this 3D file so that it maintains a true 3D perspective regardless of where the camera is and how the camera is animated.

    I think this is achievable but i just can’t wrap my head around it.

    Thanks!
    RoRK

    Roland R. kahlenberg replied 17 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    October 28, 2008 at 2:47 pm

    Hi Roland,

    I think it’s going to be something like this:

    numImages = 240;
    offset = 270;
    C = thisComp.activeCamera;
    V = C.toWorld([0,0,0]) – toWorld(anchorPoint);
    angle = (radiansToDegrees(Math.atan2(V[2],V[0])) + 180 +offset)%360;
    angle*(numImages/360)*thisComp.frameDuration

    You’ll need to set numImages to the number of images in your sequence and adjust offset (between 0 and 360) to get the frame you want when the camera is on the comp’s z axis. Also, please email me – I want to ask you something about this.

    Dan

  • Roland R. kahlenberg

    October 28, 2008 at 5:03 pm

    Hi Dan, the old machine crashed – I don’t have your email address. Perhaps you can send me your Qs to rork_AT_broadcastGEMs_DOT_com

    And thanks for the script!
    RoRK

    broadcastGEMs.com – the leader in customizable royalty-free animated backdrops

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