The company that made the ones I'm talking about is called Haidenhain and they were making these long before then. I think they go back as far as the 50's but I can't document that. But you'll find them all over old CNC gear.
Obviously the 50's was before the LED was invented. Did they use light bulbs? Also, they would also have had to use CdS photo-resistors instead of photo-transistors. Probably required a few vacuum tubes for the interface too. Seems like a lot of effort vs. a simple potentiometer.
https://picclick.com/Keysight-Agilent-HP-Avago-RPG-Rotary-Pu...