I need to transfer UVs from a uvset of "Object A" to another of "Object B" (both being polygonal objects having same topology). I'm using polyClipBoard command's copy and paste options for the transfer. This command is run in a loop as follows(just a rough script to show logic):
for each face on polygon opbect
polyClipBoard -copy -uv <source object>;
polyClipBoard -paste -uv <source object>;
polyClipBoard -clear -uv -shader -color;
The script works absolutely fine for low-res objects. But when it is executed on high-res objects, it gives an "insufficient memory" error and maya stops the loop halfway or hangs. My question is, why does it show memory problem even after executing a "clear" on the polyClipBoard? How does -clear flag work and what does it clear?
Any MEL-super-freaks please help!!!