标签:
杂谈 |
= 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.
maya 中的关系运算符有:“〈”(小于)、
“〉”(大于)、“〈=”(小于等于)、“〉=”(大于等于)、“==”(等于)、“!=”(不等于),这些关系运算符主要是用来做条件比较的,返回的结果是一个逻辑值——真或假。
2.
if
{
……
}
例如螺旋桨实例
if (frame >60)
{
luoxuanjiang.rotateY=25;
}
当时间一但大于60帧的时候,执行大括号中的命令luoxuanjiang.rotateY=25。
现在播放动画发现螺旋桨在第61帧的时候Y轴旋转25度,但是当我们回到第1帧后发先螺旋桨的Y轴还是处于旋转25度后的状态,打开在表达式编辑器中输入:
if (frame >60)
{
luoxua