Yes, that would work well enough - a general-purpose horizontal filter. It wouldn’t need to be absolutely perfect for any single lens, because final adjustments could still be made in the printing.
A kindly optician once tinted a pair of spectacles for driving for me. They were simply dipped in a bath of dye and withdrawn slowly so that the part that was in the dye longest was darkest. It took several passes to get the density right and there were different colours available, to give warmer or cooler tints.This was a single-ended gradation. Presumably a double-ended gradation would need a more cunning plan. A second, graduated bleach bath, perhaps?
As you’ll know, early photographers had to make their own filters by very similar means.