sketchucation logo sketchucation
    • Login
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [Plugin] TIG-Smart_offset

    Scheduled Pinned Locked Moved Plugins
    143 Posts 55 Posters 164.8k Views 54 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.
    • TIGT Offline
      TIG Moderator
      last edited by

      OK !
      The current tool [v1.3] works just fine for PCs... but it baulks on a MAC with some of the enable/grayed code for the toolbar button - which is weird... ๐Ÿ˜•

      The editing of the three lines of code in the script to disable them with a leading #... as indicated in the preceding posts... will fix it for MAC users...

      I'll see if I can get a version working properly for PC and MAC without this cludge ! ๐Ÿ˜ž

      In the meantime, please report any issues...

      Merry Xmas ๐Ÿ˜„
      Apocalypse averted! ๐Ÿ˜›
      Phew! ๐Ÿ˜‰

      TIG

      1 Reply Last reply Reply Quote 0
      • simon le bonS Offline
        simon le bon
        last edited by

        Thank you for this one really "smart" dear TIG +++
        We were used to the quirks of the native offset tool as a fatality. It is a surprise to realize that it was not the case ๐Ÿ˜ฎ ๐Ÿ˜ฎ ๐Ÿ˜ฎ

        Merry Christmas to you too ๐Ÿ˜

        Simon

        http://i274.photobucket.com/albums/jj245/Spendauballet/SketchUp/TIG-Smart_offsetv1320121221.jpg

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

          @tig said:

          I'll see if I can get a version working properly for PC and MAC without this cludge ! ๐Ÿ˜ž

          I posted this on the first page and it will work on both?
          set validation doesn't seem to work on macs on Toolbars

          cmd2=UI;;Command.new('TIG.Smart_offset'){self.dialog()}
          cmd2.small_icon=File.join(dir, 'TIG-Smart_offset.png')
          cmd2.large_icon=File.join(dir, 'TIG-Smart_offset.png')
          toolbar=UI;;Toolbar.new('TIG.Smart_offset')
          toolbar.add_item(cmd2)
          

          john

          learn from the mistakes of others, you may not live long enough to make them all yourself...

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

            Here's v1.4 http://sketchucation.com/forums/viewtopic.php?p=446462#p446462
            It now only applies toolbar enabled/grayed [validation] on PCs; on a MAC the toolbar button is always enabled, but when you attempt to use it without a suitable preselection there's an error-messagebox...
            This now means PC and MAC users should have a quite similar usage ๐Ÿ˜„

            TIG

            1 Reply Last reply Reply Quote 0
            • DareDevilD Offline
              DareDevil
              last edited by

              Thanks for this advanced tool ! ๐Ÿ‘ Nice to solve round edge offset.

              But I have a two requests :
              First, (crossing post with Pilou ๐Ÿ˜‰) I think when the offset cross itself, there is a chance it make a hole. Your Smart Offset fill all the shape. It will be cool if your toll can solve this case.
              offset.jpg
              The second is a bonus setting to create a round offset like this :
              round-offset.jpgI don't know if it's "easy" to make this kind of function, perhaps crossing your offset tool and your Chamfer tool from 2D Tools.

              1 Reply Last reply Reply Quote 0
              • pilouP Offline
                pilou
                last edited by

                From Daredevil
                Original
                Smart_Offest
                Normal result wished

                http://sketchucation.com/forums/download/file.php?id=98395&mode=view/rokbox.jpg

                Frenchy Pilou
                Is beautiful that please without concept!
                My Little site :)

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

                  DareDevil/Pilou

                  I had been following your discussions about this in the French forum...
                  I know what you are asking for, but it is very complicated to come up with an algorithm to remove the 'hole' - it's easy for us to 'see' what's to go and what's to stay, but in code it is very complicated to ensure that the unwanted parts are removed.
                  If anyone has any ideas [even seemingly silly ones?] I am open to suggestions...

                  On the 'rounded corner' matter... This effectively a 'multi-fillet' tool.
                  The main issue I see in you'd need to select just the edges to fillet and not a face, otherwise in the case you illustrated the already curved part would potentially get 'multi-filleted'...

                  That's x6 clicks to select the ones needed with a new tool - or x2 to select face & its-edges, then x2+Ctrl+Shift to remove the face and the unwanted arc [or +x1 click to make a fence, e.g. for an 'arc' made from exploded edges...] - say x4 or x5...
                  OR using the existing 2dFillet tool x2 per vertex = x10 clicks.
                  But are your few extra clicks worth my lost brain-cells needed to contrive this wonder ?

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • pilouP Offline
                    pilou
                    last edited by

                    For the multi fillet
                    Surely not but don't forget the pleasure to find the solution! ๐Ÿ˜‰

                    Frenchy Pilou
                    Is beautiful that please without concept!
                    My Little site :)

                    1 Reply Last reply Reply Quote 0
                    • N Offline
                      numerobis
                      last edited by

                      WOW!!! This is really helpful! Great! Thank you very much!!! ๐Ÿ˜Ž
                      And Merry Christmas to you too! ๐Ÿ˜„

                      1 Reply Last reply Reply Quote 0
                      • takesh hT Offline
                        takesh h
                        last edited by

                        "Smart TIG" offsets indeed!
                        mcs.jpg

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

                          @unknownuser said:

                          For the multi fillet
                          Surely not but don't forget the pleasure to find the solution! ๐Ÿ˜‰

                          that pleasure would be nothing compared to the pleasure experienced by figuring this one out ๐Ÿ˜†

                          the inner pie was offset on both.. sketchup offset gives the result on the left.. the right one is how it should be.. (and besides.. TIG-Genius_offset.rb has a nice ring to it : )

                          dotdotdot

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

                            TIG, marry Xmas and thank you for this great present.
                            P.S. Could you take a look at attached?
                            P.P.S. a. It'd be neat if this tool was mode-less (I mean replicating the native SU behavior)
                            b. a number of offset option???


                            some segments offset wrong way

                            1 Reply Last reply Reply Quote 0
                            • jolranJ Offline
                              jolran
                              last edited by

                              Thank you TIG and Merry Christmas!

                              This one is a difficult task.

                              1 Reply Last reply Reply Quote 0
                              • JClementsJ Offline
                                JClements
                                last edited by

                                Thank you, Santa TIG. Milk and cookies will await you Xmas morning. ๐Ÿ˜„

                                Any chance of having:
                                1- a "Weld Offset" option button in the dialog
                                or
                                2- have the offset automatically welded if its source-edges were made from the circle, arch, polygon tools or previously "welded" edges?

                                Regards, John

                                John | Illustrator | Beaverton, Oregon

                                1 Reply Last reply Reply Quote 0
                                • M Offline
                                  matt.gordon320
                                  last edited by

                                  Thanks TIG! I don't think I could have asked for a better Christmas/World not ending present!

                                  1 Reply Last reply Reply Quote 0
                                  • PixeroP Offline
                                    Pixero
                                    last edited by

                                    Thanks for this great plugin.
                                    Would it be very difficult to have it work as an interactive tool also using the measurement toolbar instead of the pop up window so it can replace the native tool all together?

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

                                      Here's v1.5 http://sketchucation.com/forums/viewtopic.php?p=446462#p446462
                                      There's some code improvements and fewer fails etc.
                                      Some of the requested changes like 'holes', welded-outlines and VCB input will have to wait...

                                      Merry Xmas... ๐Ÿ˜„

                                      TIG

                                      1 Reply Last reply Reply Quote 0
                                      • fredo6F Offline
                                        fredo6
                                        last edited by

                                        @pixero said:

                                        Thanks for this great plugin.
                                        Would it be very difficult to have it work as an interactive tool also using the measurement toolbar instead of the pop up window so it can replace the native tool all together?

                                        Pixero,

                                        Then you can use Offset on Surfacewhich shows interactively the offset profile and allow to type the offset distance in the VCB. Still many glitches with convoluted contours however.

                                        Fredo

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

                                          Excess loop ...


                                          25-12-2012 10-52-04.png

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

                                            @blajnov

                                            Looking at ways of minimizing this, and offsetting curves as curves...
                                            Watch this space...

                                            TIG

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 3 / 8
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement