Hi,
I am still a beginner at scripting. I am trying to store the position of the UVs of a specific mesh and then apply that position to the relevant verteces. So that the verteces are layed out just like the UVs. The MEL script I have come up with does not work and I was hoping someone could help me correct the script in MEL.
string $objSel[] = `ls -sl`;
pickWalk -d down;
string $shapeSel[] = `ls -sl`;
ConvertSelectionToVertices;
string $vertSel[] = `ls -sl -fl`;
ConvertSelectionToUVs;
string $uvSel[] = `ls -sl -fl`;
for($eachUV in $uvSel)
{
float $uvPos[2] = `polyEditUV -q $eachUV`;
ConvertSelectionToVertices;
xform -t $uvPos[0] $uvPos[1] 0;
}