Mayafather2
Aug 16, 2012
Post id: 310495 Report Item

I asked to friend.he said his maya frozen.

but when I execute this mel script I got this weird result.what can be the problem source ?

getenv "PYTHONPATH";

// Result: D:/Development/Animation/MaYa/Scripts/Py/;•ş"™mH‡¹¶êäI-RÙn*ûÓuø-î(}j“ğŠlÒ$)H“xQ› `µ™ïë¥oê9uŞÁ+šè'/scripts;jæĞèBFn³ûıÅó°ìŠN8fML–´g–j0ö¹®/scripts;ù@pÆÚ¬ì¤9š'ëJÅ¥‰£ì™¸&Š£Ô328HÔ³efUÁ諃 3J#ž#ÊŒ‘“ WÀ    ŸÒ<E’kô/].(£°vzvˆiÍ2$‰,xÎlTùåHÓ’Aeİ‹ +ŠîHôg‡MD/scripts;Û¬HĞÙ/scripts;D:/Development/Animation/MaYa/Scripts/Modules/dnWireHelpers/scripts;¦Hp0uˆË    9/çíÀ/scripts;VÁàÖşÙ.ø_èÛÏ„ƒe«àžÚ·ª¤›Á’Œñ âR Sk¨¾ò‘êho+®Ø)Wû`‰ ã/scripts;ÒÏ·Ò+ÑÀÙ¾IYâ£<š¼åÈlÛ|§ù„>ê»ã{?¾Ì¿¯©õulóMZ7‘¾Í³|DŠXͤ¤ÃO^ÕÊ[h"Éž/scripts;D:/Development/Animation/MaYa/Scripts/Modules/CheckerMapSwitcher/scripts;D:/Development/Animation/MaYa/Scripts/Modules/ktJointBox/scripts;ª(-üÔõÂqY{k›ê/Ù=±S³B¹/¶ø–—WpõÒ®^ÃÀ†u½:&B´Ìn§Fm­a¦T)§ØV8Síàâ™+Øtİ/scripts;C:/Program Files/Autodesk/Maya2012/vray/scripts;C:/Program Files/NVIDIA Corporation/PhysX for Maya/Maya 2012/scripts //


my environment variable PYTHONPATH is very clear in Windows Setting.
D:\Development\Animation\MaYa/Scripts\Py\
is the only value.
is getenv a problemmatic command?

Dashboard_avatar
Aug 17, 2012
Post id: 310497 Report Item

Maya sets pythonpath so that python knows to work inside maya. The problematic characters may be becasue of your system locale. Now system locales ARE a problem. bascially if you ever have a non western locale your into a lot fo arbitrary problems. Not just in maya but in just about anything.

Mayafather2
Aug 17, 2012
Post id: 310503 Report Item

it seems its a maya's unicode problem.
about System Locale settings.
maya seems not fully support Unicode.
this probem doesnt seems on English Localized System.

Dashboard_avatar
Aug 17, 2012
Post id: 310506 Report Item

Yes. You don't really want to ever path names that are non-english its not a bias against your home language. Even i dont use my primary/secondary language for stuff like this*. Mel has no facilities for characters other than found in western alphabet pages (mel uses some isolatin derivative).

System locale sets a character code page for applications so thet they dont need to use the full unicode. And all applications that are older than 2000 need to be checked thoroughly. Even unicdoe does not normally help since often the coders anticipate only western Unicode characters.

Anyway locales are a big problem for programmers. I mean my coworker spent 2 months debugging a problem with a string matching routine. They then found that the problem was in the Turkish locale. See in Turkish they have letter I with dots and without, So doing "index" to upper does NOT produce "INDEX" it produces a string that starts with a big I with dot and that is not the same as the "i" we use. This caused a hard to detect bug in system. Worse there was no way to debug this on our systems.

So if you care about your computer, no matter how nationalistic you happen to be. Stay English! There is no force on earth that can fix all the language caveats until ALL software programmers speak the same language as you, and have same cultural background. Weird things happen i tell you and we have no way of being sure without having a PhD in every language on earth. This is how it is, sad but true.

* and yet for me its simple enough i have the same alphabet.