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

    [REQUEST] Random stripe slicing

    Scheduled Pinned Locked Moved Plugins
    14 Posts 7 Posters 401 Views 7 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.
    • pilouP Offline
      pilou
      last edited by

      Draw 10 components rectangles 1 to 10 width

      then

      You can yet use the cool plugs of Sdmitch Random components replacement πŸ˜‰

      And the cool Painter random by Chris Fullmer πŸ˜‰

      kik.jpg

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

      1 Reply Last reply Reply Quote 0
      • R Offline
        rv1974
        last edited by

        Pilou πŸ˜‰, thank you for participating; I also use something similar in different cases: random select and get\apply component definition but it's quitedistant from what's originally needed.
        For example: it's 200m pergola in the shopping center. With requested script I'd make it within 10 sec.
        And this 'randomality' is very fashionable in last years- so the script would be really useful.


        Captllure2.JPG

        1 Reply Last reply Reply Quote 0
        • Dave RD Offline
          Dave R
          last edited by

          You say this is badly needed. By how many users? You make it sound like everyone needs it.

          Etaoin Shrdlu

          %

          (THERE'S NO PLACE LIKE)

          G28 X0.0 Y0.0 Z0.0

          M30

          %

          1 Reply Last reply Reply Quote 0
          • pbacotP Offline
            pbacot
            last edited by

            @dave r said:

            You say this is badly needed. By how many users? You make it sound like everyone needs it.

            Well, maybe that's right:" 'randomality' is very fashionable "

            MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

            1 Reply Last reply Reply Quote 0
            • A Offline
              autarchos
              last edited by

              hey dave, give the guy a break. he asked an innocent question, and there's no need for your holier than thou attitude.

              1 Reply Last reply Reply Quote 0
              • Dave RD Offline
                Dave R
                last edited by

                I don't have a holier than thou attitude. I just asked him a question. πŸ˜’

                Etaoin Shrdlu

                %

                (THERE'S NO PLACE LIKE)

                G28 X0.0 Y0.0 Z0.0

                M30

                %

                1 Reply Last reply Reply Quote 0
                • TIGT Offline
                  TIG Moderator
                  last edited by

                  Draw the face outline flat and group it.
                  Work inside the group-edit...
                  You can easily copy long lines across a face at even [small] centers - Move+Ctrl 50mm +NNx etc.
                  These will intersect the main face, don't worry about the extensions as these will go later...
                  Then there are tools to random-delete selected faces [Ctrl+A].
                  Repeat until it has enough 'randomality'.
                  Then there are tools to remove the left over faceless and coplanar edges.
                  Now you have a series of separate faces.
                  There are tools to batch-pushpull them [e.g. using a random-pushpull with a fixed max/min range].
                  Now you have a set of 3d bits inside a group.

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    rv1974
                    last edited by

                    @dave r said:

                    You say this is badly needed. By how many users? You make it sound like everyone needs it.

                    maybe in SE Minnesotian woodworking it's not so hot but here in urban european archviz field it's spritzing from every hole (way too much IMHO but this is the trend).
                    Google 'random pattern facade' or 'skolkovo' or take a look at this (typical example):
                    http://design.epfl.ch/piraeus/1-assignments/ps1-pattern-analyse_-porter-house-by-shop-architects
                    @TIG That's more or less the way I treat it but it's tedious and there's no min\max gap restriction in random selecting

                    1 Reply Last reply Reply Quote 0
                    • jeff hammondJ Offline
                      jeff hammond
                      last edited by

                      @rv1974 said:

                      http://design.epfl.ch/piraeus/1-assignments/ps1-pattern-analyse_-porter-house-by-shop-architects

                      i'm thinking about getting an apt there.. pretty cheap.. only $22k/month..

                      [edit] damn.. no vacancies..
                      [/edit]

                      dotdotdot

                      1 Reply Last reply Reply Quote 0
                      • jeff hammondJ Offline
                        jeff hammond
                        last edited by

                        you could make some random slicing planes using a one liner in the DC dialog..

                        then tig's split to plane to slice into individual groups (if you're working with solid groups to begin with.)
                        ?

                        if you just want to divide a face randomly, this DC idea would be even easier.. just use a single line as the component then explode all the components on top of a face..

                        randomslice.jpg

                        dotdotdot

                        1 Reply Last reply Reply Quote 0
                        • pilouP Offline
                          pilou
                          last edited by

                          Does exist a one line for the Ruby console of the = copy*(randombetween 10,40) ?

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

                          1 Reply Last reply Reply Quote 0
                          • TIGT Offline
                            TIG Moderator
                            last edited by

                            @unknownuser said:

                            Does exist a one line for the Ruby console of the = copy*(randombetween 10,40) ?
                            Make a group of some 'stripe' geometry, like a long thin rectangle.
                            Select that group and then run this one-liner in the Ruby Console:

                            n=10;d=40;m=Sketchup.active_model;g=m.selection[0];m.start_operation('gc');n.times{|i|c=g.copy;c.transform!(Geom;;Transformation.translation(Geom;;Vector3d.new((i+1)*rand(d),0,0)))};m.commit_operation
                            

                            It makes ten copies and spaces them off by a random value from 1" to 40" in whole inch steps along the x-axis [red].
                            It's one-step undo-able.
                            Adjust the numbers n [number of copies] and d [random max] as desired - remember that they need to be 'integers'.
                            Later you can explode the copies of the group to intersect them with a face forming the 'room's outline, and then trim them to suit, pushpulling them into 3d forma etc as desired...

                            TIG

                            1 Reply Last reply Reply Quote 0
                            • pilouP Offline
                              pilou
                              last edited by

                              Works like a charm! πŸ‘

                              testaleatig.jpg

                              and variations are infinite with remplace random parameters in x,y,z πŸ˜„

                              testaleatig1.jpg

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

                              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