加载中…
博文
标签:

杂谈

 = Global expression_r variables = 
   
 == Playbar variables == 
   
 `$FPS`: 
 Playback speed in frames per second (as set with the Playbar controls). 
   
 `$FSTART`: 
 Frame number of the first frame of animation (as set with the Playbar controls). $NFRAMES (the number of frames in the animation) = $FEND - $FSTART + 1. 
 See also $RFSTART below. 
   
 `$FEND`: 
 Frame number of the last frame of animation (as set with the Playbar controls). 
 See also $RFEND below. 
   
 `$F`: 
 The current frame, (as set with the Playbar controls). This is a very useful variable, especially for rendered picture filename numbering. 
   
标签:

杂谈

1.关系运算符和if…..else…..条件语句  

1.       关系运算符

maya 中的关系运算符有:“〈”(小于)、 “〉”(大于)、“〈=”(小于等于)、“〉=”(大于等于)、“==”(等于)、“!=”(不等于),这些关系运算符主要是用来做条件比较的,返回的结果是一个逻辑值——真或假。
2.  if…..else…..条件语句

    在学习if(如果)…..else(否则)…..条件语句之前我们先学习if…… 条件语句。

if  (条件)
{
  满足条件后执行命令1;
  满足条件后执行命令2;

……

}

例如螺旋桨实例

 

if (frame >60)

{

luoxuanjiang.rotateY=25;

}

当时间一但大于60帧的时候,执行大括号中的命令luoxuanjiang.rotateY=25。

现在播放动画发现螺旋桨在第61帧的时候Y轴旋转25度,但是当我们回到第1帧后发先螺旋桨的Y轴还是处于旋转25度后的状态,打开在表达式编辑器中输入:

if (frame >60)

{

luoxua

  
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有