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 |
Already 11 members are seen my post..but no one is replying.........plz tell me the solution
|
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 |
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