Use conditional statements to change the index value.
Reference: curve controller function takes the following arguments: curve:object name–The name of object in 3ds Max dim:1,2 or 3— set the controller on specific dimension. feedback:transform/position/rotation –function returns transform matrix, position in point3 value and rotation in EulerAngles value localOffset:offset value— offset the index value and shifts item along the path. endOffset:offset value— move all items away from the last point of the path. startOffset:offset value— move all items away from the first point of the path mode :1 or 2— set the controller in absolute mode (1) or relative (2) order:1 to 9— choose the order of rotation (items in drop down menu) works only when feedback is set to rotation
How to control items along one direction using linear controller in a multi-dimensional array.
Reference: linear controller function takes the following arguments i:index value — index of item in X direction j:index value — index of item in Y direction K:index value — index of item in Z direction dim:dimensions in point3 format— defines the directions that linear controller will be applied on. for example [1,0,0] means only in x direction ,[0,1,1] means in Y and Z. Note1: if you don’t pass the i,j or kargument to the function it considers the current item indexes by default.
Note2: if you dont pass the dim argument to the function it considers all directions by default.