Installation

This will cover how to install the bdGenerator script
on Maya 2020 (Python 2) and Maya 2022 (Python 3).

Installation of the script

1- Download bdGenerator.py and put it into the folder Documents/maya/scripts/

Maya 2020 (Python 2)

2- Copy/paste this into your python script editor in Maya
import bdGenerator
reload(bdGenerator)
../_images/Maya2020_ScriptEditorPaste.png
3- Select everything and drag it with the left mouse button onto your shelf and select python
../_images/PythonShelf.png

Maya 2022 (Python 3)

2- Copy/paste this into your python script editor in Maya
import importlib

import bdGenerator
importlib.reload(bdGenerator)
../_images/Maya2022_ScriptEditorPaste.png
3- Select everything and drag it with the left mouse button onto your shelf and select python
../_images/PythonShelf.png

Adding the icon

You should now have the basic python icon in the shelf that represents your script
../_images/ShelfBaseIcon.png
Now, if you want to have a more fancy icon, download my bdGenerator Icon
Now to replace the python icon by this one, just right click on the button and hit edit
In the “Shelves” tab, click on the Icon Name folder and go find the icon you just downloaded
../_images/ShelvesEditorBrowse.png
Now it should look like this !
../_images/ShelfbdGeneratorIcon.png
The installation of the script is done