Scientists used to do it in the old film days all of the time. They did it in camera. There's a name for it, but I don't remember the name.
The idea is pretty simple. You take a stationary small sliver of light in a dark room and move your subject through that, usually done in small steps with a single exposure taken at each step, as part of a multiple exposure. To make the sliver of light, they often used lasers or collminated light passes through a slit filter. A common technique that would probably work well for standard macro photography is to place three projectors, one left, one right, and one above the subject. In place of the slide, place a mask with a slit so that the slita of light line up parallel to the film plane (perpendicularl to the angle of the lens). The camera is focused at that point and held steady at a fixed point, so the camera never moves. A single exposure is taken, and the subject which is mounted on a track, is moved forward or backward to expose the next section adjacent to the previous exposure. Step and repeat until the entire object has passed through the slit of light.
It takes some special equipment and some patience and careful planning to expose the film, but once the exposures are made, the developing and printing are standard.