Just to close this off, I figured out / hacked together a solution using @BenLee’s amazing work here.
Thanks again for your help!