Hi
i’m not sure if that is what you’re looking for.
Let’s assume when the camera moves from -600 to -400 in z-space the Number effects counts from 40 to 20
driver=thisComp.layer(“Kamera 1”).transform.position[2];
minCam=-400
maxCam=-600
minNr=20
maxNr=40
linear(driver, minCam, maxCam, maxNr,minNr)