I'm stuck with the 'For Loop' part of my project in Animation Nodes.
I'm trying to create a bar chart with each of x bars scaled to a high set by some CSV data. I've got my .blend and it feels so close but I can't make it work.
You'll see that I've created a cube and used the Object Instancer and a loop to create an array of x columns. By putting the pivot point at the bottom of the cube I can scale on z axis give me the height of the bar chart. This node tree ends with the scale attribute in the Object Attribute Output.
Below that node tree I have a Text Block Reader that splits the text (by lines) and then another split (by separator) to get my list which I hoped to use to drive the heights of the columns. This is a string so I've used a node to convert to a float.
Now I'm way out my depth and I can't get the values from the list to drive the different heights of the bars.
Lastly, a nice to have only - If you do have a solution, is there a way to mix between 0 values for Z scale and the values from the CSV list so that I can key frame both and animate the bar chart rising? That would be perfection.
Just a note that I've been able to get to a solution before by using the Python on Tamir Lousky's Github page but wanted to do it in Animation Nodes.
Many thanks to anyone who can help - this is beyond me but I'm trying to learn.
Image of node tree: https://www.dropbox.com/s/kivegj9bm956rps/Nodetree.PNG?dl=0