Me again.
Have progressed with my project and now have a group of independent items (quarter-coloured spheres) and now wish to have an animation that rotates spheres at random through one radian.
I've put together animation node trees (started with a loop subprogram before realising the error!) and now have one that responds to the frame position and should select from a random list of my group objects.
I have a node string that tests to see if a sphere has already been rotated (it should skip that object if it has) and still need to adjust frame data to get the frequency of selection/rotation correct.
However, the problem i have is that all spheres rotate in unison, there is no attempt to select them at random. I've tried everything but can't get it to behave - what's the obvious thing i'm missing?
Thanks in advance.
Firstly, huge thanks to Bfoot and Omar for all the effort you've put into my education - just wish i'd been a more worthy student!! This stuff is a real challenge for me.
Attached is a screenshot of my latest node tree:
AN array - v2.blend
It works wonderfully with the interpolation i wanted etc - except all spheres rotate at the same time. My difficulty is that the invoke subprogram node seems to be passing the entire list to the subprogram and the rotation calculation then works on all of them at the same time. What i need is for the subprogram to pass a single object to the rotation calcs, they rotate it and then passes on to the next object, and so on.
My inclination is to nest another subprogram with the first so that the first loop passes an object to the second loop for rotating, which then passes back the results to the first loop. The first loop then moves on to the next object and so on through the list. Does that make sense? I've tried all sorts of nesting structures but none of them work.
I know i'm leaning on you guys a lot but i'm almost there and just need the final key.
Thanks again, it's all a massive help.