Introduction to Maya - Modeling Fundamentals Vol 2
This course will look in the fundamentals of modeling in Maya with an emphasis on creating good topology. It's aimed at people that have some modeling experience in Maya but are having trouble with complex objects.
# 1 02-12-2007 , 11:44 PM
Registered User
Join Date: Apr 2007
Posts: 5

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

# 2 03-12-2007 , 12:43 AM
Registered User
Join Date: Apr 2007
Posts: 5
Already 11 members are seen my post..but no one is replying.........plz tell me the solution

# 3 03-12-2007 , 02:06 AM
bendingiscool's Avatar
Subscriber
Join Date: Jul 2006
Location: London
Posts: 567
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

# 4 03-12-2007 , 12:51 PM
Registered User
Join Date: Apr 2007
Posts: 5
thanks buddy...i will try

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads