Grasshopper

algorithmic modeling for Rhino

how to rotate every nth item a gradual specific amount of degrees?

i have extruded squares, 20 items by 20 items on a grid and I would like to rotate every row in 15 degree increments. Which is the best way to do this?

 

thanks in advance!

Views: 1015

Replies to This Discussion

Hi Daniel,

assuming your squares are all stored in a single list, you'll have to generate a single rotation angle for every square. You can do this by generating a Series of angles {0, 15, 30, 45, 60, 75, 90.. etc}, then use a Duplicate component to turn it into {0, 0, 0, 0, 15, 15, 15, 15, 30, 30, 30, 30, 45, 45, 45, .... etc}.

--
David Rutten
david@mcneel.com
Poprad, Slovakia

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service