I am trying to find a way to achieve this in AE expressions but failed.
Is there a way to get a closest location from a 3d point in space to a closest location on a 3d layer.
For example if I want to extract the color from a closest pixel on a image layer 3D from a 3d null position by using sampleImage. That image layer could have position, rotation or scale animation.
I was trying to find a way to achieve this in other apps scripting and to extrapolate its logic into AE but havent found much (also I am not super good with trigonometry)