-
expression for objects facing to camera..
vzdAC = (position[0]-anchorPoint[0])*2 + (position[1]-anchorPoint[1])*2 + (position[2]-anchorPoint[2])*2; vzdBC = (thisComp.layer("kamera").position[0] - thisComp.layer("textik").anchorPoint[0])*2 + (thisComp.layer("kamera").position[1] - thisComp.layer("textik").anchorPoint[1])*2 + (thisComp.layer("kamera").position[2] - thisComp.layer("textik").anchorPoint[2])*2; vzdAB = (thisComp.layer("kamera").position[0] - thisComp.layer("textik").position[0])*2 + (thisComp.layer("kamera").position[1] - thisComp.layer("textik").position[1])*2 + (thisComp.layer("kamera").position[2] - thisComp.layer("textik").position[2])*2; radiansToDegrees(Math.cos(((Math.pow(vzdAB,2))+(Math.pow(vzdBC,2))-(Math.pow(vzdBC,2)/(2*vzdAC*vzdAB)))));hi.. i found couple of tutorials in here, but i didnt find the answer for me. im trying to make font that are always face to camera, BUT when is camera auto-oriented to its motion path, not to POI.. i have tryied som sinus stuff in there, but im new in this. i have used as the stable point the text layers anchor point. so i know distance between one character and camera position, camera and anchor, character and anchor.
so i tryed something like this.. but i glue it up by myself so dont laught please.. 🙂oh, and the only thing i need to rotate is y-axis..
thank you very much for any help..
peterand one more oh, – text layer anchor point is still same and its 2x2x2 to preserve that 0 will not be there. and text layer is spread in pozition z = -2000