Memory
记忆
Basic 基础Inputs 投入Outputs 产出
Memory
记忆
This function has a certain similarity with the Loop Carried Value but does not does not loop a sequence of
numbers but remembers values. You may already be familiar with a comparable concept from working with XPresso,
which lets you access the past states of a matrix, for example. This makes it possible to create a wide range
of effects, especially for animation. For example, if you want to know an animated object’s previous position
you can calculate a movement vector and place the object in the direction of the animation on top of that.
Other calculations are also possible such as catching object collisions or calculating object velocity.
这个函数与循环执行值有一定的相似性,但是不循环数字序列,而是记忆值。您可能已经通过使用 XPresso 熟悉了类似的概念,例如,使用 XPresso 可以访问矩阵的过去状态。这使得创建广泛的特效成为可能,尤其是对动画而言。例如,如果你想知道一个动画对象之前的位置,你可以计算一个运动矢量,然后把对象放在动画的方向上。其他计算也是可能的,例如捕捉物体碰撞或计算物体速度。
Here you can see the movement of the Null object
that is displayed as an axis system and traced via dynamically generated cube copies. 在这里,您可以看到 Null 对象的移动,它显示为一个轴系统,并通过动态生成的多维数据集副本进行跟踪
The purpose of this expression is to follow
a moving cube with duplicating cubes. A Null ojbect’s position is sent along a Legacy Object Import
Node to a Memory Node. On the right side of the image you can see what happens within the Memory Node.
The current position of the Null object is linked to an Array and then passed to the Node’s output.
This way, the number of entries in the Array will increase with each newly ascertained Null object
position. This Array will therefore be ouput directly in the Memory Node and transferred to a cube.
The result can be seen in the following image. 此表达式的目的是跟随带有复制多维数据集的移动多维数据集。一个 Null ojbect 的位置沿着遗留对象导入节点发送到一个内存节点。在图像的右侧,您可以看到在内存节点中发生了什么。Null 对象的当前位置链接到 Array,然后传递给 Node 的输出。这样,阵列中的条目数量将随着每一个新确定的零对象位置的增加而增加。因此,这个数组将被直接输出到内存节点中并传输到多维数据集中。结果可以在下面的图像中看到
|
|