I haven't even put a set of tracks together yet, let alone paint them. So this method is new to me. The You Tube shows a couple of other ways, but yours is different. ( I like:)
There's a dowel rod through the paper towel tube suspended between two coffee cans. I turn the tube as I paint and the tracks roll with the tube, a bit of Redneck engineering.