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