Get camera focal length as scalar value in shader node How can I obtain the active camera's focal length (or any other scalar property) as an input to a shader node's scalar value?
At its simplest:

Right-click in the Focal Length property-field of the camera, and 'Copy as New Driver'
Create an Input &gt; Value node in your tree
Right-click in the Value field, and 'Paste Driver'.