Hey WGA!
I haven’t seen what you did, so don’t know exactly what they are talking about, but 2 light years might be a clue. It could be they were talking about the gravitational influence of the Sun compared to the nearest star, the alpha Centauri system just over 4 light years away. If I’m floating in interstellar space and get close to the Sun, I will be attracted to it (and likewise if I’m close to alpha Centauri, I will be attracted to it). At a VERY general level, if I’m within about 2 light years of the Sun, it’s gravity will be win out over the alpha Cen system, and if I’m more than 2 light years from the Sun, alpha Cen’s gravity will win. This isn’t EXACTLY true because there are three stars in the alpha Centauri system, so it has more mass (and hence gravity) than the solar system does, so that maybe that’s where the one light year number comes from. I don’t know what the exact sphere of gravitational influence of the Sun is.
They might have been talking about something else, but I can’t know what! ☺
I should note: The force of gravity becomes weaker with distance very rapidly, but there is still a force, no matter how small. So, the Sun’s gravity extends everywhere, and affects objects in the center of our Milky Way, or in the Andromeda galaxy, or wherever in the universe – just at a minute level!