# Followed the tutorial to learn 13, cmds and mel

maya has its own scripting language mel. maya development of the bottom of the core code written in C ++ using the API, to construct the most basic functions.

A combination of the most basic functions of the application is called command. mel can not call the bottom of things, only a combination of sophisticated command invocation.

For example, to create a skeleton mel, mel create polygons and the like. But what specific bones, what a polygon is in C ++ control. mel can not control, can only be written in C ++ function call, to use maya.

Mel interface is language, every point of a button is a mel code, maya use. maya mel is a direct development of a scripting language based on the C language format a bit. After python popular, maya also began to introduce Python. Python can call the bottom of the maya command. You can also call mel, because also written some very good mel, also can be called in python.

# Import all commands maya 
# Pour all mel command
#
import maya.cmda as cmds
import maya.mel as mel

# Do not import commands can also be called directly 
cmds.joint ()

Command so much, how do you know what does? I went to check the documentation of it. Any software is to help press the F1 key.

http://help.autodesk.com/view/MAYAUL/2018/ENU/?guid=__Commands_index_html

http://help.autodesk.com/view/MAYAUL/2018/ENU/?guid=__CommandsPython_index_html

What command needs to go check it.

Guess you like

Origin www.cnblogs.com/3lina/p/12029611.html