CG数据库 >> 3DMotive — — 在玛雅脚本简介

3DMotive — — 在玛雅脚本简介的图片1

Title: 3DMotive – Introduction to Scripting in Maya

Info:

In this course, instructor Chad Morgan will go through the basics in writing scripts in Maya in both MEL and Python. We will begin by discussing the difference between MEL and Python, why there are two different languages, and the pros and cons to each. We will show you how to bring up the scripting reference which will allow you to search the commands and their parameters so you can learn to create your own scripts. We demonstrate the syntax on both MEL and Python commands in Maya, including passing arguments to them.We will demonstrate how to create procedures and definitions, what variables are and how to create them, and how to pass variables between procedures and definitions. Following that, we will show, in both MEL and in Python, some of the more common functions in programming. The first are iterators, which allow us to perform the same task over lists of objects and comes in several forms. The second function common to all programming languages is the conditional statement, which allows us to test conditions before executing code and allowing us to branch the program depending on what conditions are met. We finish by demonstrating how to save and reload your scripts in both languages.

标题: 3DMotive — — 在玛雅脚本简介

信息:

在此过程中,讲师乍得摩根将经过编写脚本的玛雅人在梅尔和 Python 的基本知识。我们将首先讨论梅尔和 Python,之间的区别为什么会有两种不同的语言,并给每个利弊。我们将显示你怎样才能把这将允许您搜索命令和命令参数,这样,你可以学习创建您自己的脚本的脚本引用。我们证明在梅尔和 Python 中玛雅人,其中包括将参数传递给他们的命令语法。我们将展示如何创建程序和定义、 变量是什么和如何创建它们,以及如何将变量传递程序和定义之间。在此之后,我们将表明,在这两个梅尔在Python 中,一些更常用的函数编程中。第一类是迭代器,并允许我们遍历对象列表执行相同的任务有几种形式。所有编程语言通用的第二个函数是条件语句,它允许我们测试之前执行的代码,使我们可以分支程序根据什么条件得到满足的条件。我们完成的演示如何保存和重新加载您的脚本在两种语言。