You have probably come across this question… How do I attach a 2D layer to a 3D layer in After Effects? David Torno shows just that with another handy After Effects Expression tutorial, this time showing how you are able to attach an After Effects 2D Layer to a 3D layer using ToComp() in the expression. Check out the post for Using After Effects Expression to Attach a 2D Layer to a 3D Layer here.

David Torno writes This is a fun useful expression that allows you to take any 2D layer in your timeline and have it attached to a moving 3D layer. Ideal for something like 2D flat text that follows a 3D tracked point in a scene.