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

    [Plugin] Component Spray Tool 1.3.

    Scheduled Pinned Locked Moved Plugins
    92 Posts 44 Posters 91.2k Views 44 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.
    • thomthomT Offline
      thomthom
      last edited by

      Didier:

      If you replace the native model.raytest with this method the rays won't stop on invisible entities:

      
        # Raytrace method that does not stop on hidden entities.
        def self.raytest(ray)
          model = Sketchup.active_model
          vector = ray[1]
          while true
            # Shot ray
            test = model.raytest(ray)
            return nil if test.nil?
            # Verify visibility
            point, path = test
            if path.all? { |e| e.visible? && e.layer.visible? }
              return test
            else
              # raytest stopped on a hidden entity - create a new ray from that point
              # and let the loop continue until it hits something visible, or nothing.
              ray = [ point, vector ]
            end
          end # while
        end
      
      

      Thomas Thomassen — SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 Reply Last reply Reply Quote 0
      • Didier BurD Offline
        Didier Bur
        last edited by

        Hi tt,
        💭 💭 💭 💭 💭 💭

        DB

        1 Reply Last reply Reply Quote 0
        • I Offline
          inbal
          last edited by

          thank so much 😄

          1 Reply Last reply Reply Quote 0
          • L Offline
            lapx
            last edited by

            Problems with component spray tool...Tool will not pick point after clicking.
            Is anyone else have problems with the tool? All the parameters appear correct.
            I'm placing byce on a simple plane is not working. Openig a new drawing helped but it always goes back to not working at some point.

            I'm using in V6.

            1 Reply Last reply Reply Quote 0
            • charly2008C Offline
              charly2008
              last edited by

              Hi,

              I wanted to try compo spray but I get a huge number of components at a small circle. What am I doing wrong?

              Charly


              compo1.JPG


              compo2.JPG

              He who makes no mistakes, makes nothing

              1 Reply Last reply Reply Quote 0
              • Didier BurD Offline
                Didier Bur
                last edited by

                Hi,
                Did you draw a great circle (20m or so) or a small one (2m or so) ?
                But don't worry, since FaceMe components don't really have a bounding box, the number of components to be created is wrong, if I remember well...
                Regards,

                DB

                1 Reply Last reply Reply Quote 0
                • charly2008C Offline
                  charly2008
                  last edited by

                  Hi Didier,

                  The circle was about three meters. I tried the whole day. If i use it at a single line or a point then i get very small copies.

                  Charly


                  compo.JPG


                  Untitled.skp

                  He who makes no mistakes, makes nothing

                  1 Reply Last reply Reply Quote 0
                  • charly2008C Offline
                    charly2008
                    last edited by

                    For the above mentioned problem i found the solution. The values for Low and high scale where to less.

                    But now although Keep vertical is selected, the tree is horizontal. For this I could not find the reason.

                    Charly


                    Unbenannt.JPG

                    He who makes no mistakes, makes nothing

                    1 Reply Last reply Reply Quote 0
                    • charly2008C Offline
                      charly2008
                      last edited by

                      Hi,

                      I found the error. This component was the reason. After I exploded the component and made it a new component, the error was gone.

                      Charly

                      He who makes no mistakes, makes nothing

                      1 Reply Last reply Reply Quote 0
                      • mariochaM Offline
                        mariocha
                        last edited by

                        I'm having difficulty to make it work in SU 8.
                        Confirmation ?
                        But it is my first try, I must say.

                        %(#008000)[Mario C.
                        Every rule has exceptions, but some.]

                        1 Reply Last reply Reply Quote 0
                        • thomthomT Offline
                          thomthom
                          last edited by

                          @mariocha said:

                          I'm having difficulty to make it work in SU 8.
                          Confirmation ?
                          But it is my first try, I must say.

                          Exactly what isn't working?

                          Thomas Thomassen — SketchUp Monkey & Coding addict
                          List of my plugins and link to the CookieWare fund

                          1 Reply Last reply Reply Quote 0
                          • mariochaM Offline
                            mariocha
                            last edited by

                            Well, like I said it was my first try. I finally got it after a few more tries.
                            My mistake was to try to "spray" on a face in a group being outside of it.
                            Somehow I assumed that's what it did. 😳
                            Maybe cause I cannot get the "selection" option to work. It just stops and asks to select objects, even when a face is selected before, and it stays suck there, clicking or enter do nothing.
                            I read the manual, again (very well done btw). Maybe a warning line could be added about groups. 😄
                            Although it is so obvious now.

                            %(#008000)[Mario C.
                            Every rule has exceptions, but some.]

                            1 Reply Last reply Reply Quote 0
                            • K Offline
                              koolarsenal
                              last edited by

                              @didier bur said:

                              Hi all,
                              Here is an update of the component spray tool (updated PDF doc included).

                              What's new in 1.3.:
                              New "shape" option to drop component at each vertex of selected faces.
                              Bug fix when loading the script on Mac.
                              Bux fix that froze the script when no destination layer were specified.
                              Enjoy !

                              EDIT:
                              Last version posted 03.09.10 (no more progressbar conflict, not an rbs)

                              http://i883.photobucket.com/albums/ac36/koolarsenal/1.jpg

                              This is my problem with the plugin, can you tell me how to fix it? The table is to big, It isn't match with my screen so I can't see the rest of the table.

                              1 Reply Last reply Reply Quote 0
                              • C Offline
                                compadre.lucas
                                last edited by

                                thank you so much!!.I;ve been dreaming about this tool for months.
                                I will try it out now.
                                sketchup is infinity.

                                1 Reply Last reply Reply Quote 0
                                • B Offline
                                  bitslapped
                                  last edited by

                                  I initially could not get this to work in selection mode, but it worked fine after removing all my other plugins. Must be some incompatibility, I have quite a few.

                                  One thing I did notice is a tendency for scattered objects to be more dense toward the centre of the regions in all cases. I don't know ruby but it seems whatever random function you are using is a bit biased towards the mean.

                                  That being said, what a fantastic script! Keep up the good work Didier!

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

                                    @Kool
                                    AS you have just 3 box values missing
                                    Just enter your values then press TAB
                                    and at the end Press Enter
                                    Some rustic but efficient 😉

                                    Below box values missing


                                    help.jpg

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

                                    1 Reply Last reply Reply Quote 0
                                    • Didier BurD Offline
                                      Didier Bur
                                      last edited by

                                      Hi all,
                                      I'm on my way to the next release to fix all these minor problems, and to add a webdialog as well.

                                      cs2.gif

                                      DB

                                      1 Reply Last reply Reply Quote 0
                                      • thomthomT Offline
                                        thomthom
                                        last edited by

                                        @charly2008 said:

                                        Hi,

                                        I found the error. This component was the reason. After I exploded the component and made it a new component, the error was gone.

                                        Charly

                                        Maybe it was very small in size. What if you Right-Click and choose Scale Definition?

                                        Thomas Thomassen — SketchUp Monkey & Coding addict
                                        List of my plugins and link to the CookieWare fund

                                        1 Reply Last reply Reply Quote 0
                                        • thomthomT Offline
                                          thomthom
                                          last edited by

                                          @didier bur said:

                                          Hi all,
                                          I'm on my way to the next release to fix all these minor problems, and to add a webdialog as well.

                                          [attachment=0:3sz6k615]<!-- ia0 -->cs2.gif<!-- ia0 -->[/attachment:3sz6k615]

                                          That's very cool! 👍 😄

                                          Can I just come with a request? Make one multi-select list to pick the components, instead of a fixed 6 slots. And if the selected components can be preselected, that'd be a great user experience addition.

                                          Thomas Thomassen — SketchUp Monkey & Coding addict
                                          List of my plugins and link to the CookieWare fund

                                          1 Reply Last reply Reply Quote 0
                                          • GaieusG Offline
                                            Gaieus
                                            last edited by

                                            Thanks a bunch for the new version!!!

                                            When we are at it; could you also add a function whether the tool sprays with that centralized way on a face it does at the moment or not (so that in some ways it would work similarly to the fur plugin or something like "populate")?

                                            Also, beside the sliders, will the fields accept precise, manual input too?

                                            Gai...

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

                                            Advertisement