uv shifting

is it possible to make a script that lets you pick a current uv channel, and then pick where you want that uv channel to shift to. So shifting the uv's from channel 1, to 3 - but at the same time adjust all the material channels to coincide with the uv shift? So now that wood texture that was set to channel 1, is also channel 3 to work with the shifted mesh uv.