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.
    • Mistro11M Offline
      Mistro11
      last edited by

      You have no idea how many times I got frustrated doing an offset and have to get in there and clean up the shape. Thanks TIG!

      i7-4930k @3.4/3.7GHz, 32Gb RAM, NVidia GTX 980Ti 6Gb, Windows 7 Pro 64bit
      Structural Integrity is Not Just Physical...It's in the Design and Purpose

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

        i'm all greyed out (on two separate computers with different OS & different versions of sketchup on them).. will investigate more tomorrow

        (skindigo toolbar as reference to what the blue/blacks should look like)

        dotdotdot

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

          Merry Christmas to you too!

          Welcome to try [Thea Render](http://www.thearender.com/), Thea support | [kerkythea.net](http://www.kerkythea.net/) -team member

          1 Reply Last reply Reply Quote 0
          • J Offline
            Jim
            last edited by

            in cmd.set_validation_proc (and other places) you want to give the full scope of the suitable? method since it is being called from SketchUp outside the scope of your module.

            Also, combine the MF_ bits.

            
            cmd=UI;;Command.new('TIG.Smart_offset'){self.dialog()}
            if TIG;;Smart_offsetter.suitable?()
            MF_ENABLED
            else
            MF_DISABLED | MF_GRAYED
            end
            
            

            Hi

            1 Reply Last reply Reply Quote 0
            • cottyC Offline
              cotty
              last edited by

              Nice gift! Thank you and Merry Christmas! (Are we allowed to use it before 24.12.?)

              my SketchUp gallery

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

                Yeeeeeeees! Works like a charm now! 👍
                You are the Ruby's king! 😎

                And lucky because I can't more test your tricky plugin before the next year! 😄

                Super_TIG.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

                  @jim said:

                  in cmd.set_validation_proc (and other places) you want to give the full scope of the suitable? method since it is being called from SketchUp outside the scope of your module.

                  Also, combine the MF_ bits.

                  
                  > cmd=UI;;Command.new('TIG.Smart_offset'){self.dialog()}
                  > if TIG;;Smart_offsetter.suitable?()
                  > MF_ENABLED
                  > else
                  > MF_DISABLED | MF_GRAYED
                  > end
                  > 
                  

                  Thanks, knew it was obvious... This only affected MACs though ???
                  This was collecting dust on a virtual dust, until Pilou reminded me that I'd written it, so sometimes things get 'forgotten'... 😒

                  TIG

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

                    Here's v1.2 http://sketchucation.com/forums/viewtopic.php?p=446462#p446462
                    Further robustness in enabling/disabling/graying and suitable? tests [thanks to Jim!].
                    Seems to be especially for MACs 😄

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      Jim
                      last edited by

                      @tig said:

                      This only affected MACs though ???

                      I am not sure - it was just a guess and I don't have a Mac. Did you try it? 😆

                      Hi

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

                        I don't have a MAC either. 😕
                        Driven's reported issue was on a MAC and Jeff had other issues on a MAC too...
                        Hopefully this recent v1.2 [...20121221b.rbz !] will address the suitable? check and MF_ issues with the menus/toolbar...
                        It still works fine on a PC, but then v1.1 did too 😕 😄

                        TIG

                        1 Reply Last reply Reply Quote 0
                        • elmerE Offline
                          elmer
                          last edited by

                          Nice Christmas gift Tig, thanks a lot, it works perfectly on my Mac.

                          1 Reply Last reply Reply Quote 0
                          • alvisA Offline
                            alvis
                            last edited by

                            Thanx TIG

                            1 Reply Last reply Reply Quote 0
                            • guanjinG Offline
                              guanjin
                              last edited by

                              @tig said:

                              Here's v1.2 http://sketchucation.com/forums/viewtopic.php?p=446462#p446462
                              Further robustness in enabling/disabling/graying and suitable? tests [thanks to Jim!].
                              Seems to be especially for MACs 😄

                              TIG: Merry Christmas

                              TIG.gif

                              I come from China, is to learn

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

                                @tig said:

                                Here's v1.2 http://sketchucation.com/forums/viewtopic.php?p=446462#p446462
                                Further robustness in enabling/disabling/graying and suitable? tests [thanks to Jim!].
                                Seems to be especially for MACs 😄

                                Hi Tig
                                i'm still getting the same greyed out problem.
                                is there anything i can type in the console or ?? to help figure out what the problem is?
                                thanks

                                dotdotdot

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

                                  Is there no difference at all - if you have nothing preselected, or one edge preselected, or one face preselected, or lots of things [including some edges] preselected ?
                                  The menu/toolbar are only enabled if there's at least one face in the current selection.
                                  The context-menu only appears if there's at least one face in the current selection.

                                  Copy/paste+<enter> these into the Ruby Console and report the results:

                                  with nothing preselected TIG::Smart_offsetter.suitable?()
                                  with one edge preselected TIG::Smart_offsetter.suitable?()
                                  with one face preselected TIG::Smart_offsetter.suitable?()
                                  with lots of things [including some edges] preselected TIG::Smart_offsetter.suitable?()

                                  with one edge preselected TIG::Smart_offsetter.dialog()
                                  with one face preselected TIG::Smart_offsetter.dialog()

                                  😕

                                  TIG

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

                                    oops 😳
                                    it actually is working now..
                                    it's just the toolbar that remains greyed out at all times but the menu item becomes available once an appropriate selection has been made..

                                    (which, for me personally, is fine.. i more likely than not wont want the toolbar anyway.. i think id use it with a modifier key added to my offset shortcut)

                                    dotdotdot

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

                                      here are these results.. (since you took the time to write them.. i better take the time to report 😉 )

                                      @tig said:

                                      Copy/paste+<enter> these into the Ruby Console and report the results:

                                      with nothing preselected TIG::Smart_offsetter.suitable?()
                                      false

                                      with one edge preselected TIG::Smart_offsetter.suitable?()
                                      false

                                      with one face preselected TIG::Smart_offsetter.suitable?()
                                      true

                                      with lots of things [including some edges] preselected TIG::Smart_offsetter.suitable?()
                                      true (drew two squares and selected all)

                                      with one edge preselected TIG::Smart_offsetter.dialog()
                                      warning- PreSelect Face[s !]
                                      ruby - nil

                                      with one face preselected TIG::Smart_offsetter.dialog()
                                      (works as expected)

                                      dotdotdot

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

                                        uh.. not sure what the deal is but..

                                        upon entering all of that stuff in the console, the toolbar is now working
                                        😕

                                        [edit] but then.. i quit sketchup then relaunched and the toolbar is greyed out again regardless of selection.. the menu item is working though

                                        dotdotdot

                                        1 Reply Last reply Reply Quote 0
                                        • Chris FullmerC Offline
                                          Chris Fullmer
                                          last edited by

                                          voodoo. definitely voodoo at work here.

                                          Lately you've been tan, suspicious for the winter.
                                          All my Plugins I've written

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

                                            @chris fullmer said:

                                            voodoo. definitely voodoo at work here.

                                            ha.. that darn voodoo! 😄

                                            some more info:

                                            so here's what the deal with the toolbar is.. (in this example, i have 3 squares with faces drawn)

                                            •cmmdA (select all)
                                            •toolbar remains greyed out (menu item is live)
                                            •do something else (rotate, pan, etc)
                                            •toolbar becomes active
                                            •deselect all
                                            •toolbar remains active (menu item greys out)
                                            •do something else (switch tool, orbit, etc)
                                            •toolbar greys out

                                            so it appears, on mac, that something has to happen other than simply selecting in order to jump start the toolbar into updating it's state

                                            dotdotdot

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

                                            Advertisement