I don't understand why you are having these troubles either, otherwise we
might have pinpointed it long ago.

If you see your Maya.env defined PYTHONPATH in that list of 42 paths, then
it means your Maya.env is being read and you can put your NSUV directory
there.
If you do not see that custom path, then your Maya.env is not being read.
And the correct place to put the NSUV would be any of the locations that
are under the prefs or shared location (and not a system location or Maya
internal application location )

Maya automatically gives you a number of locations on the PYTHONPATH. The
results of "sys.path" is a combination of the custom env paths + Maya's
internal paths + potentially system locations

On Thu, 30 Apr 2015 1:30 PM Christopher. <[email protected]> wrote:

> I've run this command import sys
> for pythonPath in sys.path:
>     print pythonPath
>
> I have 42 python paths, this may be the problem, how do I know what python
> path to place python scripts; since obviously the Maya.env file is not
> being read where the python scripts are placed ? I don't understand why I'm
> having this many problems for something that is relatively easy, I really
> must say at this point WTF.
>
>
> On Sunday, April 19, 2015 at 4:06:29 PM UTC-4, Justin Israel wrote:
>
>> Not sure how to solve your problem at this point then. Seems you have a
>> ghost in the machine.
>> Did you try removing the custom Maya env and trying a standard install to
>> a scripts location?
>>
>> On Mon, 20 Apr 2015 1:46 AM Christopher. <[email protected]> wrote:
>>
>>> I can confirm I see the location where NSUV exists using the command you
>>> posted.
>>>
>>>
>>> On Sunday, April 19, 2015 at 12:41:30 AM UTC-4, Justin Israel wrote:
>>>
>>>> That is where I think your problem is. If you have made a custom script
>>>> location, and set that as your maya script path, and placed a python
>>>> package in there, then it won't work. Maya by default has the default
>>>> script locations also on the PYTHONPATH. But in your custom Maya script
>>>> location, I doubt it too is on the PYTHONPATH. Can you do the following
>>>> from the Script Editor
>>>>
>>>> import sys
>>>> for p in sys.path:
>>>>     print p
>>>>
>>>> And confirm that you see the location where your NSUV python package
>>>> exists?
>>>>
>>>> On Sun, 19 Apr 2015 11:08 AM Christopher. <[email protected]>
>>>> wrote:
>>>>
>>>>> MAYA_SCRIPT_PATH = C:\[folder name]\[sub-folder-name]\scripts
>>>>> PYTHONPATH = C:\""\""\pythonscripts\
>>>>>
>>>>> That is exactly how I have it laid out in my Maya.env file.  All
>>>>> script get placed in the scripts folder, all python scripts, get placed in
>>>>> the python folder.  In this case NSUV gets placed in the scripts folder, I
>>>>> have tested it in the python scripts folder as well with no positive
>>>>> results.
>>>>>
>>>>>
>>>>> On Saturday, April 18, 2015 at 4:20:17 PM UTC-4, Justin Israel wrote:
>>>>>
>>>>>> I just grabbed a copy of that Nightshade plugin and tried it. Worked
>>>>>> right away. Are you sure you followed the instructions? I just copied 
>>>>>> over
>>>>>> the contents of the bundled "scripts" directory to my Maya's scripts
>>>>>> location. I happened to put it in the shared scripts location, on my mac:
>>>>>>
>>>>>> $ ls -1 /Users/justin/Library/Preferences/Autodesk/maya/scripts
>>>>>> NSUV
>>>>>> calcUVStats.py
>>>>>> texturePanel_NSUV.mel
>>>>>> texturePanel_NSUV_2015.mel
>>>>>> textureWindowCreateToolBar_NSUV.mel
>>>>>> textureWindowCreateToolBar_NSUV_2014.mel
>>>>>> textureWindowCreateToolBar_NSUV_2015.mel
>>>>>>
>>>>>> ​
>>>>>>
>>>>>> The NSUV package gets picked up because the shared scripts location
>>>>>> is on the default Maya pythonpath
>>>>>>
>>>>>> Maybe post what your installation location looks like? I haven't
>>>>>> tried to customize my Maya.env to point specifically to this or anything.
>>>>>> More information would be helpful.
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Sun, Apr 19, 2015 at 7:41 AM johan Borgström <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>>> Maybe a missing __init__.py ?
>>>>>>>
>>>>>>> --
>>>>>>> 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 [email protected].
>>>>>>> To view this discussion on the web visit
>>>>>>> https://groups.google.com/d/msgid/python_inside_maya/b51db530-6074-437e-93e0-07675264f128%40googlegroups.com
>>>>>>> .
>>>>>>> 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 [email protected].
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/python_inside_maya/667c64a9-f646-40be-b276-45606081541f%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/python_inside_maya/667c64a9-f646-40be-b276-45606081541f%40googlegroups.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 [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/python_inside_maya/5ab9d017-7194-47c1-a71b-59d82d2aa4ee%40googlegroups.com
>>> <https://groups.google.com/d/msgid/python_inside_maya/5ab9d017-7194-47c1-a71b-59d82d2aa4ee%40googlegroups.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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/d2836700-98bf-48b0-99a7-9a751e557b97%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/d2836700-98bf-48b0-99a7-9a751e557b97%40googlegroups.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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0OGTKyBkuzcDvKKvB0_jUnjgYDEUoa6%2BRjoX_n8c3NxA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to