MEL

MEL programming Compiler, Source code and Tutorial

MEL programming is is an artificial language designed to express computations that can be performed by a machine, particularly a computer.

Compiler

Download MEL programming compiler.

Source code

MEL programming Hello world sample source code.

Tutorial

MEL programming tutorial.

Auto Animation : It helps to develop different types of animations from one animated walk cycle. We can achieve different types of attitudes in walk cycles. It helps to create auto animation for all types of cyclic animations. Path Animation : It helps to travel different objects along path by maintaining spacing between objects or controls

Here’s Part 1 of a multi-part MEL scripting tutorial that will go through the creation of a procedural christmas light generator from start to finish. This part shows you the absolute basics of MEL, specifically walking you through creating a circle using MEL script and assigning variables to control the circle’s radius. The next part will walk you through using the created circles as a basis for extruding the Christmas light cord. The final MEL script for this part is: float $circle_radius = 4.2; string $tube1[] = `circle -ch off -o on -nr 0 1 0 -r $circle_radius; move -r ($circle_radius * .66) 0 0 ; string $tube2[] = `circle -ch off -o on -nr 0 1 0 -r $circle_radius; move -r ($circle_radius * -.66) 0 0 ;

Here’s Part 2 of a multi-part MEL scripting tutorial that will go through the creation of a procedural christmas light generator from start to finish. This part continues on with the previous tutorial to group the 2 circles together and attach them to a motionpath as guide curves for the cord of the Christmas lights. The next part will walk you through extruding the circles to create the Christmas light cord and wrapping it into a function so it can be called externally. The final MEL script for this part is: string $tube_curve = “Christmas_Lights_02″; float $circle_radius = 4.2; string $tube1[] = `circle -ch off -o on -nr 0 1 0 -r $circle_radius; move -r ($circle_radius * .66) 0 0 ; string $tube2[] = `circle -ch off -o on -nr 0 1 0 -r $circle_radius; move -r ($circle_radius * -.66) 0 0 ; select -r $tube1[0] $tube2[0]; string $tube_group = `group`; select -r $tube_group; select -add $tube_curve; string $tube_path = `pathAnimation -fractionMode true -follow true -followAxis x -upAxis y -worldUpType “vector” -worldUpVector 0 1 0 -inverseUp false -inverseFront false -bank false -startTimeU 0 -endTimeU 1`; cutKey -cl -t “:” -f “:” -at “u” $tube_path; setAttr ($tube_path + “.frontTwist”) 90; setAttr ($tube_path + “.upTwist”) 90;
Video Rating: 5 / 5

Here’s Part 3 of a multi-part MEL scripting tutorial that will go through the creation of a procedural christmas light generator from start to finish. This part continues on with the previous tutorial to extrude a tube from the previous curves. The next part will walk you through wrapping the existing code into a function so it will be easier to call. The final MEL script for this part is: string $tube_curve = “Christmas_Lights_02″; float $circle_radius = .5; string $tube1[] = `circle -ch off -o on -nr 0 1 0 -r $circle_radius; move -r ($circle_radius * .66) 0 0 ; string $tube2[] = `circle -ch off -o on -nr 0 1 0 -r $circle_radius; move -r ($circle_radius * -.66) 0 0 ; select -r $tube1[0] $tube2[0]; string $tube_group = `group`; select -r $tube_group; select -add $tube_curve; string $tube_path = `pathAnimation -fractionMode true -follow true -followAxis x -upAxis y -worldUpType “vector” -worldUpVector 0 1 0 -inverseUp false -inverseFront false -bank false -startTimeU 0 -endTimeU 1`; cutKey -cl -t “:” -f “:” -at “u” $tube_path; setAttr ($tube_path + “.frontTwist”) 90; setAttr ($tube_path + “.upTwist”) 90; extrude -ch true -rn false -po 0 -et 2 -ucp 0 -fpt 0 -upn 1 -rotation 0 -scale 1 -rsp 1 $tube1[0] $tube_curve; extrude -ch true -rn false -po 0 -et 2 -ucp 0 -fpt 0 -upn 1 -rotation 0 -scale 1 -rsp 1 $tube2[0] $tube_curve;

class ex of sm 3122 computer programming for Animator. first animation with Mel, not smooth enough yet xP. walk cycle like an astronaut….?!
Video Rating: 0 / 5

Created with Autodesk Maya 2009 and Adobe After Effects (video captured with CamStudio). Sorry for poor quality…. Youtubes fault.
Video Rating: 5 / 5

This is a Mel script I made as a test. Just a basic script that makes a motion path, connects an object to it and also creates a particle emitter from the object. This is my first complete mel script that I have created and am quite pleased with the results. I have a deadling for a project similar to this in january so I May venture to create some more advanced scripts.
Video Rating: 5 / 5

Auto rigging is now essential to speed up the production time at the same time a selector/pose mirror GUI helps the animator to do the same. I have so much more to show in the reel but I had to cut it down. I have built numerous scripts to fix/patch the issues that arise in the production pipeline. Troubleshooting problems has given rise to most of the ideas that I later script out.
Video Rating: 5 / 5

Updated version of the SGTweaker script. Additions include better handling of tweak values, plus flags for relative/absolute positioning.
Video Rating: 0 / 5

Here are a few examples of animation tools I developed for Maya using MEL. I’m particularly proud of the Curve Pose tool, where you can draw a curve and the script will position the controls to match the pose to the curve. These were made in 2009. The Alfred character used on the Auto Rig example was created by Rodri Torres.
Video Rating: 0 / 5

By programming on October 16, 2010 | MEL | A comment?
Tags: , , , ,