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

    [Plugin] Mirror

    Scheduled Pinned Locked Moved Plugins
    211 Posts 72 Posters 390.6k Views 72 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.
    • D Offline
      DIEGO-RODRIGUEZ
      last edited by

      Tig.
      the error in the ruby console, is generated by file called RubyWinFunc.so, using the Vray render engine.

      and

      Sketchup is closed only when the mirror and duplicate the components / groups.
      However if only mirror the components / groups (not duplicate) sketchup is not closed.
      By far the best solution is to have the closed ouliner

      and a question.
      when applied to a curved mirror. duplicated curve is exploited.
      can be solved?

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        Diego

        I only rarely happens to me - usually a Curve is kept intact...
        If you know you have Curves and experience the problem then you could manually Group the Selection before Mirroring it.
        I don't know how to stop the rare 'raw' curve exploding glitch - the method used is basically "the selection is grouped, the group is copied, scaled -1 [to 'mirror' it] and then the original group might be deleted, then the group is exploded so the selection is back as it was but now 'mirrored'.

        A Curve shouldn't 'explode' as it's container group explodes but just sometimes it does!
        I was aware of the glitch but in a few tests just now I can't get it to reproduce - could you post a small SKP with a failing example ?

        TIG

        1 Reply Last reply Reply Quote 0
        • D Offline
          DIEGO-RODRIGUEZ
          last edited by

          tig. is a very strange error.
          sometimes it generates and sometimes not.
          I have not found a pattern of regular behavior

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

            thankkkkkkkkkkkkkk

            1 Reply Last reply Reply Quote 0
            • T Offline
              tfdesign
              last edited by

              Tig, I use the Flip Along tool a lot of the time. I also watched a SketchUp tutorial with an official Google instructor saying that he didn't quite get it (flip along). I don't understand what there is that's not to get? How does your Mirror plugin differ or improve what's already available?

              Tom

              My book "Let's SketchUp!" Download from here

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

                With the flip along tool, you can flip along one of the main axes (or those of groups/components) only. This plugin lets you mirror in a bunch of different ways, too.

                Gai...

                1 Reply Last reply Reply Quote 0
                • TIGT Offline
                  TIG Moderator
                  last edited by

                  As Gai explained... the built in 'Flip' mirrors around the model's axes.
                  This is also similar to using Scale with '-1', where the 'mirroring' is limited to three directions too.
                  The Mirror tool allows you to mirror around a point, line or plane depending whether you pick 1, 2 or 3 points.
                  The most usual is around the plane from 3 points - that way you can Mirror about any plane, not just the axial planes and the mirrored version is related to the plane in the reverse manner to the original selection. To do it with Flip/Scale would involve one or more Rotate steps too.
                  The other benefit of Mirror is that [like CAD tools] on completion of the mirroring you can choose to keep or delete the original selection - useful when modeling in symmetrical parts etc as the 'copy' part is built-in for you...

                  TIG

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

                    @tig said:

                    The other benefit of Mirror is that [like CAD tools] on completion of the mirroring you can choose to keep or delete the original selection - useful when modeling in symmetrical parts etc as the 'copy' part is built-in for you...

                    Although this is not hard with the native tools either;

                    1. Copy the "to-be-mirrored" entity
                    2. Do the mirroring (flip or scale)
                    3. Paste in place the original entity

                    Gai...

                    1 Reply Last reply Reply Quote 0
                    • TIGT Offline
                      TIG Moderator
                      last edited by

                      But awkward with non-axial flips...

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        tfdesign
                        last edited by

                        I think it's got to be the sado-masochistic mathematician in me! (incidentally, my old man is a Cambridge-educated topologist! πŸ˜‰ ) I like that "now how can I do this without a plugin?". πŸ˜† Sounds good Tig. Thanks for the reply. I'll try and get round to having a go with this tool some time in the not too distant future. πŸ˜„

                        Meanwhile, I have a table to build! πŸ˜‰

                        Tom

                        My book "Let's SketchUp!" Download from here

                        1 Reply Last reply Reply Quote 0
                        • T Offline
                          tfdesign
                          last edited by

                          @tig said:

                          But awkward with non-axial flips...

                          Yes. Do-able, but I can see that it would only be possible if one was good at remembering strings of numbers, repetitions and angles? 😲 πŸ˜‰

                          Plugins are best then? πŸ˜„

                          My book "Let's SketchUp!" Download from here

                          1 Reply Last reply Reply Quote 0
                          • jeff hammondJ Offline
                            jeff hammond
                            last edited by

                            @tfdesign said:

                            @tig said:

                            But awkward with non-axial flips...

                            Yes. Do-able, but I can see that it would only be possible if one was good at remembering strings of numbers, repetitions and angles? 😲 πŸ˜‰

                            Plugins are best then? πŸ˜„

                            you can do it without knowing any angles etc. but it's a pita.. this video makes it look easier than it really is because i didn't include the 5-10 minutes i spent figuring out the right moves (and have spent that same 5-10 minutes multiple times doing this in real drawings).. mirror.rb is a blessing πŸ‘ β˜€

                            [flash=660,405:37jyqytp]http://www.youtube.com/v/Fsr9X4yir2Y?fs=1&hl=en_US&rel=0&color1=0x2b405b&color2=0x6b8ab6&border=1[/flash:37jyqytp]

                            dotdotdot

                            1 Reply Last reply Reply Quote 0
                            • M Offline
                              mac1
                              last edited by

                              Change in SU 7. Place axis then scale??

                              1 Reply Last reply Reply Quote 0
                              • G Offline
                                GWD
                                last edited by

                                TIG,

                                Thanks very much for the outline closer!!!!!! I can use this code in some of mine scripts.

                                regards,

                                Guy

                                1 Reply Last reply Reply Quote 0
                                • OxerO Offline
                                  Oxer
                                  last edited by

                                  Hello!
                                  Mirror is one of the plugins i use most, but with SU8, the plugin Mirror 3.3 don't work for me. I use SU 8 spanish on Mac OSX Snow Leopard, one message appears in Console window, with SU7 and Mirror 3.1 the plugin worked fine.
                                  This is the Error:
                                  Console Error Message

                                  I hope you that you help me,
                                  Thanks!

                                  "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
                                  • L Offline
                                    leminilab
                                    last edited by

                                    @diego-rodriguez said:

                                    this is the error.
                                    I use
                                    windows xp sp3, in Spanish. sketchup sketchup 8 in Spanish and 7 in Spanish
                                    in the two versions generated BugSplats.

                                    the image is made with sketchup 8.
                                    although sketchup 7, BugSplats generates but does not generate error reporting in the console ruby

                                    [attachment=1:3ncjb9nt]<!-- ia1 -->file without zoom.gif<!-- ia1 -->[/attachment:3ncjb9nt]
                                    [attachment=0:3ncjb9nt]<!-- ia0 -->mirror 01.jpg<!-- ia0 -->[/attachment:3ncjb9nt]

                                    Hi !

                                    A little off topic but how did you do that animated gif ? It's looking good !

                                    Nicolas

                                    • "Live every day as if it were your last and then some day you'll be right."
                                    • "ThomThom rules!!!"
                                    1 Reply Last reply Reply Quote 0
                                    • TIGT Offline
                                      TIG Moderator
                                      last edited by

                                      sents=[]
                                          	ss.each{|e|sents.push(e)}
                                          	  copy_group=Sketchup.active_model.active_entities.add_group(sents)
                                            group_miner(copy_group.entities)###v3.1
                                              new_group=copy_group.copy
                                            group_miner(new_group.entities)###v3.1
                                      ...
                                      
                                      

                                      The last line is #266.
                                      It seems that there is nothing in the selection to copy... BUT if there is nothing then an earlier part of the code should trap it with an error, starting at line #109

                                      
                                          def activate
                                              ###Sketchup.send_action("showRubyPanel;")
                                              self.reset()
                                              ss=Sketchup.active_model.selection
                                              if ss.empty?
                                                  Sketchup;;set_status_text("Mirror; NO Selection !")###
                                          		UI.messagebox("Select Something BEFORE Using the Mirror Tool.")###v2.8
                                                  Sketchup.send_action("selectSelectionTool;")
                                                  return nil
                                              end
                                      ...
                                      
                                      

                                      Have you messed up the code with the translation ?

                                      TIG

                                      1 Reply Last reply Reply Quote 0
                                      • OxerO Offline
                                        Oxer
                                        last edited by

                                        @tig said:

                                        sents=[]
                                        >     	ss.each{|e|sents.push(e)}
                                        >     	  copy_group=Sketchup.active_model.active_entities.add_group(sents)
                                        >       group_miner(copy_group.entities)###v3.1
                                        >         new_group=copy_group.copy
                                        >       group_miner(new_group.entities)###v3.1
                                        > ...
                                        > 
                                        

                                        The last line is #266.

                                        It seems that there is nothing in the selection to copy... BUT if there is nothing then an earlier part of the code should trap it with an error, staring at line #109

                                        
                                        >     def activate
                                        >         ###Sketchup.send_action("showRubyPanel;")
                                        >         self.reset()
                                        >         ss=Sketchup.active_model.selection
                                        >         if ss.empty?
                                        >             Sketchup;;set_status_text("Mirror; NO Selection !")###
                                        >     		UI.messagebox("Select Something BEFORE Using the Mirror Tool.")###v2.8
                                        >             Sketchup.send_action("selectSelectionTool;")
                                        >             return nil
                                        >         end
                                        > ...
                                        > 
                                        

                                        Have you messed up the code with the translation ?

                                        I haven't done changes in the code only i have translated the UI.messagebox and the text of the popups windows, i have probe with the mirror 3.3 original version (english) and don't works too.
                                        I don't know if there is a conflict with others plugins.

                                        "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
                                        • TIGT Offline
                                          TIG Moderator
                                          last edited by

                                          πŸ˜•
                                          Can you try it with the 'Ruby Console' open and post all error messages...
                                          This is a puzzle... πŸ˜•

                                          TIG

                                          1 Reply Last reply Reply Quote 0
                                          • OxerO Offline
                                            Oxer
                                            last edited by

                                            I have found the error!
                                            There is a conflict with SketchyPhisics 3.1, remember i work on Mac OSX.
                                            Excuse me, it not was a problem in the plugin there were a conflict.
                                            Thanks TIG‘‘

                                            "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
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 10
                                            • 11
                                            • 2 / 11
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement