Hello everybody,
I am new in Python for Maya and I started with this tutorial: "Digital Tutors Python Scripting in Maya"
This tutorial teaches me to work with Python GUI, to write scripts for Maya without open Maya.
It tells me to add these variables in "Environment variables":
System Properties -> Advanced -> Environment Variables -> System variables -> New
Variable name: PYTHONPATH
Variable value: C:\Program Files\Autodesk\Maya2014\Python\Lib\site-packages
Variable name: MAYA_LOCATION
Variable value: C:\Program Files\Autodesk\Maya2014
in order to use Python GUI with Maya.
I added them but I still get this error:
1
2
3
4
5
6
7
8
I try to write a small script, just for using this method:
1
2
3
4
5
6
import maya.standalone
maya.standalone.initialize()
import maya.cmds as mc
mc.polyCube()
mc.file(rename="C:/cube.ma")
mc. file(save=True)
If you have any idea or suggestion please let me know.
All the best,
Remus
Traceback (most recent call last):
File "D:\Python\My scripts\Python in Maya\guitest.py", line 1, in
import maya.standalone
ImportError: DLL load failed: The specified module could not be found.