sketchucation logo sketchucation
    • Login
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Mirror.rb blues

    Scheduled Pinned Locked Moved Plugins
    19 Posts 11 Posters 6.2k Views 11 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.
    • H Offline
      Howard leslie
      last edited by

      Edson,
      See attached jpg
      Mirror Script - definitely one of the most useful Scripts around.
      (Thank you TIG).
      ...
      Usage:
      Yes, you can use 1,2 or 3 points.
      My Top Tip would be, always use 3 points.
      (certainly until you get used to it).
      That way results are more predictable.
      ...
      Just imagine where you would have to place a real mirror to get the desired result you want.
      Then go and click on 3 corners of that Mirror and Voila, geometry is perfectly mirrored.
      ...
      You don't need to actually draw the mirror as I've shown in the example !!! - just click the 3 points.
      ...
      Hope this helps

      Howard L'

      http://www.sketchucation.com/forums/scf/sas/Ruby/mirror_usage.jpg

      1 Reply Last reply Reply Quote 0
      • EdsonE Offline
        Edson
        last edited by

        @unknownuser said:

        Edson,

        You know that mirror.rb uses one, two, or three points to define the reflection, right?

        You never mentioned how many points you're using. So how many?

        -Gully

        hi gully,

        thanks for the help. yes, i knew that but must confess I had not understood it well and mixed everything up. i was trying to mirror the box by entering two points and pressing return. i never entered that third point. now i realize i was reproducing a procedure that would work in another application.

        as it happens with many scripts, the usage explanation at the beginning of mirror.rb is not very clear (or so it seemed to me). they way you explained it is very clear, though, and i could make it work exactly as you described it.

        thanks again.

        best wishes.

        edson

        edson mahfuz, architect| porto alegre β€’ brasil
        http://www.mahfuz.arq.br

        1 Reply Last reply Reply Quote 0
        • EdsonE Offline
          Edson
          last edited by

          @unknownuser said:

          Edson,
          Usage:
          Yes, you can use 1,2 or 3 points.
          My Top Tip would be, always use 3 points.
          That way results are more predictable.
          Just imagine where you would have to place a real mirror to get the desired result you want.
          Then go and click on 3 corners of that Mirror and Voila, geometry is perfectly mirrored.
          ...
          You don't need to actually draw the mirror as I've shown in the example !!! - just click the 3 points.
          ...
          Hope this helps

          Howard L'

          hey, howard

          wonderfully clear explanation. your mirror analogy is just perfect. thanks a lot.

          regards.

          edson

          edson mahfuz, architect| porto alegre β€’ brasil
          http://www.mahfuz.arq.br

          1 Reply Last reply Reply Quote 0
          • R Offline
            rhankc
            last edited by

            did you try the Render Plus Mirror tool? It works the way you expect.

            edit; nevermind,I forgot you were on a mac, just came to me.

            Hank

            1 Reply Last reply Reply Quote 0
            • EdsonE Offline
              Edson
              last edited by

              @rhankc said:

              did you try the Render Plus Mirror tool? It works the way you expect.

              edit; nevermind,I forgot you were on a mac, just came to me.

              thanks, anyway.

              edson

              edson mahfuz, architect| porto alegre β€’ brasil
              http://www.mahfuz.arq.br

              1 Reply Last reply Reply Quote 0
              • H Offline
                humanticnc
                last edited by

                I say thank you for the drawing
                humanticnc πŸ’­

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

                  Thank you Howard. I am just starting to use ruby scripts and was playing with the mirror.rb last night and getting some pretty strange results. Your pic explains it all. "A picture is worth a thousand words" Thanks from the snowy south. πŸ˜„

                  1 Reply Last reply Reply Quote 0
                  • boofredlayB Offline
                    boofredlay
                    last edited by

                    Is there a hope for this script to have a toolbar button sometime?
                    I am using it more and more and find myself hunting for the button too often.

                    Thanks.

                    http://www.coroflot.com/boofredlay

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

                      @unknownuser said:

                      Is there a hope for this script to have a toolbar button sometime?
                      I am using it more and more and find myself hunting for the button too often.

                      Thanks.

                      So much to do and so little time...

                      I have a shortcut key that mirrors selections... even quicker than a button ? (M=move but say ctrl+M=Mirror ?)

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • KrisidiousK Offline
                        Krisidious
                        last edited by

                        ctrl+M? wouldn't that = copy?

                        By: Kristoff Rand
                        Home DesignerUnique House Plans

                        1 Reply Last reply Reply Quote 0
                        • BurkhardB Offline
                          Burkhard
                          last edited by

                          try this one. πŸ˜‰ simple but works

                          Delete for clarifying

                          [http://www.ia-plus.de(http://www.ia-plus.de)]

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

                            @burkhard said:

                            try this one. πŸ˜‰ simple but works

                            And I thought Frank Wiesener, and then I did all of the hard work in the last three years developing "Mirror.rb" for you all to use freely.........
                            http://suwiki.org/suwiki/index.php?title=Mirror_%28plugin%29
                            [but link to old forum is now defunct.]
                            http://www.crai.archi.fr/RubyLibraryDepot/Ruby/EM/Mirror_31.rb

                            I know it doesn't have a (c) para or an 'acknowledge who done this' para at the start, BUT let's be nice - it's certainly got little that's wholly "Burkhard's"...
                            I fully acknowledge Frank's earlier input in my updates, at least you could acknowledge others work that's been included in yours - which quite frankly lifts whole lumps of code direct - you even have my ###v3.1 rem tags in yours...

                            Let's stay friends about this... but...

                            TIG

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

                              @unknownuser said:

                              ctrl+M? wouldn't that = copy?

                              No.
                              Pressing M and then Ctrl would Move+Copy IF you have M set to Move, but pressing ctrl + M together doesn't (at least not in the Pro version). I only used that key combination as an example !!! You can use any non-reserved key combo: shift+M, alt+M, ctrl+shift+alt+`, shift+spacebar etc etc... the list is only as restricted as your imagination...

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • Mike LuceyM Offline
                                Mike Lucey
                                last edited by

                                @unknownuser said:

                                as it happens with many scripts, the usage explanation at the beginning of mirror.rb is not very clear (or so it seemed to me). they way you explained it is very clear, though, and i could make it work exactly as you described it.

                                edson

                                Hi Edson,

                                Glad to see that you figured the procedure out with
                                the help of the great team we have here.

                                I totally agree with you when you say that many of the
                                Ruby Scripts brief explanations are not always clear.

                                I have mentioned this possible oversight before. The
                                ones that are accompanied with a short video, no matter
                                how complex become clear, whereas even simple Rubies
                                with just a couple of lines of text can sometimes stump
                                us initially.

                                I think this is an area of SketchUcation that we non
                                programmers can help out with i.e. producing procedural
                                videos !

                                Just a thought !

                                Mike

                                Support us so we can support you! Upgrade to Premium Membership!

                                1 Reply Last reply Reply Quote 0
                                • BurkhardB Offline
                                  Burkhard
                                  last edited by

                                  Appologize for fasten but uncompleted help. Be sure, it is not my script πŸ˜’
                                  For those who downloaded the mirrorbutton:

                                  Open the mirror.rb ( mirror.rb.txt ) and set at the top following.
                                  (If you like you can change everthing to mirror_31b by renaming in all three files.)
                                  Or wait till it was done by supporters.

                                  #----------------------------------------------------------------------------------

                                  Name : Mirror 3.0

                                  Description : Mirrors Selection at Point, Line or Plane

                                  Author : Originally by Frank Wiesner

                                  BUT NOTE from v2.6 it's been TIG tweaked and rewritten...###

                                  Usage : 1. Make Selection (Any Entites allowed)###

                                  2. Select 'Mirror Selection' from Plugins Menu

                                  or from Context Menu or your ShortCut Key

                                  3. If here's no Selection then dialog informs

                                  4. Pick a Point and RETURN to Mirror at the Point

                                  5. Pick a Second Point and RETURN to Mirror at the Line

                                  6. Pick a Third Point to Mirror at the Plane

                                  7. Final Option is Erase Original ?

                                  If Yes then Highlighting of Selection passes to Copies

                                  (Note: Erase is undo-able separately from the Mirroring)

                                  Type : Script

                                  History:

                                  3.1 21 Feb 2007 ### TIG make_unique tries to avoid rare bugsplats.

                                  3.0 05 Aug 2006 ### TIG Ending rewritten to avoid rare bugsplats.

                                  2.9 03 Aug 2006 ### TIG Start:commit loops to avoid rare bugsplats.

                                  2.8 26 July 2006 ### TIG re-tweaked - Rewritten to be MUCH simpler.

                                  Mirroring of ANY Entity Selection works properly.

                                  2.7 23 July 2006 ### TIG tweaked - Rewritten generally.

                                  Now processes Multiple selections of Groups and/or

                                  Components, but warns if any 'loose' (UnGrouped)

                                  Faces in Selection as they might lose any RePostioned

                                  Texture data, interfere etc.

                                  2.6 22 July 2006 ### TIG tweaked - Context menu added IF ONE group/compo.

                                  Warns about selection IF NOT ONE group/compo.

                                  Materials now preserved in mirrored copy BUT you will

                                  need to group selection to preserve material positioning

                                  - although this is define-able it is not find-able from

                                  the orignal face info !

                                  Final option to Erase of Original Group/Compo.

                                  2.5 (8.Jul.2oo5) - bugfix: faces with holes reduce now to a single face

                                  - major code rewrite (dropped @clondedObject hash, heavy

                                  use of groups during construction,...

                                  - more redundant constructions, but seems to be more robust

                                  - WARNING: POLYGONS DO NOT WORK VERY WELL

                                  2.4 (5.Jul.2oo5) - all unnecessary edges created by the add_faces_from_mesh()

                                  method are erased! faces with holes mirror now perfectly.

                                  2.3 (4.Jul.2oo5) - fixed "mirror at plane" error

                                  2.2 (2.Jul.2oo5) - works in group editting mode

                                  - prevents picking of identical points

                                  2.1 (1.Jul.2oo5) - fixed "undo group" bug

                                  - code cleanup

                                  2.0 (30.Jun.2oo5) - new tool-like interface

                                  1.4 (29.Jun.2oo5) - arc bug fixed

                                  - code simplified (clone_selection() removed)

                                  1.3 (24.Jun.2oo5) - can handle faces with holes in it (although more edges

                                  are drawn than nessesary)

                                  - correct orientation of mirrored faces

                                  - supports arcs (at least works for circles), curves and groups

                                  1.2 (20.Jun.2oo5) - axis and origin selection algorithm does not rely on tool tips any more.

                                  1.1 (19.Jun.2oo5) - fix coplanar point bug

                                  - better tooltips

                                  - supports mirror at lines (edges, axis, construction lines)

                                  - mirror-at-plane code simplified

                                  1.o (10.Jun.2oo5) - first version

                                  #----------------------------------------------------------------------------------

                                  Hacked by Burkhard for toolbar functionality

                                  #----------------------------------------------------------------------------------

                                  regards Burkhard

                                  [http://www.ia-plus.de(http://www.ia-plus.de)]

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

                                    Thanks Burkhard... I had had a bad day... It's at the very least polite to acknowledge the work of others in the headers of the script's text when you are using their code or ideas...

                                    It would have perhaps been easier to leave my original script alone and then link in you new toolbar/extension parts separately to that ?

                                    TIG

                                    1 Reply Last reply Reply Quote 0
                                    • BurkhardB Offline
                                      Burkhard
                                      last edited by

                                      It was a quick reaction without thinking about.
                                      You can do what you want...I'm not a coder, just hacking. It is the only way I know to make a toolbar.
                                      Apologize my unwise
                                      If there are some problems more, feel free to contact me via pm or mail ( you got my mail time ago)
                                      It is easier for me to communicate and clarify an issue.

                                      cu Burkhard

                                      [http://www.ia-plus.de(http://www.ia-plus.de)]

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

                                      Advertisement