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

    [Plugin] Compo Spray 1.4.2 Updated

    已排程 已置頂 已鎖定 已移動 Plugins
    271 貼文 89 Posters 301.3k 瀏覽 89 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Didier BurD 離線
      Didier Bur
      最後由 編輯

      Hi,

      @unknownuser said:

      I get a dialoge box saying "1000 trials to drop components done. Continue?". And so on...

      This dialog pops up when there are too much constraints (you drew your shape where there is no face that belongs to the layer mask for instance) and the script tries and tries to drop components and cannot.

      @unknownuser said:

      Other options left alone.

      This may be the cause of the problem. Check if your options are consistent.

      @unknownuser said:

      Would be good to have a redirect there as well.

      @TT : done.

      @unknownuser said:

      Error: #<LocalJumpError: unexpected break>

      done too (fixed the bug).

      @unknownuser said:

      body { overflow: hidden; }

      I tried that but no luck (CSS is greek to me 😳 )
      I'd like to get rid of that horizontal scrollbar too...

      I've found a way to use dialog.show{} instead of show_modal{} 😛

      Keep the bugs comin', I'll fix 'em and publish a patch then.

      DB

      1 條回覆 最後回覆 回覆 引用 0
      • H 離線
        hebeijianke
        最後由 編輯

        Error: #<TypeError: can't convert Array into Float>
        (eval):1752:in raytest' (eval):1752:in raytestH'
        (eval):2323:in cs_random_points' (eval):1160:in create_geometry'
        (eval):1052:in onLButtonDown' (eval):1752 Error: #<TypeError: can't convert Array into Float> (eval):1752:in raytest'
        (eval):1752:in raytestH' (eval):2323:in cs_random_points'
        (eval):1160:in create_geometry' (eval):1064:in onLButtonUp'
        (eval):1752

        1 條回覆 最後回覆 回覆 引用 0
        • thomthomT 離線
          thomthom
          最後由 編輯

          @didier bur said:

          Hi,

          @unknownuser said:

          Would be good to have a redirect there as well.

          @TT : done.

          @unknownuser said:

          Error: #<LocalJumpError: unexpected break>

          done too (fixed the bug).

          @unknownuser said:

          body { overflow: hidden; }

          I tried that but no luck (CSS is greek to me 😳 )
          I'd like to get rid of that horizontal scrollbar too...

          Because you used a strict doctype the HTML DOM acts a bit different. When I applied the rule to the HTML element it worked:

          <span class="syntaxdefault"><br />html </span><span class="syntaxkeyword">{<br /></span><span class="syntaxdefault">  overflow</span><span class="syntaxkeyword">;</span><span class="syntaxdefault"> hidden</span><span class="syntaxkeyword">;<br />}<br /></span><span class="syntaxdefault"> </span>
          

          I think that you can get rid of the inset frame if you set the scrollable argument to false when you create the WebDialog.


          NoScrollbar.png

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

          1 條回覆 最後回覆 回覆 引用 0
          • Didier BurD 離線
            Didier Bur
            最後由 編輯

            Hi folks,

            Just a note to keep the thread on top of stack...
            Update 1.4.1. of CompoSpray is available here: http://rhin.crai.archi.fr/RubyLibraryDepot/plugin_details.php?id=76

            Mainly bug fixes, backward compatibility, non-modal dialog BUT a true "Ignore hidden geometry" option (thanks to ThomThom): spray can now ignore entities that are masked OR on invisible layers.

            Next step: a directionnal spray 🎉

            DB

            1 條回覆 最後回覆 回覆 引用 0
            • X 離線
              xrok1
              最後由 編輯

              this is a sweet update. 😍
              do you have an explanation of how to use the layer mask? 😳

              “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

              http://www.Twilightrender.com try it!

              1 條回覆 最後回覆 回覆 引用 0
              • Didier BurD 離線
                Didier Bur
                最後由 編輯

                Hi,

                @unknownuser said:

                how to use the layer mask?

                Select a layer in the dropdown list and components will "fall" only on that layer...

                DB

                1 條回覆 最後回覆 回覆 引用 0
                • A 離線
                  Aldob
                  最後由 編輯

                  Thanks,
                  My SU 7.1 just closing down as soon as I press component spray button on toolbar.
                  I deleted older version from Plugins folder and my system is Win XP 64
                  Regards

                  1 條回覆 最後回覆 回覆 引用 0
                  • Didier BurD 離線
                    Didier Bur
                    最後由 編輯

                    @unknownuser said:

                    My SU 7.1 just closing down as soon as I press component spray button on toolbar.

                    😲 😲 😲
                    It does bugsplat ?

                    DB

                    1 條回覆 最後回覆 回覆 引用 0
                    • pep75P 離線
                      pep75
                      最後由 編輯

                      It looks very promising, but it does nothing. I can see the menu etc, but when I push the "spray" button; "the computer says: "No".... 😉

                      Oh I'm working with v8!

                      1 條回覆 最後回覆 回覆 引用 0
                      • F 離線
                        fjb80
                        最後由 編輯

                        The compospray icon shows up, as does the toolbar, but when I click it nothing happens. Here's my error message from the ruby console:

                        Error: #<Errno::ENOENT: No such file or directory - /Users/Fraser/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/CompoSpray/csSettings.html>
                        (eval):269:in initialize' (eval):269:in new'
                        (eval):269:in write_cs_dialog' (eval):107:in compoSpray_main'
                        /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/compoSprayToolbar.rb:14
                        (eval):269:in `call'
                        (eval):269

                        So it looks like it's missing an html file?

                        Using OS 10.6, SU 8

                        Thanks,

                        1 條回覆 最後回覆 回覆 引用 0
                        • thomthomT 離線
                          thomthom
                          最後由 編輯

                          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 條回覆 最後回覆 回覆 引用 0
                          • F 離線
                            fjb80
                            最後由 編輯

                            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 條回覆 最後回覆 回覆 引用 0
                            • thomthomT 離線
                              thomthom
                              最後由 編輯

                              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 條回覆 最後回覆 回覆 引用 0
                              • Didier BurD 離線
                                Didier Bur
                                最後由 編輯

                                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 條回覆 最後回覆 回覆 引用 0
                                • halroachH 離線
                                  halroach
                                  最後由 編輯

                                  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 條回覆 最後回覆 回覆 引用 0
                                  • thomthomT 離線
                                    thomthom
                                    最後由 編輯

                                    @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 條回覆 最後回覆 回覆 引用 0
                                    • Didier BurD 離線
                                      Didier Bur
                                      最後由 編輯

                                      Hi,
                                      Thanks for all these tips and explanations TT ☀

                                      DB

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • F 離線
                                        fjb80
                                        最後由 編輯

                                        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 條回覆 最後回覆 回覆 引用 0
                                        • N 離線
                                          nickchun
                                          最後由 編輯

                                          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 條回覆 最後回覆 回覆 引用 0
                                          • halroachH 離線
                                            halroach
                                            最後由 編輯

                                            @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 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 13
                                            • 14
                                            • 2 / 14
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement