Spin Indexer Plate Calculator (python)
November 14, 2016 Leave a comment
I did up this program to calculate out the amount of divisions that a spin indexer could do, and calculate out the degrees that each needs. I designed it because If you have custom plates, you’ll get different values for everything, and this program will calculate everything out for you, with the degrees needed to achieve each division. Just change num to whatever you want to get the divisions and list of degrees to get those numbers.
num = 360 for i in range(1, num + 1): if num % i == 0: print'\n', i, '\n' t=num/i j=0 while True: j=t+j print(j) if j==num: break
If you dont want to mess with it, and only want the 360 degrees printout, I have it here:
I had mine start at 0 and removed the 360 to make it easier for my indexer.