I use an indexing head to (straight)flute barrels. This fixture is what my shop uses to spiral flute bolts.
I designed and built it about twenty-five years ago. It is driven by a rack gear, with a follower/roller that transmits X-Axis travel(via cam plate) of the table to rotational travel...