-
Expression linked angles?
I have an AE project that requires an expression using math I don’t know. I’ll simplify the situation for explanation: I have an object (say a small solid) that I want to place on the imaginary line between a 3D camera’s position and it’s point of interest. While the camera changes its angle and distance to the anchor point, I want the object to match the change in angle (ie stay on that imaginary line), while remaining a fixed distance from the anchor point. Can anyone help me set up an expression to do this? I would really appreciate it.
(In theory, I could link both the camera and the object to a null and rotate the null while animating the camera’s z distance, thereby maintaining the objects distance while animating the camera, however that makes it very difficult to put the camera where I want it. I really need this to be driven by an expression.)