Switch UV coordinates

Hello,

There must be some way to easily switch a surfaces UV coordinate reference plane (so U values will become V values and V values will become U values) but Im drawing a blank. Is there an easy way to do it?

Thanks!