from subprocess import Popen fret_pairs = [ # Old lengths that are unfortunately too long (Up Box caps out at 205mm tall!) (-4, 0), # Bass ( 1, 7), # Start of guitar ( 8, 19), # Rougly similar length to above # New shorter segmentation ~120mm tall max (-4, -3), # 91.7217mm (-2, 0), # 119.166mm ( 1, 3), # 100.206mm ( 4, 7), # 109.258mm ( 8, 12), # 105.444mm (13, 19), # 104.732mm (20, 30), # 98.839mm # Alternates for testing (0,0), # Just to see what it looks like, would redesign for 0-fret anyway (20,20), # Short debug print ] print("Compiling .stl files for fret pairs: ", fret_pairs) processes = [Popen(["openscad", "-o", f"fret_tube_{i}_{j}.stl", "-D", f"I={i}", "-D", f"J={j}", "fret_tube_I_J.scad"]) for (i,j) in fret_pairs] for p in processes: p.wait() print("Finished compiling!")