Maya.env broken in 2014?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  10 October 2013
Maya.env broken in 2014?

I'm running Maya 2012 and Maya 2014. For both versions, I am assigning a value to XBMLANGPATH in Maya.env, but the value is not registering in 2014.

In 2014, I have verified MAYA_APP_DIR (pm.util.getEnv('MAYA_APP_DIR')), and I have confirmed that the path specified in Maya.env is being ignored (pm.mel.xbmLangPathList() -- my custom path does not show up in the list).

I have also tried using backward slashes in my path (I'm running Windows) instead of forward slashes, as recommended in the Maya documentation (normally, I use forward slashes without any problems). This hasn't worked.

Anyone else having problems adding icon paths via Maya.env in 2014? If not, then what might my problem be?
__________________
Milo D. Cooper
Computer programmer (F#, C#, C++, Python, MaxScript, VBA)
http://www.miloonline.net/
 
  10 October 2013
Not sure if this will help, but, in our Maya.env file, we need to put MAYA_SHELF_PATH and MAYA_ICON_PATH on top. If they are something else above them they don't work.
 
  10 October 2013
yea, the order of the variables in the .env matters. learned that the hard way through trial and error.

i don't even use the .env file anymore - i configure the environment tusing pure python.
 
  11 November 2013
Originally Posted by rgkovach123: yea, the order of the variables in the .env matters. learned that the hard way through trial and error.

i don't even use the .env file anymore - i configure the environment tusing pure python.


Suck. XBMLANGPATH is the only variable in my Maya.env file.

I'll go the Python route, thanks for the tip, rgkovach123.
__________________
Milo D. Cooper
Computer programmer (F#, C#, C++, Python, MaxScript, VBA)
http://www.miloonline.net/
 
  11 November 2013
Actually, I discovered the problem.

If you have a Maya.env file in the user version folder of the version of Maya that you are running, then the Maya.env file in the root user folder will be completely ignored.

For example, if I have Maya.env in my user Maya folder, and I have it in the 2012-x64 subfolder as well, then only the 2012-x64/Maya.env will get read when I run that version of the software. Even settings that appear only in the root Maya.env file will not be set; it will be as though the entire file never existed.
__________________
Milo D. Cooper
Computer programmer (F#, C#, C++, Python, MaxScript, VBA)
http://www.miloonline.net/
 
  11 November 2013
So not a 2014 problem then?
I would imagine its always been that way. Like mel or python script files, it will use the first one it finds.

David
__________________
http://www.djx.com.au
 
  11 November 2013
Originally Posted by djx: So not a 2014 problem then?
I would imagine its always been that way. Like mel or python script files, it will use the first one it finds.


Not a 2014 problem, no. I thought that the two Maya.env files would be processed additively, but Maya processed them exclusively. I wonder if this rather significant behavior has ever been documented.
__________________
Milo D. Cooper
Computer programmer (F#, C#, C++, Python, MaxScript, VBA)
http://www.miloonline.net/
 
  11 November 2013
From you link "2. Save it to one of the following directories:"
I added the underline in this case, but they did say "one", with no mention of the use of multiple .env files. Its the same with userSetup.mel, userSetup.py or any other script. Sometimes it is not clear what the path order is going to be, but in thecase of multiples it will just use the first one it finds.

David
__________________
http://www.djx.com.au
 
  11 November 2013
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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 07:47 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.