Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Maya Basics & Newbie Lounge (https://simplymaya.com/forum/forumdisplay.php?f=31)
-   -   Mel all objExport (https://simplymaya.com/forum/showthread.php?t=28358)

kiranmaya 02-12-2007 11:44 PM

Mel all objExport
 
hey .im trying to write a mel script..where all objects ...that mesh nodes will be export as .obj individually...
that means a 3 nodes of maya will have to export 3 .obj files

my script is :
//main proc is here
window -title "KIRAN'S MAYA TO IRR EXPORT MEL SCRIPT" -wh 500 400;
columnLayout ;
text -l "Destination Path of Meshes:-" ;
$tf1 =`textField -w 234 -tx "f:/irrLicht/media/"` ;
button -l "Export the Meshes" -command ("exportObj(`textField -q -text " + $tf1 + "`)");
showWindow;

proc exportObj(string $path)
{
$allMeshes =`ls -typ "mesh"`;

for($mesh in $allMeshes)
{

$conCat=($path+$mesh+".obj");


//obj export
select -r $mesh;
pv_performAction $conCat "OBJexport" ;

file -f -typ "OBJexport" -es ($conCat) ;
print ($conCat+"\n");



}

};

i got problem ......as unable to write the c:/scene/house.obj

kiranmaya 03-12-2007 12:43 AM

Already 11 members are seen my post..but no one is replying.........plz tell me the solution

bendingiscool 03-12-2007 02:06 AM

The reason people haven't replied is because there may not be a huge amount of scripters here, have you tried over at Highend3d or CGSociety, you may get a quicker response.

Chris

kiranmaya 03-12-2007 12:51 PM

thanks buddy...i will try


All times are GMT. The time now is 05:19 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018