官术网_书友最值得收藏!

Summary

In this chapter, we learned how Maya and Python work together to create PyMEL. First we learned how to use the mayapy interpreter, and how to create and use Python libraries and modules. Then we explored PyMEL via introspection: how it mirrors Maya concepts such as DAG nodes and attributes, how every Maya object is represented as a first-class PyMEL node, and PyMEL's special math data types. Finally, we built a function that can bring us to the PyMEL online help when we want more information about a PyMEL node. Along the way, we learned about concepts central to Python, such as types, the standard library, magic methods, a definition of the term Pythonic, and easier to ask for forgiveness than permission versus look before you leap.

In the next chapter, we will learn more about writing practical Maya Python with PyMEL by investigating the important concept of composability.

主站蜘蛛池模板: 白山市| 安多县| 逊克县| 垫江县| 于田县| 阿坝| 达尔| 凯里市| 岚皋县| 和静县| 金门县| 临沭县| 卢氏县| 贵溪市| 舒城县| 安新县| 米脂县| 安仁县| 南通市| 乐亭县| 通江县| 嘉兴市| 策勒县| 衢州市| 广平县| 聊城市| 博乐市| 长沙县| 汕尾市| 右玉县| 郑州市| 丘北县| 西乌珠穆沁旗| 寿宁县| 涟水县| 邹平县| 电白县| 长白| 罗田县| 大安市| 阳西县|