Friday, November 19, 2010

A Few Fundamental MEL Commands Everyone Should Know

Here are a couple of useful MEL commands/operators that you'll end up using in a lot of the stuff you write.

continue ;
Skips one iteration of a loop.

break ;
Stops the loop and continues script where the loop ends.

Warning("You messed up, but it isn't too bad so I'll keep going.") ;
Warnings alert the user that something is awry, but it's not a deal breaker.

Error("You messed up bad, I need to quit now.") ;
The error command will stop a script in it's tracks, ending everything.

return ;
Ends a procedure/function/method, but not the entire script. Continues on where the procedure ends. Can also be used to return a value (return $myString).

CGSutra has a great article going into more depth on these and a lot more of the fundamental MEL concepts. Check it out here.

72 comments:

  1. SEO is a very popular way to top rank your site here are variety of softwares, Books, Tools and Tips that can help you to get high rank your website in all Search engine like Google, Bing, Yahoo etc and Alexa Ranking. For more Detail visit Click Here
    SEO Techniques
    Search Engine Optimization

    ReplyDelete
  2. Thanks for post this helpful post - Please visit for More information about -
    http://www.expert5th.in/packers-and-movers-hyderabad/
    http://www.expert5th.in/packers-and-movers-mumbai/
    http://www.expert5th.in/packers-and-movers-chennai/
    http://www.expert5th.in/packers-and-movers-noida/

    ReplyDelete
  3. This article is really fantastic and thanks for sharing the valuable post.
    http://www.expert5th.in/packers-and-movers-delhi/
    http://www.expert5th.in/packers-and-movers-bangalore/
    http://www.expert5th.in/packers-and-movers-gurgaon/
    http://www.expert5th.in/packers-and-movers-pune/

    ReplyDelete
  4. Thanks for all your information, Website is very nice and informative content.
    http://www.expert5th.in/packers-and-movers-thane/
    http://www.expert5th.in/packers-and-movers-navimumbai/
    http://www.expert5th.in/packers-and-movers-ghaziabad/
    http://www.expert5th.in/packers-and-movers-faridabad/

    ReplyDelete
  5. Evoshake is a delicious and nutritious meal replacement meal that can help you achieve your weight loss goal without starving yourself. Find Evoshake Review at http://www.dietreviewmonster.com/

    ReplyDelete
  6. PhenQ Reviews - Most Powerful Weight Loss Pills. PhenQ is the newest weight loss pill that has been proven by legitimate and smart science. http://phenq-reviews.com/

    ReplyDelete
  7. D-bal Max Reviews - Dianabol (methandrostenolone) often called Dbol, is an oral anabolic steroid that offers massive gains in very short periods.

    ReplyDelete
  8. Hey, I am Robert Kelly, I live in Dallas Texas, here I love to share my personal reviews and experience on weight loss products as a freelaner editor and writing expert. http://www.weightlossopinion.com/

    ReplyDelete
  9. Garcinina Cambogia extract was recently featured on Dr. Oz where he proclaimed it as the "Holy Grail of Weight Loss" supplements. Learn how Dr Oz Garcinia Extracts Works to Lose Weight, Burn fat and suppress appetite.

    ReplyDelete
  10. Nootropics also called smart drugs, memory enhancers, neuro enhancers, cognitive enhancers, and intelligence enhancers. Find detailed Noocube review, effects & facts. http://www.noocube-nootropics.com/

    ReplyDelete
  11. Posts about history are cool! Nice one.Read these PhenQ customer reviews to find out does it work? Review of side ... It is not available at any local store close to you and not at any retailer. www.phenqreviewstore.com buy phenq

    ReplyDelete
  12. Interesting post. I Have Been wondering about this issue, so thanks for posting.
    Top Legal Anabolic Steroids
    Crazy Bulk Reviews
    Crazy Bulk Review

    ReplyDelete
  13. Great sharing! I really search like same site to find. We will, continue to do our best to improve our efforts on all fronts to better our standards to serve our clients and the society. كسارات متحركة

    ReplyDelete
  14. This comment has been removed by the author.

    ReplyDelete
  15. Male Extra™is one of the natural male enhancement pills that really work by aiding your erection size, controlling your ejaculations.Read complete user reviews here

    ReplyDelete
  16. Capsiplex Is a Top rated Strength Fat Burner & Natural Diet and Weight Loss Supplement

    ReplyDelete
  17. TestoGen boosts your testosterone in a safe, natural way to increase your muscle size and strength while reducing body fat

    ReplyDelete
  18. Don't pay money for the Male Extra Pills. Learn how to get it for free! Find out how to Buy Male Extra

    ReplyDelete
  19. Thanks for sharing this Post, Keep Updating such topics.
    groundreport

    ReplyDelete
  20. If you are looking for some reliable way to shed the excess amount of unwanted fat from your body then the best option is Forskolin Fuel http://www.wheretobuyforskolinfuel.com/
    Forskolin Fuel

    ReplyDelete

  21. Great topics share through this post and really this is very nice post so many thanks to all
    online bookkeeping
    Easy small business accounting Application

    ReplyDelete
  22. V Tight Gel is one one the best vaginal tightening gel available in market. For more plz visit

    ReplyDelete
  23. Looking for proven, effective Dianabol for Sale without side effects? Discover premium Dbal-Max Pills currently helping guys build mass safely. http://www.dbalmax-reviews.com/

    ReplyDelete
  24. V Tight Gel is one one the best vaginal tightening gel available in market. For more plz visit

    ReplyDelete
  25. PhenQ Diet Pills
    Where to buy PhenQ with the greatest discount available online? The last thing you want is to take a diet pill that could potentially harm your health. The great thing about PhenQ is that it contains natural ingredients.
    http://www.phenqsale.com/
    #phenq

    ReplyDelete
  26. This comment has been removed by the author.

    ReplyDelete
  27. Leading software and website development company in Patna:-

    Rkvit solutions pvt ltd is a leading software company in patna. we, bring successful years in it world along with the team of highly professional expertise. our service includes website development in Patna, website design in patna, web design in patna, seo company in patna.

    For more details:-
    http://www.rkvitsolutions.com/

    ReplyDelete
  28. NooCube is a daily dietary supplement which boosts up the performance of your brain. Find Noocube reviews, benefits, uses, side effects and testimonials
    http://www.noocube-nootropics.com/

    ReplyDelete
  29. PhenQ is boasted as a pharmaceutical-grade supplement for weight-loss.this product helps elevate mood, boost energy levels high, burn off extra stored fat, suppress appetite and block the production of fat.

    ReplyDelete
  30. Site Promotion company in Patna
    RKV IT Solutions Pvt Ltd. offer site advancement administrations in Patna since over five years. Got an all new site of your own, as yet confronting issues in being accessible for your potential clients. A large portion of the advertiser's face this sort of circumstance.

    For more details:-

    Website promotion Company in Patna

    ReplyDelete
  31. PhenQ Reviews and testimonials of this popular diet pill, PhenQ Scam? Does PhenQ Work? Is it Safe? Don't buy before reading our complete PhenQ reviews.

    ReplyDelete
  32. NooCube by Bauer Nutrition is a great addition to any health or vitamin routine for your mind as it is a good all-natural nootropic.
    NooCube Review

    ReplyDelete
  33. Breast Actives
    is a 3 step all natural solution for breast enlargement, combining breast pills, cream and a breast exercise and massage program.http://www.breastactivesbuy.com/

    ReplyDelete
  34. " cognitive enhancing drugs What are cognitive-enhancing drugs, who uses them and do they work? Check out every single study drug and cognitive enhancer that exists. Better yet, find o.which are the best for increasing your brain power. http://www.noocube-review.com"

    ReplyDelete
  35. " Nootropics or smart drugs, are being used around the world by students, entrepreneurs, small business owners, athletes, poker players and housewives. http://www.noocube-review.com/"

    ReplyDelete
  36. NooCube by Bauer Nutrition is a great addition to any health or vitamin routine for your mind as it is a good all-natural nootropic.
    Matlab Projects

    ReplyDelete
  37. Male Extra pills are famous on the market. But you have to know some side effects and results. My prof review will help you. http://www.maleextrareviewguide.com

    ReplyDelete
  38. Testosterone, the male hormone, is basic to you remaining a vivacious, solid, and sexually dynamic person. Low testosterone triggers weariness, tiredness, sorrow, weakness, being overweight, weight pick up, fat, muscle misfortune, fragile bones, and winding down sex drive — even glucose and cardiovascular issues.
    testosterone booster reviews

    ReplyDelete
  39. having more sex can make you live longer Male Extra pills are famous on the market. But you have to know some side effects and results. My prof review will help you.

    ReplyDelete
  40. I really like the dear information you offer in your articles thanks for posting. its amazing
    http://www.bestdietpillswomens.com/phenq/

    ReplyDelete
  41. Testosterone, the male hormone, is basic to you remaining a vivacious, solid, and sexually dynamic person. Low testosterone triggers weariness, tiredness, sorrow, weakness, being overweight, weight pick up, fat, muscle misfortune, fragile bones, and winding down sex drive — even glucose and cardiovascular issues.
    testogen

    ReplyDelete
  42. how to make your vagina tighter Many women also consider v tight gel after having children. During natural childbirth the vaginal muscles expand to form the birth canal for your baby. http://vtightgelreviewer.com

    ReplyDelete
  43. " buy legal steroids
    Buy Legal steroids are the ticket for anyone trying to push farther, for the ones that never settle for less. SDI is absolutely your key to achieving your goals in and out of the gym.
    "

    ReplyDelete

Scripting Topics

MEL (41) Maya (39) Scripting (32) Scripts (21) programming (14) Free Mel Scripts (8) MaxScript (7) Coding (6) Rigging (5) tutorial (5) 3ds Max (4) Python (4) Tricks (4) faceware (4) image metrics (4) Learn (3) Namespace (3) Namespacing (3) animation (3) facial (3) webinar (3) Code (2) GDC (2) Game Developers Conference (2) Multiple Namespaces (2) Print Selected Objects (2) Recursive (2) Removing Namespace (2) Return (2) Set Driven Keys (2) TOkenize (2) Tips (2) Toggle Background Color with MEL (2) animation tools (2) animators resource (2) deformers (2) learning (2) maya tools (2) mesh (2) modeling (2) nodes (2) procedure (2) script swell (2) transforms (2) Animschool (1) Attribute (1) Background Color (1) Beer (1) Blur (1) Character Setup (1) Check if an object exists (1) Class (1) Command Line (1) Constraints (1) Create SDK (1) Create a directory with mel (1) Data (1) Export (1) FilterString (1) Fix (1) Floating Slider Time (1) Functions (1) Get Maya Version MEL (1) Get Parent (1) Google (1) Holiday (1) How To Write To A Text File (1) Import (1) Incremental Save (1) Index (1) Joint Chain (1) Make Set Driven Keys (1) Maya Version (1) Modules (1) Objects (1) Orient Constraint (1) PYMEL (1) Parent (1) Parent Constraint (1) Point Constraint (1) Position (1) Print (1) Print Current Selection (1) Print Random Quotes (1) Print Selection (1) Print Vertices (1) Progress Bar (1) Progress Window (1) PyQT (1) Removing Spaces From Names (1) Scene File Name (1) Select Connections (1) Select Outgoing Nodes (1) Split Bones (1) Split Joints (1) St. Patrick's Day (1) String Array (1) System (1) Transfer UVs (1) Viewport (1) White Space (1) Windows Username (1) Zero Out Attributes (1) animButtonState (1) arrays (1) articles (1) auto key (1) better (1) blendshapes (1) break (1) confirm dialog (1) continue (1) convention (1) e3 (1) efficiency (1) error (1) eval (1) executable (1) fclose (1) fopen (1) fprint (1) games (1) improving (1) infinite loop (1) joints (1) listHistory (1) listRelatives (1) logic (1) loops (1) milestone (1) nodeType (1) objExists (1) recursion (1) rotates (1) rotations (1) schools (1) sculpting (1) setAttr (1) shout outs (1) source (1) source a script with a variable (1) speed (1) tech-artists.org (1) translates (1) video (1) warning (1) world matrix (1) worldMatrix (1)
 
Script Swell - Blogged