Guys, curious on how one determines the polarity for each wire on the stepper

Guys, curious on how one determines the polarity for each wire on the stepper motors. I can determine the pairs by touching pairs together until you encounter resistance while turning the stepper. What I don’t understand is how to determine the polarity of each wire in the pair.

What is your technique?

Guess and check. For my 2 Y steppers, I believe I reversed one of the coils on one of the motors such that they ran with the same polarity in software.

Yup, once you have separated the coils, wire them up and see if it axis moves in the correct direction. I wired mine up identically and still ended up having to swap wires on one axis to avoid reversing the axis in software.

It doesn’t matter. You can invert the pins in your control software