I have thousands of human meshes that are wearing garment meshes (some with looser garments and others with tighter garments). The problem is that the garments are penetrating the human mesh in certain areas. I found this https://manual.reallusion.com/Character_Creator/ENU/1/08_Cloth/Conforming_Clothing.htm to be a helpful solution to the problem. Essentially, the garment vertices are popped out manually so that they do not penetrate the human mesh. Unfortunately, this manual process is impractical for my large data set.
Is there a way I could script this in Maya using Python or MEL? For instance, is it possible to do the following:
if garment vertex in human mesh than pop out vertex?