Announcement

Collapse
No announcement yet.

Randomizing rotation per groups?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Randomizing rotation per groups?

    hi all!
    i am trying to figure out how to achieve a random rotation on some facade elements.
    No problem to randomly rotate them individually, but i want to rotate the by groups.
    Example: i have groups of x facade elements and i want those elements to rotate the same value within that group, and to apply a random rotation value to each group/set of x elements.

    any ideas?

    thanx
    Nuno de Castro

    www.ene-digital.com
    nuno@ene-digital.com
    00351 917593145

  • #2
    The Blurscript pack has random transform with the option to indivudually or group transform.

    http://www.scriptspot.com/3ds-max/bsrun
    Resolution Digital
    www.resolutiondigital.co.uk

    Comment


    • #3
      thanx...but that s not quite what i am after.
      it rotates the group as an object, when i want to have the elements within a group/set rotated ex. 30º while another group/set 10º...and so on
      Nuno de Castro

      www.ene-digital.com
      nuno@ene-digital.com
      00351 917593145

      Comment


      • #4
        ....anyone?

        Nuno de Castro

        www.ene-digital.com
        nuno@ene-digital.com
        00351 917593145

        Comment


        • #5
          If I understood your problem correctly you can try this:
          First select all the groups whose objects you want rotated the same random amount , and then run this script:
          Code:
          for o in selection where not isGroupMember o do in coordsys parent rotate o.children (eulerangles 0 (random 0 180) 0)
          Play with the random values (0-180) to adjust to your desire

          Hope it helps
          Last edited by Codi; 07-05-2008, 03:45 PM.

          Comment


          • #6

            nearly success!
            minor detail....rotate only on the z axis?

            thanx a lot!
            Nuno de Castro

            www.ene-digital.com
            nuno@ene-digital.com
            00351 917593145

            Comment


            • #7
              Hehe

              You only have to change the place where the random value goes, instead of the 2nd place of eulerangles (Y factor) it has to go to the 3rd place (Z factor):
              Code:
              for o in selection where not isGroupMember o do in coordsys parent rotate o.children (eulerangles 0 0 (random 0 180))

              Comment


              • #8
                got it!
                i am testing it right now!
                thanx!
                Nuno de Castro

                www.ene-digital.com
                nuno@ene-digital.com
                00351 917593145

                Comment


                • #9
                  PERFECT!

                  i owe you!
                  Nuno de Castro

                  www.ene-digital.com
                  nuno@ene-digital.com
                  00351 917593145

                  Comment


                  • #10
                    Good, glad to help

                    Comment

                    Working...
                    X