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

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.

主站蜘蛛池模板: 江孜县| 米易县| 砀山县| 手游| 临沂市| 祥云县| 湖州市| 长武县| 洛浦县| 泗洪县| 大化| 冀州市| 合作市| 泸水县| 佛教| 北票市| 集贤县| 英吉沙县| 武宣县| 铁岭县| 宁陕县| 连云港市| 永春县| 高雄市| 湘西| 西宁市| 周宁县| 黄梅县| 随州市| 淮阳县| 安福县| 雅江县| 和硕县| 安阳市| 纳雍县| 马关县| 灯塔市| 永顺县| 固阳县| 嘉黎县| 峨眉山市|