2D label over 3D geometry, relative to camera

I’m interested in displaying a text label over a geometry that is moving around in 3D space. However I would like the text label to move only in 2D space, as if there is a 2D overlay projected onto the screen. If I set the label position to that of the 3D object but keep its Z value fixed, then the label only meets the geometry when the latter is in the same Z position:

22%20PM 40%20PM

What kind of operators should I look into to translate the 3D position of the geometry to a 2D position, such that the 2D position always occludes the 3D position relative to the camera? Is there an efficient way to do this?

Thank you in advance, and apologies if my terminology is off. Please let me know if I need to clarify.

Welcome to the forum!
If I understand correctly what effect you’re after, one option could be to use a Light COMP to literally project your 2d texture on your 3d geometry.
See the projector parameters on the Light page of the Light comp.

There’s an example in Help > Operators Snippets > Light COMP called “projection”