Go to: Synopsis. Return value. Related. MEL examples.
cpUpdateClothUVs
cpUpdateClothUVs is undoable, queryable, and editable.
Updates the cloth simulation UVs using the UVs from the 'clothSimulateUVset' UV set. This allows the user to tweak the UVs and resimulate as necessary to achieve the look they are looking for. It is highly recommended that the user uses cpConvClothToMesh for a garment to create a default set of UVs to tweak from, as generating a set of cloth simulation UVs from scratch is a non-trivial task.// Create a new scene // file -f -new; // Create a garment // nurbsSquare -c 0 0 0 -nr 0 1 0 -sl1 1 -sl2 1 -sps 1 -d 3 -ch 1; scale -r 15 15 15; cpPanel -newStitcher; // Convert it to a mesh // cpConvClothToMesh; // Create a cloth object out of the mesh // cpSolver -e -ccm; // Manually tweak the UVs here! // // Now update the UVs // cpUpdateClothUVs cloth2;