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

[Plugin] Component Spray Tool 1.3.

Scheduled Pinned Locked Moved Plugins
92 Posts 44 Posters 91.2k Views
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.
  • C Offline
    Chris Fullmer
    last edited by 23 Aug 2008, 05:03

    Hi Didier, I have some requests that I wouldn't mind seeing in a script like this. I'll list them below and if any are interesting to your or easy to incorporate, I'd be thrilled! Ok, so I mostly like to use 2d faceme components, so I think my ideas might be more useful for 2d faceme plants/trees and people.

    1. The ability to create pre made lists of components. So currently you have 6 slots to set the components. But editable lists would be cool. So I could make a large list of all my 2d faceme people, then a different list of all my 2d faceme sillhouette people. Both of these lists are much larger than 6 components, so it would be cool if there was something of a component group editor. So instead of selecting the components one by one, I could choose from my lists I had previously put together. This is probably my #1 request if you want to add it πŸ˜„

    2. Skip this one, it was random size. I got it work - excellent!

    3. The point and click method should be random (I think). So it doesn't just go in the order of the list. Or maybe a radio tickbox allowing for random order, or following the list order.

    4. Perhaps being able to save different default profiles. So I can set up a default spray for people, then a default for large forrest trees, one for small bushes, etc. This might not be the most important thing to implement, but could be interesting?

    I think that is it for now. I had put a lot of thought into a similar script a while ago, but I can't rememebr everything. So if I think of anything more, I'll be sure to add it to this thread πŸ˜„

    Again, awesome work Didier. I plan on using this regularly.

    Chris Fullmer

    Lately you've been tan, suspicious for the winter.
    All my Plugins I've written

    1 Reply Last reply Reply Quote 0
    • G Offline
      Gaieus
      last edited by 23 Aug 2008, 09:14

      Stan,

      Can it be the case that your terrain valleys are under the ground level in SU (I mean they have negative values on the z axis)?
      Because if so, the GE Snapshot (which is a horizontal face on 0 z axis) would stop the trees falling under it.

      Gai...

      1 Reply Last reply Reply Quote 0
      • D Offline
        Didier Bur
        last edited by 23 Aug 2008, 18:21

        Hi,
        Spray tool doesn't mind if there are negative coordinates. This must be something else that prevents the trees to land on the terrain...

        DB

        1 Reply Last reply Reply Quote 0
        • S Offline
          sbthomas
          last edited by 24 Aug 2008, 00:33

          Gaieus; I think you are right. The GE snapshot seems to be limiting the z placement of trees even if I toggle terrain on. I'll break the GE snapshots up to smaller sections to see if I can get around the problem for now. If there is a way to adjust the axis of the snapshot to make this work better let me know.

          Thanks
          STAN

          1 Reply Last reply Reply Quote 0
          • D Offline
            Didier Bur
            last edited by 24 Aug 2008, 07:23

            @unknownuser said:

            the GE Snapshot (which is a horizontal face on 0 z axis) would stop the trees falling under i

            Yes. The ruby "raycast" method don't care of hidden layers or entities (no way to get rid of this). You should make a component of your GE snapshot, save it outside your model, delete it in the model, spray your trees, and bring the GE snapshot component back afterwards.
            Regards,

            DB

            1 Reply Last reply Reply Quote 0
            • G Offline
              Gaieus
              last edited by 24 Aug 2008, 12:17

              If you unlock it and cut it,you can insert it into another model with the Edit > Paste in place command. At the end you can bring it back in the same way to make it sure it is really at the same place.

              Gai...

              1 Reply Last reply Reply Quote 0
              • C Offline
                Chris Fullmer
                last edited by 26 Aug 2008, 16:21

                Any thoughts on my requests Didier? Look back a few posts. Especially the first one. It's really important to my workflow. Would it be possible to include? Thanks for looking,

                Chris

                Lately you've been tan, suspicious for the winter.
                All my Plugins I've written

                1 Reply Last reply Reply Quote 0
                • D Offline
                  Didier Bur
                  last edited by 26 Aug 2008, 21:45

                  Yes, it is possible to include your requests, but you'll have to be patient πŸŽ‰
                  I'm on a huge project now and I'm afraid I must leave my freebies as they are for a couple of weeks...

                  DB

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    Chris Fullmer
                    last edited by 26 Aug 2008, 23:14

                    Oh I can be patient πŸ˜„ I just wanted to make sure you saw my thoughts and would see if they were good ideas or useless. Thanks for looking at it Didier, you're the best!

                    Chris

                    Lately you've been tan, suspicious for the winter.
                    All my Plugins I've written

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      sbthomas
                      last edited by 27 Aug 2008, 13:40

                      Gaieus & Didier;
                      Using your suggestions I have been able to overcome the issue of spraying in the valleys of GE snapshots. The process is as follows:

                      Get GE snapshot
                      toggle terrain
                      save-as "snapshotname"
                      unlock terrain
                      explode terrain
                      edit>copy terrain
                      file>new sketchup project
                      edit>paste-in-place
                      insert component
                      spray component
                      delete terrain
                      import saved snapshot
                      place model back to GE

                      thanks again for your help.
                      STAN

                      1 Reply Last reply Reply Quote 0
                      • G Offline
                        Gaieus
                        last edited by 30 Aug 2008, 09:39

                        Hi Stan,

                        In order to make sure your original terrain remains intact,after the step where you copy it,you can just undo the steps in the original model (the copied version will remain on the clipboard and you can use the paste in place command in the new model to spray the components).

                        Gai...

                        1 Reply Last reply Reply Quote 0
                        • thomthomT Offline
                          thomthom
                          last edited by 3 Sept 2008, 09:50

                          This is one of my absolute favourite rubies. I just detailed a large terrain model with 4000 trees in no time. I would never have gotten such a rich detail to it manually.

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

                          1 Reply Last reply Reply Quote 0
                          • C Offline
                            Chris Fullmer
                            last edited by 5 Feb 2009, 06:57

                            Hi Didier, I have found that this script is conflicting with progressbar.rb, and therefore crashing all scripts that are using progressbar (makefaces in particular!, but I found the problem while developing my own script). There is a pb.update() method in the progressbar that seems to not work so I'm guessing that is where the conflict is - but I could be WAAAAY off. Thanks Didier!

                            I was wondering if anyone else could confirm this?

                            Chris

                            Lately you've been tan, suspicious for the winter.
                            All my Plugins I've written

                            1 Reply Last reply Reply Quote 0
                            • thomthomT Offline
                              thomthom
                              last edited by 15 Jun 2009, 12:23

                              Does it make use of the disable UI argument for .start_operation ?

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

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                Didier Bur
                                last edited by 15 Jun 2009, 19:11

                                @unknownuser said:

                                Does it make use of the disable UI argument for .start_operation ?

                                No.
                                Is there still a conflict with progressbar ? πŸ‘Š
                                I changed the class and methods names to get rid of any conflict in the latest version released. 😲

                                DB

                                1 Reply Last reply Reply Quote 0
                                • thomthomT Offline
                                  thomthom
                                  last edited by 15 Jun 2009, 19:14

                                  It'd be interesting to see what speed this plugin worked at with the SU UI disabled. Any chance of an updated version?

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

                                  1 Reply Last reply Reply Quote 0
                                  • C Offline
                                    Chris Fullmer
                                    last edited by 15 Jun 2009, 19:20

                                    @didier bur said:

                                    Is there still a conflict with progressbar ?

                                    Nope! It is working great now with progressbar. Thanks for fixing it so quickly too,

                                    Chris

                                    Lately you've been tan, suspicious for the winter.
                                    All my Plugins I've written

                                    1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      milfot
                                      last edited by 3 Jul 2009, 04:39

                                      Wow, this plugin is fantastic!!

                                      Much appreciated... i am off to build a forest.

                                      ..cam

                                      1 Reply Last reply Reply Quote 0
                                      • D Offline
                                        denna003
                                        last edited by 14 Sept 2009, 11:30

                                        THAnk you very much!!!! πŸ˜‰

                                        1 Reply Last reply Reply Quote 0
                                        • A Offline
                                          AcesHigh
                                          last edited by 14 Dec 2009, 14:57

                                          Didier, is this the last version of your tool?

                                          Can I make a suggestion? It seems the altitude option is too "hard". I mean, I think you could add some dialogue to add a % of chance that components will spray below and above the maximum altitude. That way, they will concentrate on the set altitude, but some of them will spread casually beyond (unless you set the chance of that happening to 0%)

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

                                          Advertisement