Grasshopper

generative modeling for Rhino

# 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.

Views: 884

Comment

Join Grasshopper

Comment by Jobergman on January 7, 2013 at 8:58am

The script for a 360° element

Comment by Jobergman on January 7, 2013 at 8:52am

The expression for the series component . ..

Comment by Jobergman on January 7, 2013 at 8:50am

images of the refined script in images:

Comment by Jobergman on January 7, 2013 at 8:47am

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.

Comment by Jobergman on March 23, 2012 at 8:54am

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 . . .

Comment by Mustafa Teksoy on March 23, 2012 at 8:12am

Hi Jobergman,

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

mt

Comment by Jobergman on February 8, 2012 at 5:57am

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. . .

Comment by fernando molas garcia on February 7, 2012 at 12:14pm

by stefano

by stefano

• View All