A Python script for Autodesk Maya that creates a follicle-based rivet on a selected vertex. This allows objects (e.g., locators) to stay attached to deforming geometry, such as rigged characters.
-
Download the script:
- Clone the repository:
git clone https://github.com/hsuehyt/CreateFollicle.git
- Or Download
create_follicle_on_vertex.py
directly.
- Clone the repository:
-
Move the script to your Maya scripts directory:
- Windows:
C:\Users\YourUser\Documents\maya\scripts
- Mac:
~/Library/Preferences/Autodesk/maya/scripts
- Linux:
~/maya/scripts
- Windows:
- Open Autodesk Maya.
- Select a vertex on the mesh where you want to create the follicle.
- Run the script in Mayaβs Script Editor:
import create_follicle_on_vertex
- A follicle will be created at the selected vertex.
- Parent your object (e.g., a locator) to the follicle to make it follow the vertex.
β
Automatically creates a follicle on the selected vertex
β
Works on deforming geometry (e.g., skinned characters)
β
Stable even when topology changes
β
Works on Windows, Mac, and Linux
- Converts the selected vertex into UV coordinates.
- Creates a follicle at that UV position.
- Connects the follicle properly to the mesh.
- The follicle sticks to the vertex, even if the geometry deforms.
import create_follicle_on_vertex
After running this, a follicle will appear at the selected vertex.
- If the follicle doesnβt attach, ensure your mesh has UVs (
UV Editor > Layout UVs
). - Try adjusting the U/V values in the follicleβs attributes.
- If you donβt see the follicle, check the Outliner (
Window > Outliner
).
This project is open-source and licensed under the MIT License.
Feel free to fork the repository and submit pull requests! π