rotation of objects

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

    

  • up

    Daniel de Berna

    There' s anyone can help me? Please
    1
    • up

      David Rutten

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

      4