This is a simple script that creates a sine-based torus geometric figure mesh in Autodesk Maya using a bit of math.
Maya version: Autodesk Maya 2017
- Download
torus-worm.pyfile and store it in your computer. - Open Autodesk Maya.
- Go to
Windows > General Editors > Script Editor. - Click on the
Pythonlabel. - Import the
torus-worm.pyfile or copy-paste the code on the editor. - Type
Ctrl + Ato select the whole text. - Click on
Runbutton, orCtrl + Enterto execute the script.
You can customize the variables commented as parameters inside the script to change between worm or flower, its height, its length, etc. By setting flower and worm variables to False, you can achieve a classic torus mesh.
Personally, I like more how the flower option looks like, so I turned the flower parameters to True and saved the object created which looked like the following.
