Get my scripts in maya#
In order to get your scripts in maya, open project preferences, go to Project > Preferences in wizard.
In the softwares tab, go to the Additionnal scripts paths section and enter your script folder in a new line.
Warning
When you enter you script path, enter the entire absolute path ( like W:/my_project/my_scripts ) and make sure the directory is accessible by all the users.
Then, in the script directory, create a file named userSetup.py. Maya will trigger this script at the openning.
Note
In the userSetup.py you may want to add cmds.evalDeferred(my_function) to wait for Maya to be fully open before triggering your function.