PDA

View Full Version : Help with browsing paths


shenmue
12-24-2006, 09:15 PM
Hi guys

I am having trouble to organize my project my scripts etc...because it is always the same path.Everything is on F:\Documents and Settings\user\Mis documentos\maya.But I want to define other paths and I dont know how.I´ve readed the help but I dont get it.Could some one explain it to me?Thanks

Sick Spider
12-24-2006, 10:17 PM
to find workSpace:


string $space = `workspace -q -active`;


and to change the folder as u like:


$space = `substitute "Maya" $space "Maya/WhereEver/WhatEver/HowEver"`;

The "maya" is the actual folder u want to change.

By the way this will work only if u have a known folder structure
and well though naming conventions.
I THINK that is what you are looking for.

shenmue
12-24-2006, 10:44 PM
Hi
I am not really sure.I found it a little strange having to go on script to set a path.May be it is because I used to work in max.I ´ll try to explain better:
For example,when I open a scene,by default it opens on "Documents and settings\User\My documentes\Maya\Projects\default\Scenes".What I want is that by default it opens on the folder that I have created in other place.Let say "F:\My Maya projects\Scenes"
Other problem is that when I am making a script and I try to call it an error pops up saying "Cannont find procedure myprocedure".That is because by default the scripts are readed in "Documents and settings\User\My documentes\Maya\Script" I think.

This is what Maya Help tells

"MAYA_APP_DIR (Windows and Linux)

This variable defines your personal Maya application directory. This directory contains your projects and other important items:




the prefs directory
the projects directory
mayaRenderLog.txt
mayaLog
mayaJournal
the scripts directory
(Maya.env, if you choose to create it, can also reside in this directory)


You can only set MAYA_APP_DIR from the operating system; you cannot use Maya.env. If you do not set it, the default values are: ~username/maya (Linux) or drive:\Documents and Settings\username\My Documents\maya (Windows).

For Mac OS X, you cannot set an environment variables from the operating system."


Thanks for your help

Sick Spider
12-24-2006, 10:51 PM
Hoo..
I think u mean:
Go to "file" => "Project" => "Set"
Or create a new one under ""New".
Is that it ?

shenmue
12-24-2006, 11:11 PM
Yes!!Exactly!!! thanks.
But I am still having problem evaluating my scripts for the reasons I told you before.
What can I do for the scripts??

Sick Spider
12-25-2006, 01:42 AM
open Maya.env in u'r "my doc\maya\version" folder ad add:

MAYA_SCRIPT_PATH = c:\whatEver\WhereEver\;

CGTalk Moderation
12-25-2006, 01:42 AM
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.