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

    [Plugin] Mirror

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

      Thanks for your reply TIG.

      Using Sketchup Pro 2019

      1 條回覆 最後回覆 回覆 引用 0
      • josephkim626J 離線
        josephkim626
        最後由 編輯

        @tig said:

        @josephkim626 said:

        Probably this is a single plugin I use most often.

        On that note TIG, I have a small request to make. Can you change or allow us to change the settings to have the newly generated object/geometry to be selected after the mirror command?
        I'm not changing the established selection staying with the retained original.
        BUT it's quite easy for you to adjust your own RB file yourself.
        Use Notepad/Notepad++ [PC] or TextWrangler[MAC] to edit it - NEVER use a Wordprocessor with Ruby files.
        The existing code at line #392 needs a new line of code adding - just before the 'commit_operation' -

         @ss.clear; nents.each{|e|@ss.add(e) if e.valid?} 
        

        Now the selection always passes to the copy, whether or not you have chosen to keep the originals.

        Great! I can try that.

        Thank you so much TIG

        -----------------edit

        Works great.
        Thank you so much for your help TIG!

        1 條回覆 最後回覆 回覆 引用 0
        • kimi kimiK 離線
          kimi kimi
          最後由 編輯

          Hi TIG,
          First of all, I really appreciate all of your work! Everything you created is so awesome. I just wanted to ask you one thing. Could you make another plugin, almost the same as this one. It's also a mirror plugin. But it mirrors only against a vertical plane. 90% of these mirror operations, at least in my experience, end up by choosing the blue axis. It would be cool if we could just make 2 clicks instead of 3. I hope you can consider this request.
          And one more thing I would probably change is that "Erase original selection?" question. It's sometimes really hard to focus and "talk" to SketchUp after a long day. I often forget if it's asking me to erase or to keep, and I'm too tired to read. So, my preference would be to have these two possibilities as two separate commands or shortcuts.
          I know I'm getting to 4 different outcomes now with all that I wrote. Maybe call it mirror pro? 😄
          Anyway, I never had any problems with your plugins. It always executed perfectly without any problems. I just thought you could save us a few clicks. And since I use this thing at least 100 times a day, it would really mean a lot to me.

          Best regards!

          1 條回覆 最後回覆 回覆 引用 0
          • cottyC 離線
            cotty
            最後由 編輯

            You can change the dialog in such a way that the more often used answer is the default one which you can simply choose by hitting the enter key without reading the text...
            http://sketchucation.com/forums/viewtopic.php?f=323%26amp;t=31410%26amp;p=510289%26amp;hilit=dialog#p510289

            (The mirroring with two clicks is occupied by the mirror through an axis)

            my SketchUp gallery

            1 條回覆 最後回覆 回覆 引用 0
            • Bob JamesB 離線
              Bob James
              最後由 編輯

              @cotty said:

              You can change the dialog in such a way that the more often used answer is the default one which you can simply choose by hitting the enter key without reading the text...
              http://sketchucation.com/forums/viewtopic.php?f=323%26amp;t=31410%26amp;p=510289%26amp;hilit=dialog#p510289

              (The mirroring with two clicks is occupied by the mirror through an axis)

              Since my most likely next operation is to move the new mirrored object, I've made the changes Tig provided. In doing so I noted that 12 additional lines have been added to the original post noted by cotty. So note the following nit-pick update to Tig's great plugin:

              ***Edit the "Mirror.rb" script with a plain-text editor - like Notepad++ - and find line #367 and change
              @msg = "Mirror: Erase Original Selection ?"
              to read:
              @msg = "Mirror: Keep Original Selection ?"
              so that the stausbar prompt is in step...
              Then go to line #379
              if UI.messagebox("Erase Original Selection ? ",MB_YESNO,"")==6 ### 6=YES 7=NO
              edit it to read:
              if UI.messagebox("Keep Original Selection ? ",MB_YESNO,"")==7 ### 6=YES 7=NO
              which reverses the question and the result of Pressing 'Yes'...
              For tidiness's sake also on line #381
              else ### NO
              change the rem note 'NO' after the ### to:
              else ### YES
              UPDATE
              Since my most likely next operation is to move the new mirrored object, is there something I can change so that after I hit Return that the copy is selected rather than the original?

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

                Using this GREAT tool a lot lately in framing models. Thanks for the note James. I really never want to erase the original, it seems, and it would be easier to just delete it rather than answer that dialog.

                MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

                1 條回覆 最後回覆 回覆 引用 0
                • Bob JamesB 離線
                  Bob James
                  最後由 編輯

                  @pbacot said:

                  Using this GREAT tool a lot lately in framing models. Thanks for the note James. I really never want to erase the original, it seems, and it would be easier to just delete it rather than answer that dialog.

                  If this is directed to me, I don't understand your reply.

                  What I would prefer is that the new mirrored object be the one selected so I can immediately move it. This leaves me with the original in its location and the mirrored copy in the moved location.

                  No big deal: super extension 👍

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

                    I'll consider your ideas in any future updates...

                    TIG

                    1 條回覆 最後回覆 回覆 引用 0
                    • pbacotP 離線
                      pbacot
                      最後由 編輯

                      I thought your edits would obviate answering whether to erase original each time. I guess COTTY was actually the one to show that. I don't care regarding selection afterwards as I do NOT usually move the object.

                      MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

                      1 條回覆 最後回覆 回覆 引用 0
                      • TIGT 離線
                        TIG Moderator
                        最後由 編輯

                        Here's v5.0.
                        http://sketchucation.com/pluginstore?pln=Mirror
                        It's now an extension and is future-proofed...

                        TIG

                        1 條回覆 最後回覆 回覆 引用 0
                        • TIGT 離線
                          TIG Moderator
                          最後由 編輯

                          Here's v6.0
                          http://sketchucation.com/pluginstore?pln=Mirror
                          It has some improved security features.

                          TIG

                          1 條回覆 最後回覆 回覆 引用 0
                          • mariochaM 離線
                            mariocha
                            最後由 編輯

                            @bob james said:

                            ... I would prefer that the new mirrored object be the one selected so I can immediately move it.

                            Being a big user of that extension, I often had that thought. So I second that. 😎

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

                            1 條回覆 最後回覆 回覆 引用 0
                            • josephkim626J 離線
                              josephkim626
                              最後由 編輯

                              @MARIOCHA

                              Just in case you missed it 😄.
                              TIG did mentioned the way to change that behavior in earlier reply.

                              1 條回覆 最後回覆 回覆 引用 0
                              • mariochaM 離線
                                mariocha
                                最後由 編輯

                                @josephkim626 said:

                                @MARIOCHA
                                Just in case you missed it 😄.
                                TIG did mentioned the way to change that behavior in earlier reply.

                                I had indeed missed it. Thanks.
                                Line number to insert code has changed to 337.
                                Works fine. 😄

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

                                1 條回覆 最後回覆 回覆 引用 0
                                • josephkim626J 離線
                                  josephkim626
                                  最後由 編輯

                                  @mariocha said:

                                  @josephkim626 said:

                                  @MARIOCHA
                                  Just in case you missed it 😄.
                                  TIG did mentioned the way to change that behavior in earlier reply.

                                  I had indeed missed it. Thanks.
                                  Line number to insert code has changed to 337.
                                  Works fine. 😄

                                  I assume that you are enjoying that as much as I am! 😄

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • mariochaM 離線
                                    mariocha
                                    最後由 編輯

                                    Wanted to learn some more Ruby.
                                    Added LanguageHandler to it. French included.
                                    Tested on Mac and PC.

                                    update: Attached the Localized version. This version also selects the mirrored copy at exit.

                                    Comments welcome.


                                    Mirror.rbz

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

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • mariochaM 離線
                                      mariocha
                                      最後由 編輯

                                      I tweaked the localized version so that it can show the toolbar icon properly.
                                      In Mirror_code.rb: png=File.join(DATA, "Mirror.png")
                                      Previously the png file name was linked to the name of the extension. But that name changes upon localisation. I made it so that the link to the png filename is not variable.


                                      Mirror_v6.0LH.rbz

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

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • S 離線
                                        Stardown
                                        最後由 編輯

                                        Hey TIG. Thanks for this plugin, very useful. I run a small CNC from home for personal improvement, and test different software. To do so I export my sketchup files to dxf. I've noticed that when using your mirror plugin, some geometry (usually curves) exports wrong into 3D dxf... even though they appear to be just fine in SketchUP. Do you know anything about that issue or how to fix it?

                                        If you need a sample file to check let me know.

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • TIGT 離線
                                          TIG Moderator
                                          最後由 編輯

                                          Here's v7.0 which is fully compatible with v2017 in all Loading Policies.
                                          http://sketchucation.com/pluginstore?pln=Mirror

                                          TIG

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • mariochaM 離線
                                            mariocha
                                            最後由 編輯

                                            Pity that LanguageHandler is not there.
                                            It was all done. 😞
                                            with fr strings file also. 😒

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

                                            1 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 7
                                            • 8
                                            • 9
                                            • 10
                                            • 11
                                            • 9 / 11
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement