Using Scale of a 2D layer to control Camera Position.
I have a layer that needs to be 2D in a 3D comp. The 2D layer needs to stay the same size relative to the 3D layers in the scene as the camera moves. I have been fiddling with an expression that calculates the distance from the camera to the comp center and uses that distance to change the scale of the 3D layer so as the layer camera gets closer to the comp center, the scale of the 2D layer decreases. I need the 2D layer to look like it is a 3D layer by adjusting the scale as the camera moves. The comp would also work if the camera position changes as I animate the scale of the 2D layer. So far, I'm getting pretty close by setting keyframes and adjusting the speed graph, but I'd like to simplify the process.
I have tried various combinations of multipliers, but I can't get it right. I thought it would be a simple exponential expression, but that's not even close. Does anyone have any ideas?
