Grasshopper

algorithmic modeling for Rhino

I have a set of objects (100), I would like to rotate 90 degrees relative to each other. how to do?

ex.

  •  the first object rotate by 180 degrees,
  • the second object rotate by 90 degrees,
  • the third object rotate by 360 degrees,
  • the fourth object rotate by 270 degrees,
  • the fiveth....

all objects rotate with multiples of 90 degrees at random sequence..

Can you help me?

 

Thanks a lot

    

Views: 2758

Replies to This Discussion

There' s anyone can help me? Please

Can you draw a sketch to illustrate this? In particular where the centre of rotations of each object is 

"...relative to each other." and "...with multiples of 90 degrees at random sequence." sound like two opposing strategies. 

 

If you want to randomly rotate objects through 90 degrees only, generate random integers and then multiply these numbers with 90 to get your rotation angles (or better, multiply by 0.5*pi to get rotation angles in radians).

 

But I don't know what 'relative to each other' means.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Sorry the traslate from italian to english for me is hard!!

I want randomly rotate objects with multiples of 90 degree...now i don't know how generate random integers, but i try to do it....

Thanks one more time for your support!

this is the definition that i create after your comment...

The degrees are not multiples of 90 and i don't know why!

Can you help me?

Sorry

Attachments:

Random by default generates floating point values. So when you set up the domain to be 1.0 to 3.0, you may get 2.354918 or 1.900723 or 3.915263. 

You need to toggle the Integer option to get only integers.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

One more time.....Thanks a lot!!

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