Measure the length of a rope pulled out

Perhaps you are after a shaftless rotary encoder?