The PYTHONPATH exists in the Maya.env file that is pointing to x:\6 on a
drive. And it is that folder in which NSUV folder exists, although Maya
is not seeing it ?
Justin Israel wrote:
That means the location you have placed your NSUV directory is not a
location that is on the PYTHONPATH, thus will not be found when you
try and import it.
On Wed, Apr 22, 2015 at 11:09 AM Crest Christopher
<crestchristop...@gmail.com <mailto:crestchristop...@gmail.com>> wrote:
for path in sys.path:
test_path = os.path.join(path, "NSUV")
if os.path.exists(test_path):
print "NSUV found: %s" % test_path
else:
print "No NSUV found at %s" % path
No NSUV found at
C:/ProgramData/Autodesk/ApplicationPlugins/MayaBonusTools/Contents/python-2015
No NSUV found at
C:/ProgramData/Autodesk/ApplicationPlugins/MayaBonusTools/Contents/python
No NSUV found at C:\Program Files\Autodesk\Maya2015\bin
No NSUV found at C:\Python27\modules
No NSUV found at C:\Custom Program
Settings\Maya_Resources\pythonscripts
No NSUV found at C:\Program Files\Autodesk\Maya2015\bin
No NSUV found at
C:\ProgramData\Autodesk\ApplicationPlugins\3DxMaya\Contents\scripts
No NSUV found at C:\Program
Files\Autodesk\Maya2015\plug-ins\bifrost\scr ipts\presets
No NSUV found at C:\Program
Files\Autodesk\Maya2015\plug-ins\bifrost\scripts
No NSUV found at
C:\ProgramData\Autodesk\ApplicationPlugins\MayaBonusTools\Contents\scripts
No NSUV found at C:\Program
Files\Autodesk\Maya2015\modules\MentalCore\scripts
No NSUV found at C:\Program
Files\Pixar\RenderManStudio-19.0-maya2015\scripts
No NSUV found at C:\Program
Files\Autodesk\Maya2015\plug-ins\fbx\scripts
No NSUV found at C:\Program
Files\Autodesk\mentalrayForMaya2015\scripts\AETemplates
No NSUV found at C:\Program
Files\Autodesk\mentalrayForMaya2015\scripts\mentalray
No NSUV found at C:\Program
Files\Autodesk\mentalrayForMaya2015\scripts\unsupported
No NSUV found at C:\Program
Files\Autodesk\mentalrayForMaya2015\scripts
No NSUV found at C:\Program Files
(x86)\ngSkinTools\Maya2015-64bit\scripts
No NSUV found at C:\Program
Files\Autodesk\Maya2015\plug-ins\substance\scripts
No NSUV found at C:\Program Files\Autodesk\Maya2015\pl
ug-ins\xgen\scripts\cafm
No NSUV found at C:\Program
Files\Autodesk\Maya2015\plug-ins\xgen\scripts\xgenm
No NSUV found at C:\Program
Files\Autodesk\Maya2015\plug-ins\xgen\scripts\xgenm\ui
No NSUV found at C:\Program
Files\Autodesk\Maya2015\plug-ins\xgen\scripts\xgenm\xmaya
No NSUV found at C:\Program
Files\Autodesk\Maya2015\plug-ins\xgen\scripts\xgenm\ui\brushes
No NSUV found at C:\Program
Files\Autodesk\Maya2015\plug-ins\xgen\scripts\xgenm\ui\dialogs
No NSUV found at C:\Program
Files\Autodesk\Maya2015\plug-ins\xgen\scripts\xgenm\ui\fxmodules
No NSUV found at C:\Program
Files\Autodesk\Maya2015\plug-ins\xgen\scripts\xgenm\ui\tabs
No NSUV found at C:\Program
Files\Autodesk\Maya2015\plug-ins\xgen\scripts\xgenm\ui\util
No NSUV found at C:\Program
Files\Autodesk\Maya2015\plug-ins\xgen\scripts\xgenm\ui\widgets
No NSUV found at C:\Program
Files\Autodesk\Maya2015\plug-ins\xgen\scripts
No NSUV found at C:\Program Files\Autodesk\Maya2015\bin\ python27.zip
No NSUV found at C:\Program Files\Autodesk\Maya2015\Python\DLLs
No NSUV found at C:\Program Files\Autodesk\Maya2015\Python\lib
No NSUV found at C:\Program
Files\Autodesk\Maya2015\Python\lib\plat-win
No NSUV found at C:\Program Files\Autodesk\Maya2015\Python\lib\lib-tk
No NSUV found at C:\Program Files\Autodesk\Maya2015\Python
No NSUV found at C:\Program
Files\Autodesk\Maya2015\Python\lib\site-packages
No NSUV found at C:\Program
Files\Autodesk\Maya2015\bin\python27.zip\lib-tk
No NSUV found at C:/Custom Program
Settings/Maya_Resources/Preferences/2015-x64/prefs/scripts
No NSUV found at C:/Custom Program
Settings/Maya_Resources/Preferences/2015-x64/scripts
No NSUV found at C:/Custom Program
Settings/Maya_Resources/Preferences/scripts
==========================
Results of Jesse's script.
Anthony Tan wrote:
Can I suggest you may want to send the entire output of Jesse's
command? What it'll do is report back every path that the python
interpreter will search. If it's not in that list, it's not being
searched, so you can then work out from there.
Basically: what's the actual path you want to see, and what's the
list
of paths you're seeing?
On Tue, Apr 21, 2015, at 11:27 AM, Crest Christopher wrote:
The result is; No NSUV in any of the paths when I run the
script. ;-(
Why is it, when I've placed other python scripts or MEL scripts in
paths that I set in the Maya.env file, those scripts work, but NSUV
and ngSkinTools which does a really wierd behavior, when I click on
the ngSkinTools icon in my custom shelf, first, you think the
program
runs, wrong, a loft icon shows up on a new shelf by its self,
then I
have to click the loft icon in the newly created custom shelf, then
and only then does ngSkinTools runs, strange.
>From the looks o f it the setup is wrong, I've read over
setting up
the Maya environment file dozens of times in the documentation
that I
swear I can't read it anymore, it's nearly memorized and yet I'm
encountering this problem, I don't even want to attempt begining to
start with python until this is resolved, that and I have
projects to
finish, anoth er reason why I haven't upgraded to 2016 because of
this issue, all I ask is to solve it.
Jesse Kretschmer wrote:
On Mon, Apr 20, 2015 at 5:26 PM, Anthony Tan
<anthony....@greenworm.net <mailto:anthony....@greenworm.net>
<mailto:anthony....@greenworm.net
<mailto:anthony....@greenworm.net>>
<mailto:anthony....@greenworm.net
<mailto:anthony....@greenworm.net>
<mailto:anthony....@greenworm.net
<mailto:anthony....@greenworm.net>>>> wrote:
there's something squiffy about your maya pathing
I agree. I think this is just a pathing issue.
@Crest, run this bit of code from maya and tell me if you find
NSUV.
Feel free to paste back the results:
import os
import sys< BR> for path in sys.path:
test_path = os.path.join(path, "NSUV")
if os.path.exists(test_path):
print "NSUV found:%s" % test_path
else:
prin t "No NSUV found at%s" % path
Note: this code roughly represents what python does under the hood
when you use "import whateva". The sys.path is just a list of
paths to
search. Components of PYTHONPATH are injected when python is
/first/ initialized.
Cheers,
Jesse
--
You received this message because you are subscribed to a topic
in the
Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/python_inside_maya/bkJcnVhSI0Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
python_inside_maya+unsubscr...@googlegroups.com
<mailto:python_inside_maya%2bunsubscr...@googlegroups.com>
<mailto:python_inside_maya+unsubscr...@googlegroups.com
<mailto:python_inside_maya%2bunsubscr...@googlegroups.com>>
<mailto:python_inside_maya+unsubscr...@googlegroups.com
<mailto:python_inside_maya%2bunsubscr...@googlegroups.com>
<mailto: python_inside_maya+unsubscr...@googlegroups.com
<mailto:python_inside_maya%2bunsubscr...@googlegroups.com>>>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/CANESWi0tzEaP0ro-j0uEg5icVyuXAbZaaGb2dC_ArE_ENQ0xBA%40mail.gmail.com
<https://groups.goo
gle.com/d/msgid/python_inside_maya/CANESWi0tzEaP0ro-j0uEg5icVyuXAbZaaGb2dC_ArE_ENQ0xBA%40mail.gmail.com?utm_medium=email&utm_source=footer
<http://gle.com/d/msgid/python_inside_maya/CANESWi0tzEaP0ro-j0uEg5icVyuXAbZaaGb2dC_ArE_ENQ0xBA%40mail.gmail.com?utm_medium=email&utm_source=footer>
<http://gle.com/d/msgid/python_inside_maya/CANESWi0tzEaP0ro-j0uEg5icVyuXAbZaaGb2dC_ArE_ENQ0xBA%40mail.gmail.com?utm_medium=email&utm_source=footer
<http://gle.com/d/msgid/python_inside_maya/CANESWi0tzEaP0ro-j0uEg5icVyuXAbZaaGb2dC_ArE_ENQ0xBA%40mail.gmail.com?utm_medium=email&utm_source=footer>>>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to
python_inside_maya+unsubscr...@googlegroups.com
<mailto:python_inside_maya%2bunsubscr...@googlegroups.com>
<mailto:python_inside_maya+unsubscr...@googlegroups.co
<mailto:python_inside_maya%2bunsubscr...@googlegroups.co> m>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/5535A765.7030100%40gmail.com
<https://groups.google.com/d/msgid/python_inside_maya/5535A765.7030100%40gmail.com?utm_medium=email&utm_source=footer
<https://groups.google.com/d/msgid/python_inside_maya/5535A765.7030100%40gmail.com?utm_medium=email&utm_source=footer>>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic
in the
Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/python_inside_maya/bkJcnVhSI0Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
python_inside_maya+unsubscr...@googlegroups.com
<mailto:python_inside_maya%2bunsubscr...@googlegroups.com>
<mailto:python_inside_maya+unsubscr...@googlegroups.com
<mailto:python_inside_maya%2bunsubscr...@googlegroups.com>>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/1429602067.3822348.256465625.51B645F0%40w
ebmail.messagingengine.com <http://ebmail.messagingengine.com>
<https://groups.google.com/d/msgid/python_inside_maya/1429602067.3822348.256465625.51B645F0%40webmail.messagingengine.com?utm_medium=email&utm_source=footer
<https://groups.google.com/d/msgid/python_inside_maya/1429602067.3822348.256465625.51B645F0%40webmail.messagingengine.com?utm_medium=email&utm_source=footer>>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to python_inside_maya+unsubscr...@googlegroups.com
<mailto:python_inside_maya+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/5536D8A4.6090006%40gmail.com
<https://groups.google.com/d/msgid/python_inside_maya/5536D8A4.6090006%40gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the
Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/python_inside_maya/bkJcnVhSI0Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
python_inside_maya+unsubscr...@googlegroups.com
<mailto:python_inside_maya+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1E8FTvs4TzJjB5yWjeVoB%2BdBLpZtawB%3DGniNHbChGQVw%40mail.gmail.com
<https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1E8FTvs4TzJjB5yWjeVoB%2BdBLpZtawB%3DGniNHbChGQVw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Python
Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/5536E281.8080207%40gmail.com.
For more options, visit https://groups.google.com/d/optout.