|08 August 2012||#1|
Wellington, New Zealand
Join Date: Jun 2005
No module named .....
Seems a bit inconsistant but I have placed a python script into my scripts folder but get the above mentioned error ..."no module named..."
Is there a different directory that Maya will look for python scripts apart from the normal one for mel scripts, or do I need to set this up? How?
|08 August 2012||#2|
Lord of the postsportfolio
VFX Artist + Designer
Beverly Hills, USA
say you have a python scripts folder at "//nas/Content/bin/python"
first you need to put your python files into that folder then
you need to specify the python folder via sys.path command like this:
from pymel.core import *; #you can also just import sys if you dont use pymel
sys.path.append("//nas/Content/bin/python"); #this points to your modules
then simply import your modules:
and you are ready to go.
From Russia, with love @ stooch.tv
Last edited by stooch : 08 August 2012 at 05:11 AM.
|Thread Closed share thread|