• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

[Plugin] Compo Spray 1.4.2 Updated

Scheduled Pinned Locked Moved Plugins
271 Posts 89 Posters 301.3k 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.
  • T Offline
    thomthom
    last edited by 10 Jan 2011, 21:29

    It's looking in your user folder instead of the root folder where the plugin is installed.
    Have you installed some plugins into your user folder? In come cases that might confuse plugins.

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

    1 Reply Last reply Reply Quote 0
    • F Offline
      fjb80
      last edited by 10 Jan 2011, 21:37

      The only files under the user library is a podium script. Can I edit one of the files in the folder (CSS) to make sure it looks in the HD library folder rather than the user library folder? I'm not sure how a ruby script works, but this would be a great one to get up and running.

      Thanks for the help so far,

      F

      1 Reply Last reply Reply Quote 0
      • T Offline
        thomthom
        last edited by 10 Jan 2011, 21:41

        hmm... if I remember correctly, podium can confuse some scripts.

        @didier: how are you locating your files? I find that basing all my paths on File.dirname(__FILE__) is the most reliable method. Sketchup.find_support_file doesn't seem to be that reliable as plugins might not be installed there.

        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 10 Jan 2011, 23:47

          Hi,

          The HTML file isn't missing, because it is written (normally) each time the tool is launched, then loaded in the webdialog.
          @thomthom: Here is how I locate this file:

          @path_cs = Sketchup.find_support_file("Plugins")+"\/CompoSpray\/"
          	@settings_dialog = UI;;WebDialog.new("CompoSpray Settings",true,nil,100,100,100,100,false)
          	@settings_dialog.set_file(@path_cs + "csSettings.html")
          

          Does this not work on a Mac the same way than on a PC ??

          DB

          1 Reply Last reply Reply Quote 0
          • H Offline
            halroach
            last edited by 11 Jan 2011, 06:00

            Is there a way to to spray onto closed components, rather than only onto "open" surfaces?

            edit: I think stacking does it... ok! never mind!

            Wonderful plugin!!!!

            FlexTools - Super Quick Windows, Doors, Slats...

            1 Reply Last reply Reply Quote 0
            • T Offline
              thomthom
              last edited by 11 Jan 2011, 07:23

              @didier bur said:

              Does this not work on a Mac the same way than on a PC ??

              As you see in his error report, the plugin is trying to look for the file at:
              /Users/Fraser/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/CompoSpray
              while the plugin itself is located under:
              /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/compoSprayToolbar.rb:14

              OSX has a system Library folder and a User Library folder that looks very similar, and some users end up adding plugins to User Library. And I think Podium installs there.
              And then you can get issues with Sketchup.find_support_file

              The best way to determine the base path of your supporting folders are:
              File.dirname(__FILE__)

              In your case it'd be:
              @path_cs = File.dirname(__FILE__) + "/CompoSpray/"

              However, that won't work in .rbs files.
              In Vertex Tools I made the uncrypted loader, which was a regular .rb file, determine the paths and assign it to constants which the .rbs files could use.

              I've never had any path issues that way, and the plugins can be installed anywhere on the system. (if the user prefers to install in a custom location.)

              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 11 Jan 2011, 11:57

                Hi,
                Thanks for all these tips and explanations TT ☀

                DB

                1 Reply Last reply Reply Quote 0
                • F Offline
                  fjb80
                  last edited by 11 Jan 2011, 17:57

                  So is there a way I can update my plugin to get it to work or do I have to wait for an update? Can I change some code? I looked for the code attached to Didier's post but couldn't find it in any of the files I had. Again, I'm not super familiar with code so it may be somewhere else.

                  Any help would be appreciated. Thanks for the discussion and attempts to resolve my issue. Much appreciated.

                  Fraser

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    nickchun
                    last edited by 11 Jan 2011, 18:23

                    Hi, I have tried to use this plugin on SU7 free, but cannot get it to work. I did not have the previous version so there were no files to delete. instead of the input box for 'shape' I get the box as shown for 'vertices of faces'.
                    Any ideas?
                    Thanks
                    Nick


                    compo.JPG

                    1 Reply Last reply Reply Quote 0
                    • H Offline
                      halroach
                      last edited by 11 Jan 2011, 18:34

                      @nickchun said:

                      instead of the input box for 'shape' I get the box as shown for 'vertices of faces'.
                      Any ideas?
                      Thanks
                      Nick

                      1. I got the same thing at first. After playing around with the model, making new components and refreshing the compospray window (by closing and reopening) that got solved.

                      2. I had a different problem with the altitude (min max) bars not updating their info unless I start moving the sliders. sometimes the sliders disappear completely and I need to refresh...

                      3. when using the spray tool, sometimes it works really quickly, other times it gets stuck for a very long time, even though the places on the curved surface I am clicking on look all quite the same. I am not sure how to recreate this, if I'll get to it I'll repost.

                      FlexTools - Super Quick Windows, Doors, Slats...

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        Didier Bur
                        last edited by 11 Jan 2011, 20:43

                        @unknownuser said:

                        instead of the input box for 'shape' I get the box as shown for 'vertices of faces

                        @nickchun: this happens when the selection isn't empty before launching the tool.That's normal. If you read the doc you will notice that 😉

                        PLEASE READ THE DOC FOLKS ! 🎉 ,

                        DB

                        1 Reply Last reply Reply Quote 0
                        • N Offline
                          nickchun
                          last edited by 11 Jan 2011, 21:05

                          Didier, sorry, I didn't pick up on that in the manual. Components need to be placed in model outside of the selection right? Works fine. Thanks very much

                          1 Reply Last reply Reply Quote 0
                          • O Offline
                            Oxer
                            last edited by 11 Jan 2011, 21:12

                            Thanks for update the plugin, i would like translate the plugin to spanish language, is this possible?

                            "The result is the end what is important is the process" by Oxer
                            [http://www.oxervision.blogspot.com/(http://www.oxervision.blogspot.com/)]

                            1 Reply Last reply Reply Quote 0
                            • A Offline
                              Aldob
                              last edited by 12 Jan 2011, 05:09

                              It does bugsplat ?[/quote]
                              It does nothing 😞 just closing SU down. Tested on SU 8.0 Works OK. But I have 7.1 Pro only. I guess some of ruby previously downloaded dcause that... But don't know which of them. Some of other commands from LSS tools and Tools on surface cause Closing down as well. They used to work well.
                              Regards,

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                Didier Bur
                                last edited by 12 Jan 2011, 12:17

                                Weird.
                                There shouldn't be any conflict with another plugin because all is wrapped in a Ruby Module, and there are also no redefinition of standard methods or classes. A workaround would be to empty your Plugins folder except compoSpray, see if it works, and then add other scripts one by one and check when it makes SU close.
                                Hope this helps,

                                DB

                                1 Reply Last reply Reply Quote 0
                                • D Offline
                                  Didier Bur
                                  last edited by 12 Jan 2011, 12:24

                                  @nickchun:

                                  @unknownuser said:

                                  Components need to be placed in model outside of the selection right?

                                  Components must have been imported in your model (you can see such components when clicking on the "house" icon of the components windows) prior to using the tool, otherwise they won't appear in the dropdown lists.
                                  When you select faces before launching the tool, the shapes dropdown list is replaced by 2 options: insert a component at each vertex of each selected face, or use the selected faces as the area to spray on.

                                  DB

                                  1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    simon le bon
                                    last edited by 12 Jan 2011, 13:41

                                    Hi Didier
                                    Sorry to come back with a new problem!
                                    (It seems that I'm the only one to encounter this : )
                                    Su6 and Su7 , I can't make any slider activ ❓ 😕

                                    http://i274.photobucket.com/albums/jj245/Spendauballet/SketchUp/thDBCompSpray14c.jpg

                                    any suggestion?
                                    simon

                                    1 Reply Last reply Reply Quote 0
                                    • B Offline
                                      Bob James
                                      last edited by 12 Jan 2011, 21:43

                                      I created a flat inclined plane, centered it at the origin, and put a yucca bush on it.

                                      Under "Spray" I had two choices as expected:

                                      Selected Faces
                                      Vertices of Faces

                                      I clicked on the plane, chose my yucca plant and selected "Selected Faces", then pressed "Spray"

                                      Nothing happens.

                                      i7-4930K 3.4Ghz, 2x GTX780 6GB, 32GB DDR3-1600 ECC, OCZ Vertex 4 500GB, WD Black 3TB, 32TB NAS, 4x 27" Monitors, SpaceMouse Pro, X-keys XK-60

                                      1 Reply Last reply Reply Quote 0
                                      • D Offline
                                        Didier Bur
                                        last edited by 13 Jan 2011, 11:09

                                        @bob james:
                                        Bug found ! 😳
                                        Will fix that asap

                                        DB

                                        1 Reply Last reply Reply Quote 0
                                        • pilouP Offline
                                          pilou
                                          last edited by 14 Jan 2011, 11:03

                                          hello
                                          Same problem than Simon for the cursors in V6 : they don't move 😢

                                          But I have also a more difficult problem! 😮
                                          I can't see the total dialog box!!! and it can't be resized! 😒


                                          humhum.jpg

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

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

                                          Advertisement