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.py
file and store it in your computer. - Open Autodesk Maya.
- Go to
Windows > General Editors > Script Editor
. - Click on the
Python
label. - Import the
torus-worm.py
file or copy-paste the code on the editor. - Type
Ctrl + A
to select the whole text. - Click on
Run
button, orCtrl + Enter
to 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.