Skip to content

Instantly share code, notes, and snippets.

@Video-Nomad
Last active April 2, 2021 11:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Video-Nomad/12444a37ab8e5a2ac35cc5c62e97a72d to your computer and use it in GitHub Desktop.
Save Video-Nomad/12444a37ab8e5a2ac35cc5c62e97a72d to your computer and use it in GitHub Desktop.
Autostart GS Toolbox plug-in for Maya
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)
@Video-Nomad
Copy link
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