• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Offset the position of multiple objects randomly

Scheduled Pinned Locked Moved Newbie Forum
sketchup
6 Posts 4 Posters 1.6k Views 4 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    herrschnitzel
    last edited by herrschnitzel 30 Nov 2017, 04:23

    Hi,

    i am searching for a Plugin that can offset the position of any object or component. Like randomly offset the position of an object between 0 to 5 cm in any or a given direction. Its not like Skatter but similar. I was searching for a Plugin which can randomly rotate multiple objects, I found "Random rotate". Is there anything like "random rotate" but for moving objects?
    Thanks in advance! πŸ˜„

    I am not searching for a rotation plugin!

    random.jpg

    1 Reply Last reply Reply Quote 0
    • H Offline
      HornOxx
      last edited by 30 Nov 2017, 06:03

      @herrschnitzel said:

      ...I was searching for a Plugin which can randomly rotate multiple objects, I found "Random rotate". Is there anything like "random rotate"?...
      hmm - not sure if you mean this tool by Cris Fullmer already? - if not "Scale and Rotate Multiple" is worth a try...
      http://sketchucation.com/forums/viewtopic.php?p=139946#p139946


      cf Randomly Scale and Rotate Multiple.jpg

      never trust a skinny cook

      1 Reply Last reply Reply Quote 0
      • H Offline
        herrschnitzel
        last edited by 30 Nov 2017, 08:23

        I have this plugin already and I'm not searching for a rotation plugin. Just look at the attached picture, something like that.

        1 Reply Last reply Reply Quote 0
        • O Offline
          oceanembers
          last edited by 30 Nov 2017, 09:59

          Sketchup.active_model.selection.each{|i|;
          r1 = rand(100)/50.0;
          r2 = rand(100)/50.0;
          r3 = rand(100)/50.0;
          tr = i.transformation;
          p = Geom;;Point3d.new(r1,r2,r3);
          tr2 = Geom;;Transformation.new(p);
          tr3 = tr * tr2;
          i.transformation = tr3}
          

          Select what you want to randomise, then run this from the ruby console. Quick and dirty but it'll do the trick...

          On another note, does anybody know why rand(2.0) isn't giving me floats?

          1 Reply Last reply Reply Quote 0
          • P Offline
            pilou
            last edited by 30 Nov 2017, 10:30

            Maybe this ? πŸ˜„

            And you have always also the fabulous Randomly Components replacement by Sdmitch! β˜€

            Frenchy Pilou
            Is beautiful that please without concept!
            My Little site :)

            1 Reply Last reply Reply Quote 0
            • H Offline
              herrschnitzel
              last edited by 1 Dec 2017, 22:07

              @oceanembers said:

              Select what you want to randomise, then run this from the ruby console. Quick and dirty but it'll do the trick...

              On another note, does anybody know why rand(2.0) isn't giving me floats?

              Nice it works really good. Thank you.

              @pilou said:

              Maybe this ? πŸ˜„

              And you have always also the fabulous Randomly Components replacement by Sdmitch! β˜€

              Wow s4u transformer is even more than I was looking for. Looks great! Thank you!! 15$ are well spend on that plugin.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                1/6
                Last post
              Buy SketchPlus
              Buy SUbD
              Buy WrapR
              Buy eBook
              Buy Modelur
              Buy Vertex Tools
              Buy SketchCuisine
              Buy FormFonts

              Advertisement