Array in a step and rotate method

Dear Experts - or probably even beginners? . . . I am a complete newbie and am completely boggled! I have tried a million things but can't seem to crack this (probably) super simple problem.

I want to array a square along an arc (or a circle) - I have managed to get this far quite easily - but the square needs to rotate around its own axis by 90degrees (see scrnshot). I cant figure out how to create the "step and rotate" function. I only manage to rotate all the squares the same angle but progressively one after the other . . .

I will probably have over 50 rotation planes at the end but have started off simply as you can see in the jpg.

 

Thanks in advance - any help would be very much appreciated!!! :)

 J.

 

  • fernando molas garcia

  • Jobergman

    Thanks fernando! I appreciate it and find your solution very interesting! I came up with another method this morning after a short nights sleep it looks a bit different to yours -but hey that seems to be the great thing about grasshopper, many roads lead to rome!

    I have attached my solution as an image in case it is of interest to you. . .

  • Mustafa Teksoy

    Hi Jobergman,

    Could you please explain more about how "series" component works in your definition? I couln't make it work as you did.

    Thanks in advance.

    mt

  • Jobergman

    My problem (above) was simply that I couldn't work out how to "tell" the rectangle to rotate a certain angle each time it stepped along the curve. The solution was the Series component, which creates a series of numbers defining the angle by which the rectangle rotates each time it steps further along. See image below.

    Hope this explains it . . .

  • Jobergman

    Just an update - I have had a few requests to explain the series component step. The maths behind it is that Degrees need to be converted to Radians, thus 360°(circle)/240(number of steps)=1,5° which in radians is 0.0262.

  • Jobergman

    images of the refined script in images: