I was wanting to, on Windows 10 for Maya 2018, run the script from this website: https://www.highend3d.com/maya/script/obj-i-o-obj-sequences-import-export-for-maya in the Maya Script Editor to allow OBJ Sequences to be exported (so I could import them into After Effects), however, apparently Maya 2018 broke however this script works, and it throws many errors.
Even when calling the main procedure, it says it cannot find it.
My apologies if a solution has been found to this issue, but I have not seen it yet and any help would be greatly appreciated.
I was wanting to, on Windows 10 for Maya 2018, run the script from this website: https://www.highend3d.com/maya/script/obj-i-o-obj-sequences-import-export-for-maya in the Maya Script Editor to allow OBJ Sequences to be exported (so I could import them into After Effects), however, apparently Maya 2018 broke however this script works, and it throws many errors.
Even when calling the main procedure, it says it cannot find it.
My apologies if a solution has been found to this issue, but I have not seen it yet and any help would be greatly appreciated.
So I ran the script without any issues. Granted, I'm on a Mac so that my be part of the problem. I just ran into an issue where Mel had trouble dealing with dialog boxes, updating to 2018.5 fixed the issue. That doesn't really seem like its part of your issue, but couldn't hurt to check. If you're in a bind you can use my script. It rudimentary, and you'll have to manually change the start and end frames at the top of the script:
string $path[] = `fileDialog2 -fm 2 -dialogStyle 1`;
string $sel[] = `ls -sl`;
if(`size($path)` > 0 && `size($sel)` > 0){
int $start = 1;
int $end = 100;
int $by = 1;
int $pad = 4;
//Progress Window
progressWindow
-title "Export OBJ Sequence"
-progress $start
-min $start
-max $end
-status "Exporting: "
-isInterruptable true;
//Loop
while($start <= $end){
refresh;
// Check if the dialog has been cancelled
if ( `progressWindow -query -isCancelled` ) break;
// Check if end condition has been reached
if ( `progressWindow -query -progress` >= 100 ) break;
//Set Time and Select
currentTime $start;
select -r $sel[0];
//Frame Padding
string $paddedScript = `python ("'%s0%dd' % ('%'," + $pad + ") % "+$start)`;
string $exportBasename = ($path[0]+"/"+$sel[0]+"_"+$paddedScript);
//Export OBJ
file -force -options "groups=1;ptgroups=1;materials=1;smoothing=1;normals=1" -typ "OBJexport" -pr -es ($exportBasename+".obj");
//Edit Progress Window
progressWindow -edit
-progress $start
-status ("Exporting: "+$sel[0]+"_"+$paddedScript+".obj");
//increment
$start = $start + $by;
}
progressWindow -endProgress;
}
So I ran the script without any issues. Granted, I'm on a Mac so that my be part of the problem. I just ran into an issue where Mel had trouble dealing with dialog boxes, updating to 2018.5 fixed the issue. That doesn't really seem like its part of your issue, but couldn't hurt to check. If you're in a bind you can use my script. It rudimentary, and you'll have to manually change the start and end frames at the top of the script:
string $path[] = `fileDialog2 -fm 2 -dialogStyle 1`;
string $sel[] = `ls -sl`;
if(`size($path)` > 0 && `size($sel)` > 0){
int $start = 1;
int $end = 100;
int $by = 1;
int $pad = 4;
//Progress Window
progressWindow
-title "Export OBJ Sequence"
-progress $start
-min $start
-max $end
-status "Exporting: "
-isInterruptable true;
//Loop
while($start <= $end){
refresh;
// Check if the dialog has been cancelled
if ( `progressWindow -query -isCancelled` ) break;
// Check if end condition has been reached
if ( `progressWindow -query -progress` >= 100 ) break;
//Set Time and Select
currentTime $start;
select -r $sel[0];
//Frame Padding
string $paddedScript = `python ("'%s0%dd' % ('%'," + $pad + ") % "+$start)`;
string $exportBasename = ($path[0]+"/"+$sel[0]+"_"+$paddedScript);
//Export OBJ
file -force -options "groups=1;ptgroups=1;materials=1;smoothing=1;normals=1" -typ "OBJexport" -pr -es ($exportBasename+".obj");
//Edit Progress Window
progressWindow -edit
-progress $start
-status ("Exporting: "+$sel[0]+"_"+$paddedScript+".obj");
//increment
$start = $start + $by;
}
progressWindow -endProgress;
}
Can't find what you're looking for? Ask the community or share your knowledge.