Quantcast
Channel: Adobe Community : Discussion List - After Effects
Viewing all articles
Browse latest Browse all 48940

Orbiting 2d planets (3d layers) while facing camera

$
0
0

Hello,

 

    A bit new to After Effects here. I'm currently taking a class at university for it and I'm working on my final project. I'm reconstructing the solar system from Sun-->Neptune and slowly pulling out my single camera from the middle of the sun to all the way outside the system, showing all of the planets. I have constructed my planets by orbiting them around the central object (the sun) and telling after effects how many times to have them rotate by the end of my composition.

I want the planets to always face the camera as they are 2 dimensional so I'd like to hide that.

I tried applying the expression: (always face camera)

 

delta = toWorld(anchorPoint) - thisComp.activeCamera.toWorld(

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

 

to the Y rotation of each of the planets, but this removes all of the orbits and leaves the planets all in a straight line for the whole duration. I've also tried using the Auto Orient --> Face camera command and this does not work either. I'm wondering how to solve this.

I'm on a mac, and I've attached a screen of my project.

 

EDIT: in the image I do not have the "face camera" expression applied because it didn't work

 

Thanks! Screen Shot 2013-12-03 at 9.39.29 PM.png


Viewing all articles
Browse latest Browse all 48940

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>