PDA

View Full Version : Sub-Directories in the maya_script_path


ugh138
12-20-2005, 09:56 PM
I was just wondering if there was a flag or something that you can include in you Maya env file that would force Maya to search and load scripts in sub-directories of the maya_script_path.

let say my user script path is x:/maya/scripts Maya will source all the scripts in this path since it is in maya Env file. But if I want to put the scripts in this path into sub-directories maya will not source them. I am forced to add the explict path for each sub-directory I create to the Env file in order to get Maya to auto-source these scripts.

Any ideas

sunit
12-20-2005, 11:33 PM
you can source your scripts with the sub-directories included in the source statement. for example:

source "PeltingTools/peltingTools_1_0.mel"

where PeltingTools is a subdirectory.

cheers,
sunit

ugh138
12-22-2005, 12:01 AM
thanks, but I'm looking for an automatic way to include all the sub directories of my scripts folder without having to a add a new comment to the env everytime I add or change a folder in there.

I could write a .bat file that would run when Maya is executed that could query the sub-directories of the scripts folder and then print out a new env file everytime.

Kind of a round-a-bout way of doing it.

Just was hoping that there was an internal way of doing it.

CGTalk Moderation
12-22-2005, 12:01 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.