Follow moving objects in 3D space
I am trying to figure out if this is possible. I created a simple solar system. Planets are orbiting the sun this way: every planet is parent to a 3D null that is positioned in the center and rotates infinitly. Planets are created with CC Sphere effect and their layers are also 3D. What I'm trying to do is somehow make the camera move closer to one of the planet and then follow its orbital movement. That way I'll be able to jump from one planet to the other and follow their tracks. I looked up the plugin from VC called Sure Target, but from what I understand it only follow the static objects. I also tried to parent the camera to certain planet null but it doesn't work at all. Any ideas?
Sure Target should work. Sure Target allows you to pick a target/3D layer and go from one layer to the next regardless of if it's static or not, but for some reason that is not the case try this.
Create a null object
Create a camera and parent the camera to the null.
Separate the dimensions of the null position for more control.
Create a Slider Control and set the max value to 1 less than the amount of planets you have.
If you want a sudden zoom from one parent to the next, then use the Math.floor() method on the slider in the linear method.
Rather you chose to pick whip the planets and null's position or use the Layer Control, stick with that one choice for all of the planets and null variable or else the code will break.
For Expression Tutorials: