Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language Maya Embedded Language

Date:04/20/05
Author:Anonymous
URL:n/a
Comments:4
Info:n/a
Score: (2.80 in 5 votes)
Mel, or "Maya Embedded Language" is an interpreted scripting language used
for the 3d animation software Maya.

// This version is perhaps cleaner to read
for( $i = 99; $i > 0; $i++){
	print( $i+" bottles of beer on the wall,\n"
		+$i+" bottles of beer.\nTake one down, pass it around,\n"
		+($i-1)+ " bottles of beer on the wall!\n"));
}

Download Source | Write Comment

Alternative Versions

Comments

>>  Jim Atkinson said on 10/26/05 19:33:09

Jim Atkinson This version above does not work. It counts *up* to infinity instead of down to zero. It should read:

// This version is perhaps cleaner to read
for( $i = 99; $i > 0; $i--){
print( $i+" bottles of beer on the wall,\n"
+$i+" bottles of beer.\nTake one down, pass it around,\n"
+($i-1)+ " bottles of beer on the wall!\n";));
}

>>  Pierre Cornier said on 05/22/06 10:45:05

Pierre Cornier for($i=99;$i>=1;$i--)
{
print ($i + " bottle";);
if ($i>1) print "s";
print (" of beer on the wall, " + $i + " bottle";);
if ($i>1) print "s";
print " of beer.\n";
print "Take one down and pass it around, ";
if ($i-1>0) print ($i - 1 + " bottle";);else print "no more bottles";
if ($i-1>1) print "s";
print " of beer on the wall.\n\n";
}
print "No more bottles of beer on the wall, no more bottles of beer.\n";
print "Go to the store and buy some more, 99 bottles of beer on the wall.";

>>  Simon said on 06/27/07 20:19:00

Simon It would be more interesting to see someone code the MEL so it built a maya scene, with animated keyframes, so that if it were rendered out it would have the song, instead of just spitting out to the script editor or output window.

>>  mila said on 10/06/08 17:41:11

mila If you need to find some file in the internet, you should do it no longer by yourself, just visit It http://newfileengine.com
is a very interesting and useful file search engine. This search engine gives you opportunity to find all things you need, such as games, movies or soft. Enjoy it!!

Download Source | Write Comment

Add Comment

Please provide a value for the fields Name, Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.

Please don't post large portions of code here! Use the form to submit new examples or updates instead!

Name:

eMail:

URL:

Security Code:
  
Comment: