sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    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

      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
      • HornOxxH Offline
        HornOxx
        last edited by

        @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

          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
          • oceanembersO Offline
            oceanembers
            last edited by

            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
            • pilouP Offline
              pilou
              last edited by

              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

                @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
                • First post
                  Last post
                Buy SketchPlus
                Buy SUbD
                Buy WrapR
                Buy eBook
                Buy Modelur
                Buy Vertex Tools
                Buy SketchCuisine
                Buy FormFonts

                Advertisement