Have any one used the MAYA_SHELF_PATH enviroment variable?
I am trying to use it here and i get wierd results. i can set it up fine and maya reads from the given MAYA_SHELF_PATH directory fine . but it opens all the shelfs empty even is thy have abuttons set up. And when I close the maya it saves the empty shelfs over shelfs with buttons.
ALSO chek teht you as the user have priviligies to read the files! Maya has no higher priviligies than you do! Also its possible theat maya is run on lower priviligies than yours IF you arent the one that set iup maya, in firstplace. (maya might not have read priviliges but might habve write ones), and no admin does not allways have FULL priviligies, infact on one user home sytems your not allways even truly ADMIN.
But yuyeah ive uset the MAYA_SHELF_PATH no problems whatsoever.
Are you sure your SYNYTAX is right because emprty files suggests maya reads something thet isnt there, ie its looking in some other path than the one you intended. but because of sytem syntax they are interpretted as ones thte will wirte back whare you are. (it is possible to do this! if you have somsort of wrong file globbing)
Note paths that have spaces in them MUST be quoted!
QUOTE MAYA_SHELF_PATH="D:/7.0/Shelves;"
wont work because the problem si thahat the ; is inside the quotes its shouldnt its a SYNTAX error. but say your path vas c:\my frigging spaced\path\
QUOTE(Joojaa @ 12/05/05, 12:51 PM) wont work because the problem si thahat the ; is inside the quotes
Nope. The problem is the inverted commas. You try it mate. Stick all your shelves in C:\7.0\Shelves, and then go to the dos prompt, and try the following:- $ set MAYA_SHELF_PATH="C:\7.0\Shelves" $ maya.exe
You'll get "*** Fatal Error: Failed creating shelf directory: "C:/7.0/Shelves"" when maya starts.
Now try $ set MAYA_SHELF_PATH=C:\7.0\Shelves $ maya.exe
It'll work.
Yes, I know this means you can't have spaces in your MAYA_SHELF_PATH. It's rubbish - but that's how it is.
QUOTE(Joojaa @ 12/05/05, 12:51 PM) note id they are env vars in windows THEY shoudl be "\"s instead of "/"s
It makes no difference. Try:- $ set MAYA_SHELF_PATH=C:/7.0/Shelves $ maya.exe
oh okay... didnt actualy try it, thing is my windows does not have a single directory with space names! not even program files (wich is now just apps) has spaces... Just because it makes typing stuff easier on me.
menan mayas apps\3d\maya7 wich is much more convinenet than "program files\3d\maya7.0"
tough it seems to eat spaced paths without quites quite well, infact i rechekked windows manuals of this and path variables are asumed quoted in anycase. So no quoting would ever be naeeded anyway.
if i create a path c:\hey ho\myshelf
and set
set MAYA_SHELF_PATH=c:/hey ho/myshelf
works fine. just separate them with ;'s
ANYWICH way theres 3 thing that may casue this and it the fact that whjhen you copy shelves and if yuou reneame them you need to rename the shelf files global procname too!
QUOTE QUOTE note id they are env vars in windows THEY shoudl be "\"s instead of "/"s
It makes no difference. Try:- $ set MAYA_SHELF_PATH=C:/7.0/Shelves $ maya.exe
It'll still work.
yes... but even \s work, bacaus eits sytem dependent you cant then jsut do a nifty trick on the commandline where tyou setlocal in batch then set path to be localy MAYA_SHELF_PATH to quickly find files for your editting/ dispatching youd now need to convert them to \'s
Its not realy amaya consideration at all but rather a admin one.
Now because maya internaly takes care of this i can now use the vars as is on scripts inside cmd without a hustle... MAkes managing just about 10 times easier.
Alos i couldnt use cd %MAYA_SHELF_PATH% to get to the firt dir in the path quickly. (not this work sin explorer and shortcuts aslwell so it meks sense for admin to have them as ) So if someone moved this path id still find it by just typing %MAYA_SHELF_PATH% in explorer or split by ; and open each one separately, its less work.