SimplyMaya Forums

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

Home / forum / Lounges / Members Lounge / refplanes.mel
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 28-06-2010, 06:52 PM   #1
jsprogg
Lifetime Member
 
jsprogg's Avatar
 
Join Date: Feb 2004
Location: Chicago
Posts: 1,708
Thanks: 0
Thanked 85 Times in 77 Posts
Default refplanes.mel

Hi has anyone managed to get Kari's refplanes mel script to work in Maya 2011 ?
it's fine in previous versions but now i cant seem to get it to recognize any image files .
__________________


2 x Modeling Challenge Winner
jsprogg is offline   Reply With Quote
Old 29-06-2010, 01:17 AM   #2
NextDesign
Technical Director
 
NextDesign's Avatar
 
Join Date: Feb 2004
Posts: 2,988
Thanks: 33
Thanked 532 Times in 471 Posts
Default

What's the error? I could fix it up for you.
__________________
Imagination is more important than knowledge.
NextDesign is offline   Reply With Quote
Old 29-06-2010, 02:40 AM   #3
jsprogg
Lifetime Member
 
jsprogg's Avatar
 
Join Date: Feb 2004
Location: Chicago
Posts: 1,708
Thanks: 0
Thanked 85 Times in 77 Posts
Default

the first thing is that it gives a warning that -la/labelAlign flag is obsolete and should not be used.

other than that if i browse for an image to place in the top / side / front ect the image files dont show up in the browser yet they do if i want to add the image to a file texture node.
__________________


2 x Modeling Challenge Winner

Last edited by jsprogg : 29-06-2010 at 02:44 AM.
jsprogg is offline   Reply With Quote
Old 23-07-2010, 10:03 PM   #4
TriplePAF
Subscriber
 
Join Date: Jul 2010
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
Default

I have the same issue with Maya 2011. I just can't select a file. The script editor is showing following errors:


// Warning: The -lw/-labelWidth flag is obsolete and should not be used. //
// Warning: The -la/-labelAlign flag is obsolete and should not be used. //
fileDialog2 -fm 1 -ds 2 -dir "/Users/Peter/Documents/maya/projects/" -ff "Filtered Files (Apache)";

My project map is called Apache ("Filtered Files (Apache)" !?

If I open a file just with the Maya file | import dialog the script editor is displaying the following line:

fileDialog2 -fm 1 -ds 2 -dir "/Users/Peter/Documents/maya/projects/Apache/" -ff "Filtered Files (*.*)";

Now it states *.*


I'm somewhat disappointed. The tutorial says Maya 6 and up



Peter.

Last edited by TriplePAF : 23-07-2010 at 10:05 PM.
TriplePAF is offline   Reply With Quote
Old 23-07-2010, 10:22 PM   #5
TriplePAF
Subscriber
 
Join Date: Jul 2010
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
Default

I got a little bit further

If I browse to the directory where my Images are standing and I type the exact name with extension inside the open dialog box then it creates the plane and I also got an extra warning:

// Result: /Users/Peter/Documents/maya/projects/Apache/sourceimages/lChassisReference.jpg //
// Warning: The -tx/texture flag is obsolete and will be removed in the next release. The -cuv/createUVs flag should be used instead. //
// Error: Nothing is currently selected. //


My Mel knowledge is at the moment of writing this message 4 hours and google is not providing the answers I want. Please help to fix these errors.



Peter.

Last edited by TriplePAF : 23-07-2010 at 10:35 PM.
TriplePAF is offline   Reply With Quote
Old 24-07-2010, 07:35 AM   #6
TriplePAF
Subscriber
 
Join Date: Jul 2010
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
Talking

It's working. I modified especially the FileDialog command inside the refplanes script.

Bottom-point... This version should work with Maya 2011 and probable brakes with most earlier versions of Maya.



Peter.

Last edited by TriplePAF : 24-07-2010 at 09:31 PM.
TriplePAF is offline   Reply With Quote
Old 24-07-2010, 08:11 AM   #7
TriplePAF
Subscriber
 
Join Date: Jul 2010
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
Default

I made a mistake with the upload. Here is the file :p




Peter.
Attached Files
File Type: mel refplanes.mel (12.8 KB, 124 views)
TriplePAF is offline   Reply With Quote
The Following User Says Thank You to TriplePAF For This Useful Post:
ampted (06-08-2012)
Old 24-07-2010, 04:59 PM   #8
jsprogg
Lifetime Member
 
jsprogg's Avatar
 
Join Date: Feb 2004
Location: Chicago
Posts: 1,708
Thanks: 0
Thanked 85 Times in 77 Posts
Default

thank you it does indeed work
__________________


2 x Modeling Challenge Winner
jsprogg is offline   Reply With Quote
Old 25-07-2010, 07:41 AM   #9
TriplePAF
Subscriber
 
Join Date: Jul 2010
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
Default

It looks that a lot of Mel scripts will brake with Maya 2011.


Thanks for your reply.





Peter.
TriplePAF is offline   Reply With Quote
Old 06-08-2012, 04:46 PM   #10
ampted
Subscriber
 
ampted's Avatar
 
Join Date: Dec 2008
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by TriplePAF View Post
I made a mistake with the upload. Here is the file :p




Peter.
gona test it on maya 2012 64 bit tonight. hope it works
ampted 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

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.