|08-23-2012, 04:53 AM||#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-23-2012, 05:05 AM||#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-23-2012 at 05:11 AM.
|08-23-2012, 06:17 AM||#5|
Lord of the posts
Join Date: Sep 2003
Thread automatically closed
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
|Thread Closed share thread|
|Thread Tools||Search this Thread|