Spurticus that is really cool, mine do that only when I take them outside as well, never in the house. What is it called so I can read up about it more, I find it very interesting and have always wondered what they doing.
Called Scanning.
I learned about it from a guy that did a feeding program at one of the
local reptile shows. He said when they're hunting, or moving around
in an unfamiliar place, their heads will occasionally move rapidly from
side to side so then can get a more detailed image of what's directly in
front of them. I noticed it in mine to only when I took them outside to
let them crawl around and get some exercise and sunlight. It ususally
takes them a good five / ten minutes before they start crawling sometimes
because it's unfamiliar territory. They start scanning and move a little, and
start scanning again. I notice even when they're crawling, their heads are
constantly moving back and forth. . . . . . .it's not that they can't see in
front of them, but with us (humans), our eyes are in the front of our heads
and looking forward. Our vision sight is such that it converges on a focal
point and we get a "3D" image of what's in front of us (in detail). It's like
putting a single finger up in front of your nose and then open and close
your eyes alternating one side to the other (open one, close the other, then
alternate the open and closed eyes). The finger seems to move side to
side, but in fact, what's happening is your sight is switching from one
view of the side of the finger to the other. . . .open both eyes and you see
the one finger in one spot, but in sort of a 3 dimentional view. . . . Snakes
can see forward to a point as their eyes can turn forward, but with the
eyes located on the sides of their heads and further apart, they have a
much wider (panoramic) view than we do, but their forward vision is Flat
and unfocused due to basically looking down their faces. By Scanning
they, they get a more better view of what's directly in front of them even
though it's not multi dimentional, it's more detailed.