一半君的总结纸

听话只听一半君

MEL How-to Enhanced

  • Please notice that the following pages are neither owned nor copyrighted by the owner of the ilmvfx.wordpress.com domain.

  • The copyright of the pages belongs to Bryan Ewert.

  • There exists no relationship between Bryan Ewert and the ilmvfx.wordpress.com domain.

  • The pages have been extracted from the publicly accessible Wayback Machine for convenience only.

  • 当前W.I.P进度指示 The Enhanced part ( including new pymel and python examples ) will be written in Chinese first, someday in the future they might be added to the English version.

  • 未验证的有且不仅限于: #102 #105

以下内容复制自http://ewertb.soundlinker.com

以下为中文加强版,不定期更新(含PyMel和Python范例,视LZ心情而定适量添加,LZ建议完全不会的先看#01#95

如无特殊说明.代码示例出现的顺序是mel,pymel(只有明显比Python短的时候或者我觉得有必要(明显更pythonic)的时候,又或者和python命令不同的时候(比如file命令)),python (此加强部分只有LZ心情好的时候才会出现)

假定已经运行了(显然这两种不要混在一起用)

import maya.cmds as cmds

或者

import pymel.core as pm
import pymel.core.datatypes as dt

所以有pm.的是pymel的代码,而有cmds.的是python的代码,我使用的maya版本是2014 sp2


下面部分是原MEL How-to里没有的:

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s