• Login
sketchucation logo sketchucation
  • Login
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

[Plugin] Multi face offset

Scheduled Pinned Locked Moved Plugins
49 Posts 15 Posters 65.1k 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.
  • R Offline
    remus
    last edited by remus 28 Jun 2009, 10:27

    multi face offset.jpg
    As per this request: http://forums.sketchucation.com/viewtopic.php?f=180&t=20193

    version 3 now up.

    You'll need offset.rb , courtesy of RickW.

    How it works:

    1. select the faces you want to offset
    2. Plugins->Multi face Offset
    3. Put in the distance
    4. ...and away you go

    Stuff id like to change but probably wont:
    -condense it in to one script with a choice of units. Added, sort of. See thoms post.


    multi face offset.rb

    http://remusrendering.wordpress.com/

    1 Reply Last reply Reply Quote 0
    • T Offline
      thomthom
      last edited by 28 Jun 2009, 10:34

      Why all the different versions? .to_l http://code.google.com/intl/nb/apis/sketchup/docs/ourdoc/numeric.html#to_l should take care of the units for you.

      Thomas Thomassen — SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 Reply Last reply Reply Quote 0
      • R Offline
        remus
        last edited by 28 Jun 2009, 10:41

        thats a rather handy tip, thanks.

        http://remusrendering.wordpress.com/

        1 Reply Last reply Reply Quote 0
        • T Offline
          thomthom
          last edited by 28 Jun 2009, 10:52

          Btw, .to_l might give different result from what you expect - depending on that object you convert.

          If you have a number - 30.to_l <- that means 30 inches.
          If you have a String - "30".to_l <- that means 30 model units, so if your model units are mm - then you'll get mm.

          And then with a string, users can override the model units. If the model units are mm and a user type "30m" you'll still get the correct length.

          Thomas Thomassen — SketchUp Monkey & Coding addict
          List of my plugins and link to the CookieWare fund

          1 Reply Last reply Reply Quote 0
          • R Offline
            rv1974
            last edited by 28 Jun 2009, 12:21

            Isn't windowizer already make the same ?

            1 Reply Last reply Reply Quote 0
            • T Offline
              thomthom
              last edited by 28 Jun 2009, 12:28

              Windowizer generates window components. This is just plain offset.

              Thomas Thomassen — SketchUp Monkey & Coding addict
              List of my plugins and link to the CookieWare fund

              1 Reply Last reply Reply Quote 0
              • G Offline
                Gaieus
                last edited by 28 Jun 2009, 12:37

                Remus, please, post some image in the first post so that we can have some clue what it does (and I can rip it for TDC, too)
                😉

                Gai...

                1 Reply Last reply Reply Quote 0
                • R Offline
                  rv1974
                  last edited by 28 Jun 2009, 13:12

                  @thomthom said:

                  Windowizer generates window components. This is just plain offset.

                  A "window component" is a pure abstraction. With glass inset =0 it makes the same plain offset+ additional options (i.e. materials assignment, edit and eraze in the future)

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    chango70
                    last edited by 28 Jun 2009, 13:29

                    Does the faces have to be on the same plane?

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      remus
                      last edited by 28 Jun 2009, 17:06

                      No, the faces can be on any plane. It wont work on curvy things, though.

                      As for windowizer doing the same thing, it probably can, and i think Fred06's offset on surface could do it as well, i just fancied writing it for a bit of practice.

                      http://remusrendering.wordpress.com/

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        DIEGO-RODRIGUEZ
                        last edited by 28 Jun 2009, 19:19

                        Thanks, but does not work.
                        Using sketchup 6 and 7, windowsxp SP3 in Spanish
                        If you have a solution, thank you

                        1 Reply Last reply Reply Quote 0
                        • R Offline
                          remus
                          last edited by 28 Jun 2009, 20:11

                          Could you open the ruby console (window->ruby console), run the script and post whatever comes up in the console?

                          http://remusrendering.wordpress.com/

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            DIEGO-RODRIGUEZ
                            last edited by 28 Jun 2009, 20:49

                            Error: #<NoMethodError: undefined method offset' for #<Sketchup::Face:0x5aad818>> C:/Archivos de programa/Google/Google SketchUp 6/Plugins/multi face offset.rb:23:in multi_face_offset'
                            C:/Archivos de programa/Google/Google SketchUp 6/Plugins/multi face offset.rb:21:in each' C:/Archivos de programa/Google/Google SketchUp 6/Plugins/multi face offset.rb:21:in multi_face_offset'
                            C:/Archivos de programa/Google/Google SketchUp 6/Plugins/multi face offset.rb:34
                            C:/Archivos de programa/Google/Google SketchUp 6/Plugins/multi face offset.rb:33:in `call'

                            1 Reply Last reply Reply Quote 0
                            • R Offline
                              remus
                              last edited by 28 Jun 2009, 21:17

                              most unusual, i'll have a look in to it and see if i can find out whats going on.

                              http://remusrendering.wordpress.com/

                              1 Reply Last reply Reply Quote 0
                              • TIGT Offline
                                TIG Moderator
                                last edited by 28 Jun 2009, 21:22

                                Remus - do you have RickW's [free from Smustard] 'offset.rb' and elcorto doesn't ?

                                TIG

                                1 Reply Last reply Reply Quote 0
                                • D Offline
                                  DIEGO-RODRIGUEZ
                                  last edited by 28 Jun 2009, 21:26

                                  Thanks Tig, I had no offset.rb.
                                  Now works fine

                                  1 Reply Last reply Reply Quote 0
                                  • R Offline
                                    remus
                                    last edited by 28 Jun 2009, 21:28

                                    I havent got it, but im guessing its included in some other script. Thanks for the pointer by the way, i'll add it to the 1st post.

                                    http://remusrendering.wordpress.com/

                                    1 Reply Last reply Reply Quote 0
                                    • TIGT Offline
                                      TIG Moderator
                                      last edited by 28 Jun 2009, 21:32

                                      It's the simple things that are often the most complicated !
                                      [¡Se trata de las cosas simples que a menudo son las más complicadas!]

                                      TIG

                                      1 Reply Last reply Reply Quote 0
                                      • pilouP Offline
                                        pilou
                                        last edited by 29 Jun 2009, 00:39

                                        And seems Protrude by Jim Foltz makes the same and more! 💚

                                        protrude.jpg

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

                                        1 Reply Last reply Reply Quote 0
                                        • R Offline
                                          remus
                                          last edited by 29 Jun 2009, 07:18

                                          A veritable Smörgåsbord of repeated functionality 😛

                                          http://remusrendering.wordpress.com/

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

                                          Advertisement