Sorry I think I linked you to the wrong automux object, I'll edit that post, it's rbrt/control/demux_sh
You could try this arrangement for 8 outputs and two pots, works for me (using my pot gpios)
The second s&h demux does not become active until you turn your pot past the initial four slots and each demux_sh will hold your each of the eight values until you change it.
(ie you turn your pot and it converts to an integer value between 0-7 values; 0-3 are the first demux_sh, and 4-7 the next. The minus 4 constant feeding the select inlet on the second demux_sh keeps it in minus numbers until you turn to 4 so in the screenshot one is at 3 and the other at -1 ....p.s ignore the math dial being 8 in the screenshot it should be seven, it is corrected in the patch):
and here is the patch with the gpios you used above:
s&h automux.axp (5.3 KB)