This is a small fragment from the QA session of the Rigging in Maya | Quick Start Workshop.
In this video, you will learn how to fix broken UVs after applying the Separate operation and deleting the history from the object.
-----------------------------------------------------------------------
Script to fix:
{
string $selectedObjects[] = `ls -sl`;
string $sObject;
for ($sObject in $selectedObjects){
polyCopyUV -uvSetNameInput "DiffuseUV" -uvSetName "map1" $sObject;
polyUVSet -delete -uvSet "DiffuseUV" $sObject;
polyUVSet -rename -uvSet "map1" -newUVSet "DiffuseUV" $sObject;
DeleteHistory $sObject;
}
}
select -cl ;
-------------------------------------------------------------------------
Soon our workshop will be translated into English.