hi,
i have this script which doenst work for me under linux... maya tells me
error: DSO faild to load properly or perhaps commandList is incorrect.
i dont have any mel experience but it looks like somethings wrong with the fileBrowserDialog function... it would be very nice if someone could come up with a solution! thanks, phil
CODE
global proc exportBlends (){
fileBrowserDialog -mode 4 -fc "exportCallback" -an "Pick Your Blend Shape Directory";
return;
}
global proc exportCallback(string $path, string $mode){
print ("this is the dir path: " + $path + "\n");
string $objs[] = ls -sl
;
for ($obj in $objs){
select $obj;
file -es -type "mayaAscii" ($path + "/" + $obj);
delete $obj;
print "successfully exported objects! \n";
}
}