‎02-03-2019 03:34 PM
Hey guys,
So I have a 1D array that I want to pass into a for loop. I want all values of the array to enter the loop on each iteration. However, as soon as I send the array in, it automatically auto indexes and sends one value at a time.
What's the fix to this?
I have looked at a few previous threads but most were asking how to send individual values instead.
Ideally, I am trying to send a 1D array in that multiples all its values with the cosine of an angle. I am using the for loop to update the angle on each iteration, but I want the 1D array to stay the same and enter the loop as a whole (as opposed to one value at a time) on each iteration.
Any help/guidance would be great.
Thanks 🙂
‎02-03-2019 03:44 PM
Right-click the tunnel and disable autoindexing.
(Instead of lengthy descriptions, show us the code instead. There might be other issues)
‎02-03-2019 03:46 PM
Thanks.
I just figured it out a few seconds ago too.
‎02-03-2019 03:49 PM
Again, from your description is it not even clear why you would need a FOR loop at all. Can't you just multiply the array with the scalar angle?
‎02-03-2019 03:51 PM
Trying to multiply the same array with various angles to see if there is any advantage.