If you are looking for a way to create realistic and stylized hair in Maya, you might want to check out GMH2 script. GMH2 is a script developed by Phung Dinh Dzung at Thunder Cloud Studio, specialized in hair modeling and stylizing. It allows you to easily convert polygon hair to Maya Hair or generate next-gen polygon hair strips with textures.
In this article, we will show you how to download and use GMH2 script for Maya hair. We will also cover some of the features and benefits of using this script for your hair creation projects.
How to Download GMH2 Script
To download GMH2 script, you need to purchase it from 3DOcean for $49. You can find the link here: https://3docean.net/item/gmh2-maya-hair-script/21225983
After purchasing, you will receive a zip file containing the script file (GMH2.mel) and a user manual (GMH2_UserManual.pdf). You need to unzip the file and copy the script file to your Maya scripts folder. The default location of the scripts folder is:
Mac OS: /Users/username/Library/Preferences/Autodesk/maya/scripts
You can also change the location of the scripts folder in Maya preferences.
How to Use GMH2 Script
To use GMH2 script, you need to load it in Maya. You can do this by typing the following command in the MEL command line or script editor:
This will open the GMH2 UI window, which has four tabs: Convert, Generate, Bake and Export.
The Convert tab allows you to convert polygon hair to Maya Hair with one click. You can also edit the hair attributes such as width, segments, clump, curl, twist, etc. in real time.
To convert polygon hair to Maya Hair, you need to select the polygon mesh that represents the hair and click on the Convert button. The script will automatically create a new group containing the converted Maya Hair system and a follicle surface.
You can then adjust the hair attributes using the sliders or type in the values. You can also use the Paint Attribute tool to paint different values on different parts of the hair.
The Generate tab allows you to generate next-gen polygon hair strips from Maya Hair or polygon hair. You can also apply different materials and UV regions to the polygon hair strips.
To generate polygon hair strips from Maya Hair, you need to select the Maya Hair system and click on the Generate button. The script will automatically create a new group containing the generated polygon hair strips and a follicle surface.
You can then use the Material Manager to assign different shaders to different parts of the polygon hair strips. You can also use the UV Manager to assign different texture regions to different parts of the polygon hair strips.
The Bake tab allows you to bake polygon hair strips to textures on polygon planes. You can bake diffuse, normal and alpha maps for your polygon hair strips.
To bake polygon hair strips to textures, you need to select the polygon hair strips group and click on the Bake button. The script will automatically create a new group containing the baked polygon planes and a texture folder.
You can then adjust the bake settings such as resolution, padding, format, etc. You can also preview the baked textures in Maya viewport.
The Export tab allows you to export your hair as curves or polygon meshes in OBJ or FBX format. You can export your hair from Maya Hair or polygon hair strips.
To export your hair as curves or polygon meshes, you need to select the hair group and aa16f39245