Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 02-12-2007, 11:44 PM   #1
kiranmaya
Registered User
 
Join Date: Apr 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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 is offline   Reply With Quote
Old 03-12-2007, 12:43 AM   #2
kiranmaya
Registered User
 
Join Date: Apr 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Already 11 members are seen my post..but no one is replying.........plz tell me the solution
kiranmaya is offline   Reply With Quote
Old 03-12-2007, 02:06 AM   #3
bendingiscool
Subscriber
 
bendingiscool's Avatar
 
Join Date: Jul 2006
Location: London
Posts: 567
Thanks: 0
Thanked 1 Time in 1 Post
Default

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
bendingiscool is offline   Reply With Quote
Old 03-12-2007, 12:51 PM   #4
kiranmaya
Registered User
 
Join Date: Apr 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks buddy...i will try
kiranmaya is offline   Reply With Quote
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
MEL headache! happymat27 Members Lounge 5 05-12-2010 09:43 AM
MEL headache!! happymat27 Mel Scripts & Programming 1 03-12-2010 04:41 PM

Thread Tools





A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.