- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
mel语法(Mel syntax)
mel语法(Mel syntax)
MEL syntax!
Each variable is like a storage box. The box has a name so that you or Maya can find it. There are several types of values that are collected (or assigned) in a box:
Integers, for example
Int $myint = 314
Floating point numbers, for example
Float $myfloat = 7.6122
Vector (used to represent position or color), for example
Vector $myvec = 1.2, 7.3, 22.38
String, for example
String $mystr = This, is, a, string
Note the value of vector values and string values: the three numbers in the vector are wrapped in and, and the characters in the string are wrapped in two .. If you want to call the components in the vector, use $myvec.x, $myvec.y, and $myvec.z, for example
$myfloat = $myvec.x
Variables must be preceded by $1. You can use A to Z, a to Z, 0 to 9, and _ the letters to name the other (including spaces) will not be used. The first letter of a name must not be counted. The alphabet size Kai for Mel are different. For example, $Myvar, $myVar, and $myvaR are different names and represent different variables.
The type of a variable must match the value type it holds. such as
Float $myfloat = This, is, a, string
Can not be established. Thats pretty obvious, then
Float $myfloat = 7.6122
So what?
To create a no value variable, simply enter (for example) int $newvar. Then give it a value with $newvar = 23.
Once all variables are set up, they cannot be deleted or changed, unless you jump out of Maya. In $newvar, for example, this name will always represent an integer variable; you cant use it to store other types of data.
When you save the scene, the variables you create are not automatically saved with the scene. But later, Ill teach you a technique to save variables in the scene.
You can also create several variables at the same time:
Int, $newvar1, $newvar2, $newvar3
You cant give them different values at the same time, but if the values are equal, you can write them
$newvar1 = $newvar2 = $newvar3 = 5
array
When you create a variable, you can
您可能关注的文档
- 2004年高考语文试题及答案详解(江苏卷)(2004 college entrance examination language examination questions and answers detailed explanation (Jiangsu roll)).doc
- 2003级针灸推拿英语专业(2003 grade acupuncture and massage English Major).doc
- 2002年考研英语试卷英汉翻译真题解析(2002 English translation analytical papers Zhenti).doc
- 2005专四真题(2005 for four people).doc
- 2005年 普通高等学校招生全国统一考试大纲(In 2005, the national unified examination outline for general higher education institutions was enrolled).doc
- 2003━2004学年下学期贺州高中高一语文期末试题(2003 - 2004 school year next semester Hezhou high school Chinese final examination questions).doc
- 2005年考研英语英汉翻译高分攻略(二)(In 2005, English translation in English (two)).doc
- 2004级本科《医学免疫学》试题(双语)a(Grade 2004 undergraduate medical immunology (Bilingual) a).doc
- 2006届九年级英语第四单元学案厦门一中(The fourth unit of the 2006 grade nine English study, Xiamen No. 1 middle school).doc
- 2006年10月语言学概论试题(Introduction to Linguistics in October 2006).doc
- microsoft jet database engine(0x80004005)未指定错误的解决方法(微软Jet数据库引擎(这个问题很经典)未指定错误的解决方法).doc
- more用法(More usage).doc
- linux启动全线提速法(Linux start up all speed method).doc
- middle shool class(中学课堂).doc
- mst区域配置和启用mstp(MST zone configuration and enable MSTP).doc
- mysql 使用方法简单教程(MySQL uses simple tutorials).doc
- mysql 基本的常用命令(MySQL basic common commands).doc
- microsoft agent 使用方法(vb)(Microsoft Agent usage (VB)).doc
- mysql date 类型(类型MySQL日期).doc
- mysql互为主从配置和测试,带测试脚本(MySQL hosts and tests each other, with test scripts).doc
文档评论(0)