06-26-2017 12:12 PM
Is there a way to show the index values next to a array control? So I can keep track of which element I'm putting values into.
Solved! Go to Solution.
06-26-2017 12:21 PM
Right Click >> Visible Items >> Index Display
06-26-2017 12:24 PM
I saw that as well which will work for me. But I was wondering if they had a way if you expand the array and it shows the index values next to all the elements shown.
06-26-2017 12:29 PM
No, you would have to add that yourself. Each index display represents a dimension of the array, so you cannot have one for each element. But you could put another array right next to yours with values 0 to N. You can have it scroll with your original array if you use an event structure with some property nodes.
06-26-2017 12:40 PM
okay, thank you.
06-26-2017 06:09 PM - edited 06-27-2017 10:12 AM
@Gregory wrote:
You can have it scroll with your original array if you use an event structure with some property nodes.
If you don't like herding cats, create an array where each element is a cluster of an index and a value. Make the array a control so it can be operated, but make the index element disabled so it can only be change programmatically. (you can even color it darker, so it looks more like an indicator). Now they are guaranteed to scroll together, no code needed.
Now you would just index into that array and unbundle the value. You would also rewrite the cluster whenever the array size changes, but that still seems simpler. 😄
06-30-2017 03:00 PM
Thanks!