User avatar
By deadalvs
#256898
hi ...

i was tired of putting duplicates of my scripts in maya's default scripts folder, so i wrote a little script that lets me source the scripts from any directory.
like this i can store all my scripts on a shared network folder and keep the maya installations clear.

the script actually checks the dir for all .mel scripts and sources ALL that is found.
simply put the code to a shelf button or in the userSetup.mel file.

string $path = "enter path here";

string $FileArray[] = `getFileList -folder $path`;
for ($eachFile in $FileArray){
//print ($eachFile + "\n");
string $buffer[];
$numTokens = `tokenize $eachFile "." $buffer`;
if ($buffer[(size($buffer))-1] == "mel"){
string $FullPath = $path + $buffer[0] + ".mel";
eval ("source " + "\"" + $FullPath + "\"");
}
}
i hope someone can use this too...
Sketchup 2025 Released

Thank you Fernando!!!!!!!!!!!!!!!!!!!!!!!!!!! hwol[…]

I've noticed that "export all" creates l[…]

hmmm can you elaborate a bit about the the use of […]

render engines and Maxwell

Funny, I think, that when I check CG sites they ar[…]