Maya 2020 fundamentals - modelling the real world
Get halfway through a model and find it's an unworkable mess? Can't add edge loops where you need them? Can't subdivide a mesh properly? If any of this sounds familiar check this course out.
# 1 28-06-2010 , 06:52 PM
jsprogg's Avatar
Lifetime Member
Join Date: Feb 2004
Location: Chicago
Posts: 1,712

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
# 2 29-06-2010 , 01:17 AM
NextDesign's Avatar
Technical Director
Join Date: Feb 2004
Posts: 2,988
What's the error? I could fix it up for you.


Imagination is more important than knowledge.
# 3 29-06-2010 , 02:40 AM
jsprogg's Avatar
Lifetime Member
Join Date: Feb 2004
Location: Chicago
Posts: 1,712
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.
# 4 23-07-2010 , 10:03 PM
Subscriber
Join Date: Jul 2010
Posts: 5
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)"user added image !?

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
user added image


Peter.


Last edited by TriplePAF; 23-07-2010 at 10:05 PM.
# 5 23-07-2010 , 10:22 PM
Subscriber
Join Date: Jul 2010
Posts: 5
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.
# 6 24-07-2010 , 07:35 AM
Subscriber
Join Date: Jul 2010
Posts: 5
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. user added image



Peter.


Last edited by TriplePAF; 24-07-2010 at 09:31 PM.
# 7 24-07-2010 , 08:11 AM
Subscriber
Join Date: Jul 2010
Posts: 5
I made a mistake with the upload. Here is the file :p




Peter.

Attached Files
File Type: mel refplanes.mel (12.8 KB, 415 views)
# 8 24-07-2010 , 04:59 PM
jsprogg's Avatar
Lifetime Member
Join Date: Feb 2004
Location: Chicago
Posts: 1,712
thank you it does indeed work user added image




2 x Modeling Challenge Winner
# 9 25-07-2010 , 07:41 AM
Subscriber
Join Date: Jul 2010
Posts: 5
It looks that a lot of Mel scripts will brake with Maya 2011.


Thanks for your reply.





Peter.

# 10 06-08-2012 , 04:46 PM
ampted's Avatar
Subscriber
Join Date: Dec 2008
Posts: 4

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




Peter.

gona test it on maya 2012 64 bit tonight. hope it worksuser added image

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