Last active
April 2, 2021 11:04
-
-
Save Video-Nomad/12444a37ab8e5a2ac35cc5c62e97a72d to your computer and use it in GitHub Desktop.
Autostart GS Toolbox plug-in for Maya
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import maya.cmds as mc | |
def startupCommands(): | |
import gs_toolbox.main as tb_main | |
from imp import reload | |
reload(tb_main) | |
tb_main.main() | |
mc.evalDeferred(startupCommands,lp=1) |
Author
Video-Nomad
commented
Mar 2, 2021
•
- You need to create userSetup.py file in your maya scripts folder .
- Use the correct folder for your version of Maya.
- For example, for Maya 2019 this file should be in (\Documents\maya\2019\scripts)
- You just create an empty text file called userSetup.txt, paste the code there and rename the file to userSetup.py.
- If you already have this file in the folder, open it with any text editor and paste the code at the bottom of the file.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment