sketchucation logo sketchucation
    • Login
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download

    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
    guest-login-reply
    deleted-message
    • 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

      one-reply-to-this-post last-reply-time 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

        one-reply-to-this-post last-reply-time 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.

          one-reply-to-this-post last-reply-time 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?

            one-reply-to-this-post last-reply-time 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 :)

              one-reply-to-this-post last-reply-time 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.

                one-reply-to-this-post last-reply-time 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