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

    Re: [Plugin] Another Mirror Ruby

    Scheduled Pinned Locked Moved Plugins
    31 Posts 15 Posters 37.0k Views 15 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.
    • A Offline
      arjunmax09
      last edited by

      @tig said:

      You only need one 'version' of the script.
      It is a self-contained file with everything it needs inside it [unless of course it's the toolbar version which then needs the button's image file too]

      Temporarily remove one of the scripts and see if the other one works...
      Also try opening the Ruby Console [Windows Menu] and type in [or easier copy/paste it]

      Sketchup.active_model.select_tool(MirrorTool.new)

      • <enter> key.

      Does the mirror tool then work or print an error etc ? πŸ˜•

      No ... it doesn't ....My older version of mirror plugin works just fine [i haven't tweaked it for the icon]... ..Can you upload your tweaked mirror script [ the one that uses the icon]so that i can use it????

      and... one more question..... I don't know ruby... is there a standard string that can be added to a ruby script so that i can make its custom toolbar or buttons work...??? I really hate scrolling through the plugins menu to get the one i want to use...

      when you fail at something....you haven't really failed...you've found one way the thing will not work out

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

        See my edited post...
        Have you removed the 'working version' and retried in case they are clashing ?
        I actually don't have a toolbar version as I always use a shortcut key to run it. 😒

        TIG

        1 Reply Last reply Reply Quote 0
        • A Offline
          arjunmax09
          last edited by

          @tig said:

          See my edited post...
          Have you removed the 'working version' and retried in case they are clashing ?
          I actually don't have a toolbar version as I always use a shortcut key to run it. 😒

          Yeah... i've removed my 'workin version' and retried ....... the problem persists....

          Actually this is what happening...

          The objects that i want to mirror get recreated as a group on the spot itself. suppose i have a cube and next to it a sphere is there....

          i select the sphere and cube using the shift key...

          next i click on mirror button

          next... i draw a line along green axis

          now... i draw my path across blue axis...

          ..... the two objects get grouped together on the spot...

          i can't seem to figure out the problem 😞

          when you fail at something....you haven't really failed...you've found one way the thing will not work out

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

            It groups them to do the mirroring then explodes the group back as it was - if it's working...

            I have decided I will add the tool button to the script for you and ensure it's working, then post it.

            Can you post the .png button image for me please... ❓
            EDIT: no need I found it...

            TIG

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

              Here's v3.2 with the toolbar option added.
              Otherwise the script's workings are unchanged.
              It's been fully tested and works when activated from the Menu, the Context-Menu, a Shortcut or the new Toolbar.
              If the MI.png file is not found with the .rb file then the toolbar is NOT made.
              You can activate this new 'Mirror' toolbar from View>Toolbars.
              Put these 2 files into 'Plugins' - you can omit MI.png [or rename] it if you don't want a toolbar.Mirror.rbMI.png
              πŸ€“
              EDIT: NOTE THAT THE LATEST VERSION IS NOW AVAILABLE HERE http://forums.sketchucation.com/viewtopic.php?p=276512#p276512

              TIG

              1 Reply Last reply Reply Quote 0
              • broomstickB Offline
                broomstick
                last edited by

                I think a variant of the Mirror Plugin, should consider creating a toolbar with 3 buttons: each one would perform the mirror simmetrically to one of the axis, asking before the operation to click on the plane to define the start of the mirror line.

                It would work similarly to rot90 plugin, but for the mirror.

                I hate myself for not being able to code, otherwise I'd do it myself!

                1 Reply Last reply Reply Quote 0
                • I Offline
                  ideas_arte
                  last edited by

                  Thank you very much, a basic tool and very useful!

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

                    Thank you...works great, once I figured out to "right-click.save as" the image. 😍

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

                      Thanks for the script. However, I get a Bug Splat when I do not erase the original. I do not have this problem with SU 6. I'm running SU7.

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        dedmin
                        last edited by

                        Bugsplat with Outliner open! SU7.

                        1 Reply Last reply Reply Quote 0
                        • L Offline
                          lapx
                          last edited by

                          I'm getting the bugsplat as well and I'm using Su6. It worked fine before. But not working these days?
                          It occurs when answering "no" to erase original. BUGSPLAT! everytime.

                          1 Reply Last reply Reply Quote 0
                          • L Offline
                            lapx
                            last edited by

                            There error occurs with all three scrpits that I have: mirror 3[1].0rb , mirror2.8.rb and mirror.rb.
                            I tested each one while temporarily renaming the others and each one failed with a bugsplat.
                            Might there be conflicts with some other script(s)? 😲

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              dedmin
                              last edited by

                              Can the Bugsplat when Outliner is open be fixed? I always forget about this and crash SketchUP!

                              2010-10-03_152559.jpg

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

                                You have to 'roll-up' the Outliner window to avoid a splat - it's a known issue with Sketchup itself... not any tool per se... You should never use any tool that makes and deletes instances in succession with the Outliner 'rolled-down'...
                                I have posted an updated version here http://forums.sketchucation.com/viewtopic.php?p=276512#p276512

                                Don't worry about the 'group.make_unique is deprecated...' error messages - it's a known mistake in the API error reporting, and Thomthom has been pressing to get it removed - you DO need to use group.make_unique in some circumstances...

                                TIG

                                1 Reply Last reply Reply Quote 0
                                • D Offline
                                  dedmin
                                  last edited by

                                  I see - thanks TIG!

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

                                    and the great autocad mirror comes to sketchup!!! whoa..yippee!!

                                    Signature removed by SCF Admin

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

                                    Advertisement