Hi all,
For my application I need a shift register that could output either LOW or high impedance. All I came up with was a pile of transistors hooked up to a 74hc595 shift register:

I will use those outputs to switch in resistors setting levels in opamp amplifier gain and comparator threshold subcircuits:

Can anyone suggest me a more elegant solution to create low/high impedance outputs?
I know I could use digital potentiometers for the whole thing, but I really can't because of reasons that are out of my control.