Most MEL commands follow a similar format. The command name is always entered first; it may be followed by a list of optional flags, which can be applied in any order. Next come the names of the object(s) the command will be applied to, if necessary, and/or the value(s) the command will use. For example, you could use the command sphere -r 3 to create a sphere with a radius of three, or parent sphere1 sphereGroup to parent an object named sphere1 to sphereGroup. Flags are used to change the effect of the command in specific ways. Each flag has a name, which may be abbreviated to its equivalent short name. This name is always preceded by a dash: -n or -name, for example. The name of each flag is followed by the value for that flag: for example, -name "mySphere". If you execute a command without including some or all of its flags, Maya will use the default values for those flags. You can find a complete list of MEL commands in the MEL Command Reference included with Maya. You can browse the list alphabetically or by category, or use the filter to find a specific command more quickly. Each command is linked to an entry that describes its effect, the syntax you need to use, and a list of flags, if any. To View the MEL Command Reference:
To find a specific command in the MEL Command Reference:
|