打印 上一主题 下一主题

Maya蟒蛇基础编程全面教程 - Beginning Python for Maya

    [复制链接]
跳转到指定楼层
#
admin 发表于 2014-8-25 14:05:47 | 只看该作者 |只看大图 回帖奖励 |正序浏览 |阅读模式
影视动画视频教程
模块: 综合流程 
软件: Maya 
讲解: 英文+无字幕
播放时长: -
版权: 本资源来自互联网,仅供学习交流
下载链接: -

马上注册CG织梦网,结交更多CG好友,下载更多CG素材,让你轻松学习。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
Maya蟒蛇基础编程全面教程 - Beginning Python for Maya




Maya蟒蛇基础编程全面教程是一系列专为任何人谁是新的Python和脚本在Maya中。通过这一系列的结束,学生应具备的Python语言,玛雅命令的基本认识,并能为Maya打造小脚本。这一系列不承担任何编程经验。
Beginning Python for Maya is a series designed for anyone who is new to Python and scripting in Maya. By the end of this series, students should have a fundamental understanding of the Python language, Maya commands and be able to create small scripts for Maya. This series assumes no prior programming experience.


1.1 - Beginning Python for Maya

Welcome to the wonderful world of Python scripting in Maya. This series is designed for users who are new to Python and scripting in Maya.

1.2 - Python Overview

Take a high level tour of the Python language. What is Python? Why should you use Python? What are the advantages and disadvantages?


1.3 - Python vs MEL

Find out why Python is quickly becoming the programming language of choice for TDs in the animation and VFX industries.


1.4 - Scripting Environment

A look at the tools available for writing and executing scripts inside of Maya. These tools include the Command Line, Script Editor and Charcoal Editor.

1.5 - Charcoal Editor Installation


Charcoal Editor is a powerful alternative to Maya's native script editor and is used throughout this series. In this lesson we cover how to install the Charcoal Editor plug-in.

1.6 - Python Versions (2.x and 3.x)

Learn about the differences between Python 2 and Python 3 and how to write scripts that are compatible with both versions.

2.1 - Maya Commands

An introduction to Maya commands and how these commands make it possible to interface with Maya through Python.

2.2 - Maya Command Reference

The Command Reference is a valuable resource when creating scripts for Maya. It includes detailed information for each command, the flags available and short code samples.

2.3 - Quick Help

Quick Help displays all of the flags for a specific command directly inside of the script editor. It provides a quick access alternative to using the Command Reference.

2.4 - Converting MEL Commands to Python

MEL is a fundamental part of Maya. Many of the scripts and tools that exist today were created using MEL. When writing Python scripts for Maya it is important to understand how to convert MEL commands to Python.

3.1 - Python Core Data Types

We begin our tour of the Python language with a look at built-in object types, more specifically, Python's core data types.

3.2 - Variables

In this lesson, we take a short detour to learn about variables, what they are, and how to use them in Python.

3.3 - Comments

This lesson takes a look at what comments are and how to include them in your Python source code.

3.4.1 - Numeric Types

This lesson begins our in-depth tour of the Python language, starting with numeric data types.

3.4.2 - Operators

Continuing on with numeric data types, this lesson takes a look at mathematical and comparison operators and how to use them in Python.

3.4.3 - Division and Truncation

A second look at division in python, including classic division and truncation, floor division along with the differences that exist between Python 2 and 3.

3.5 - Maya Commands: getAttr

Taking a short detour from data types, this lesson takes a look at the getAttr Maya command. This command allows a script to query the value of an node's attribute in the scene.

3.6 - Maya Commands: setAttr

Continuing on from the previous lesson, we take a look at the setAttr Maya command. This command allows a script to modify the attribute value of a node in the scene, or alter its state.

3.7.1 - Strings

In this lesson, we begin to take a deeper look at strings and how they can be used in Python.

3.7.2 - Escape Sequences

Continuing with our in-depth look at strings in Python, this lesson will cover escape sequences, what they are and how they can be used.

3.7.3 - Basic String Operations

In this lesson, we will cover some of the basic string operations that are available in Python.

3.7.4 - Indexing and Slicing Strings

This lesson takes a look at how indexing and slicing works in Python and how it can be used to extract different parts of a string.

3.7.5 - Modifying Strings

Modifying strings is not as straightforward as one might expect. This lesson covers some of the most common approaches for modifying strings in Python.

3.7.6 - String Methods

This lesson will cover some of the string methods built in to Python. These methods provide an incredible level of control and flexibility when working with strings and is one of the strongest reasons for using Python instead of MEL in Maya.

3.7.7 - String Formatting

In this lesson, we will be looking at string formatting in Python. By using the format method, it is possible to insert values into a string using placeholders.

3.8 - Using the Print Function

By using the print function in Python it is possible to display formatted results, debugging information and more, to the script editor output window, in Maya.

3.9.1 - Lists in Python

In this lesson, we will begin taking a detailed look at the list data type and how it can be used in Python.

3.9.2 - Lists - Adding and Removing Objects

Continuing our look at lists, this lesson will cover the some of the methods for adding objects to, and removing them from, a list.

3.9.3 - Sorting Lists

In this lesson, we will continue our look at lists by exploring the different methods available for sorting lists in Python.

3.10 - Maya Commands: ls

This lesson takes a look at the ls Maya command. The ls command returns the names (and optionally the type names) of objects in the scene. Optional filters can be used to match objects based on their name or type.

3.11 - Dictionaries in Python

In this lesson, we take a look at Python's dictionary data type, including the syntax, common operations and methods.

3.12 - Tuples in Python

In this lesson, we take a quick look at the tuple data type in Python. Tuples work exactly like lists except that they cannot be changed in-place (they are immutable).

4.1 - Python Statements

In this lesson, we take a high level look at statements in Python. Future lessons will examine specific statements in greater detail.

4.2.1 - Flow Control Using If/Else Statements

This lesson takes an in-depth look at flow control in Python using the if/else statement.

4.2.2 - Logical and/or Operators

In this lesson, we will cover the logical "and", as well as the logical "or" operators in Python.

4.3 - Maya Commands: Errors and Warnings

In this lesson, we will be looking at the different ways of displaying error, warning and info messages inside of Maya Python scripts.

4.4 - For Loops

This lesson takes an in-depth look at iterating over ordered sequences in Python using for loops.

4.5 - While Loops

This lesson takes an in-depth look at the while loop in Python.

4.6 - Maya Commands: select

In this lesson, we will be exploring the select Maya command. This command allows objects to be added to, and removed from, Maya's active list.

5.1 - Introduction to Functions

In this chapter, we will be taking an in-depth look at functions in Python. Functions provide the ability to create reusable blocks of code, reducing code duplication and allowing for improved organization and readability.

5.2 - Function Basics

In this lesson, we well examine the syntax and structure of functions in Python.

5.3 - Return Statements

Continuing our look at Python functions, this lesson covers return statements and returning the results of a function to the caller.

5.4 - Args, Keywords Args and Defaults

In this lesson, we will examine arguments, keyword arguments and default values when creating and calling functions in Python.

5.5 - Pass by Reference

In Python, function arguments are passed by reference and in this lesson we will take a look at some of the caveats of this.

5.6 - Built-in Functions

This lesson provides a brief look at Python's built-in functions and where to find more information on them.

5.7 - Simple Car Example Using Functions

In this lesson, we will apply what we have learned about functions and write a Python script that creates a simple car model inside of Maya using Python.


Maya蟒蛇编程全面基础教程 - Beginning Python for Maya - baidu.txt

1.71 KB, 下载次数: 453, 下载积分: 梦币 -1 金钱

Maya蟒蛇基础编程全面教程 - Beginning Python for Maya

161#
wugege 发表于 2020-10-11 08:41:09 | 只看该作者
多谢楼主分享好东西。
回复 支持 反对

使用道具 举报

160#
肥糖 发表于 2020-10-11 01:13:19 | 只看该作者
多谢楼主分享好东西。
回复 支持 反对

使用道具 举报

159#
yarou 发表于 2019-12-16 08:42:45 | 只看该作者
非常不错的教程
回复 支持 反对

使用道具 举报

158#
yarou 发表于 2019-9-11 08:39:17 | 只看该作者
python居然是蟒蛇
回复 支持 反对

使用道具 举报

157#
ho298099 发表于 2019-8-10 15:30:21 | 只看该作者
分享,感谢你的分享
回复 支持 反对

使用道具 举报

156#
ycylxz 发表于 2019-4-13 00:03:10 | 只看该作者
感谢楼主分享
回复 支持 反对

使用道具 举报

155#
ztf741219362 发表于 2017-11-28 22:08:59 | 只看该作者
谢谢分享,感谢你的分享谢谢
回复 支持 反对

使用道具 举报

154#
十七岁的雨季111 发表于 2017-8-2 14:03:09 | 只看该作者
谢谢大神的分享
回复 支持 反对

使用道具 举报

153#
享如春梦了无痕 发表于 2017-4-1 11:38:27 | 只看该作者
资源好   顶起来
回复 支持 反对

使用道具 举报

152#
北河三 发表于 2017-1-7 15:29:47 | 只看该作者
语言对我来说就是个死结
回复 支持 反对

使用道具 举报

151#
Eric_Cantona 发表于 2017-1-7 14:32:45 | 只看该作者
ddddddddd ddddddddddddddd
回复 支持 反对

使用道具 举报

150#
云朵2 发表于 2017-1-7 12:43:28 | 只看该作者
不错 支持楼主!
回复 支持 反对

使用道具 举报

149#
窃侯 发表于 2016-8-28 22:08:37 | 只看该作者
本帖最后由 窃侯 于 2016-8-28 22:09 编辑

Maya蟒蛇基础编程全面教程 -

Maya蟒蛇基础编程全面教程 -


Maya蟒蛇基础编程全面教程 -
回复 支持 反对

使用道具 举报

148#
james050881 发表于 2016-8-28 21:51:37 | 只看该作者
多谢楼主分享
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

精彩图文
在线客服(工作时间:9:00-22:00)
18916069001
织梦网微信公众号

Copyright   ©2015-2016  CG织梦网  Powered by©Discuz!  技术支持:织梦网