Spin Indexer Plate Calculator (python)

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:

https://drive.google.com/file/d/0BwYG1PFb3ZBydFZrUWpMTVZJNUk/view?usp=sharing

I had mine start at 0 and removed the 360 to make it easier for my indexer.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: