Wednesday 29 May 2024

getting distance to object in camera

 vlength(vtorigin(".","../FOCUS_MAN"))


paste this into the Focus Distance parameter, replacing FOCUS_MAN with whichever object/null you're following.