Okay seriously, a mel script just to copy UVs? I thought it would be simpler by now. There must be a solution and i'm the retarded one. Anyway till I find the solution. Select Source followed by Target and execute the mel script.
On maya 2010 but it seems to work from Maya8 onwards.
int $pCount[] = `polyEvaluate -f $cSelection[0]`;
int $i = 0;
while ($i < $pCount[0]) { polyClipboard -cp -uv ($cSelection[0]+".f["+$i+"]"); polyClipboard -ps -uv ($cSelection[1]+".f["+$i+"]"); $i = $i +1; } warning "DONE!!";
Okay, so I was retarded instead. The other solution is to use the Mesh -> Transfer Attributes(options) -> Use component mode under attribute settings.