影视动画视频教程
模块: |
综合流程 |
软件: |
Maya |
讲解: |
英文+无字幕 |
播放时长: |
- |
版权: |
本资源来自互联网,仅供学习交流 |
下载链接: |
- |
马上注册CG织梦网,结交更多CG好友,下载更多CG素材,让你轻松学习。
您需要 登录 才可以下载或查看,没有帐号?立即注册
QQ登录
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.
|
|