I, too, have been working to create a sprocket for 8mm film. I started with OpenScad as I like the programmatic way of creating shapes, but I felt there were some limitations. So I tried the Fusion 360 API.
I wrote a Python script within Fusion 360 to build a sprocket of any number of teeth. It was created to deal with standard 8mm film dimensions but could be easily modified for other formats as the sizes aren’t hard coded.
Unfortunately, as I don’t own a 3D printer, I haven’t experimented with producing a sprocket. I had a sprocket printed by a friend but the result was not usable; the teeth became blobs, possibly because they aren’t supported in the printing process, or maybe the material wasn’t suitable (abs or pla?).
If anyone wants to use the script to print a sprocket, please do, and show and describe the result.
Sorry, I tried to upload some images and the script, but as a new user I was prevented.