SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Lounges / Maya Basics & Newbie Lounge / Mel all objExport
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 02-12-2007, 10: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 02-12-2007, 11:43 PM   #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, 01: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, 11:51 AM   #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
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

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

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.