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.

20 comments:

  1. 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
  2. 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
  3. This comment has been removed by the author.

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

    ReplyDelete

  5. 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
  6. 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
  7. This comment has been removed by the author.

    ReplyDelete
  8. 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
  9. 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
  10. 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
  11. 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
  12. 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
  13. 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
  14. I really like the dear information you offer in your articles thanks for posting. its amazing
    http://www.bestdietpillswomens.com/phenq/

    ReplyDelete
  15. " 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