在本教学中,我将为大家演示在使用modulo操作器处理数组的时候用到的一个很棒的技巧。
有时候,你会碰到这种情况,有时候你会需要访问数组,但是不是在最后一个的时候停下来,而是继续访问第一个。
使用modulo操作器,你可以轻松的实现这一点。
In this episode I want to show you a neat little trick when dealing with Arrays in Houdini by using the modulo operator.
Sometimes you are in a situation where you have to run through your array but instead of just end at the last element you need to continue with the first element.
You can easily do that by utilizing the modulo operator.
|