Automatically execute Python-Script when Maya loaded
Hey there,
short but very important question: Is it possible to load and execute a Python-Script after Maya loaded successfully?
With the following code I added another script path: (userSetup.py)
Quote:
import sys
sys.path.append( 'D:/test/' )
syspaths = sys.path
import pythontest
pythontest.sayit()
The content of my script "pythontest.py" is:
Quote:
def sayit():
print 'Hello World!'
After the Maya start I expected the command response "Hello World!" but there is nothing, why? The only thing I want is an automatic execution of a Python-Script after every Maya start.
Thank you for your help I am looking forward!
Andy