sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Update | Sketchucation Tools 5.0.8 released with licensing improvements and bugfixes Download

    [Plugin] Front Face - 1.2

    Scheduled Pinned Locked Moved Plugins
    57 Posts 29 Posters 88.4k Views 29 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.
    • B
      Ben Ritter
      last edited by

      Tomasz, thank you very much.

      Ben

      1 Reply Last reply
      Reply Quote 0
      • A
        alz
        last edited by

        Very useful!

        Could you add a "hold down left mouse" to have it be active? This would prevent accidental flipping when simply moving your mouse around in the scene.

        Another possibility -- when being used, toggle to a different Style (say Gray = front face, Red = back face).

        πŸ˜„

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

          @alz said:

          Could you add a "hold down left mouse" to have it be active? This would prevent accidental flipping when simply moving your mouse around in the scene.

          That or change the cursor to something different while active.

          http://www.coroflot.com/boofredlay

          1 Reply Last reply
          Reply Quote 0
          • T
            tomasz
            last edited by

            @unknownuser said:

            That or change the cursor to something different while active.

            Good idea Boofredlay - added to the 'TO DO' list.

            @alz said:

            Could you add a "hold down left mouse" to have it be active? This would prevent accidental flipping when simply moving your mouse around in the scene.

            I think your finger will fail with big scenes to work correctly for a longer period πŸ˜„,
            but... I could turn it on permanently when a LMB would be pressed longer then.. say 5 sec.

            @alz said:

            Another possibility -- when being used, toggle to a different Style (say Gray = front face, Red = back face).

            I prefer let user decide what monochrome style looks like.

            Thanks
            Tomasz

            Author of Thea Render for SketchUp

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

              @unknownuser said:

              Sorry but how call the Tig Orient.face.rb?
              In what Menu, or with what Click mouse?
              I suppose with the Ruby console?
              How must be the selection? Facets selected? Group Selected?...

              I obtain that with the ruby Console with "face.orient_faces" or "orient.face" input in the console

              Error; #<NameError; (eval);495; undefined local variable or method `face' for main;Object>
              > (eval);495
              

              So I am perplex πŸ˜‰

              As the guidance notes at the start say...

              It matches the orientation of a face to any connected 'co-edged' faces.
              It mimics SketchUp's "Orient Faces" Tool.
              It can sometimes produce slightly different results when more than two
              connected faces share a common edge. Its results are equally logical,
              and who's to say how they should orient anyway ?
              Ideas on how to duplicate the built-in tool are welcomed...
              You can call it from other scripts thus: face.orient_faces

              i.e. if you put the script in the Plugins Folder it creates a new method - a 'Face' now has an extra method called "orient_faces"

              Let's say you have a face that's been chosen in your script which has been given the variable 'face', then adding in the line

              face.orient_faces
              

              will make any other faces that adjoin it [or its neighbours etc] flip to match that chosen face's orientation (normal) - just like the built-in 'orient faces' does in the right-click context-menu when you select a face...

              .

              TIG

              1 Reply Last reply
              Reply Quote 0
              • D
                Daniel Bouchard
                last edited by

                Thanks Tomasz for this great plugin. πŸ‘

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

                  Any progress on changing the cursor Tomasz?
                  I am using it today and was just curious. Handy tool BTW.

                  http://www.coroflot.com/boofredlay

                  1 Reply Last reply
                  Reply Quote 0
                  • GaieusG
                    Gaieus
                    last edited by

                    Hi Tomasz,

                    Thanks for this gem!

                    One question (or maybe a feature request) - after reversing the face (and successfully applying the back face material on the front face), could the plugin also delete the material applied on the back face? I.e. to paint the back face with the default (grey/blue) material.

                    OR - alternatively - does anyone know a plugin that would delete all materials applied to back faces only?

                    Gai...

                    1 Reply Last reply
                    Reply Quote 0
                    • thomthomT
                      thomthom
                      last edited by

                      @gaieus said:

                      OR - alternatively - does anyone know a plugin that would delete all materials applied to back faces only?

                      I could add that to my Remove Marerials plugin.

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

                      1 Reply Last reply
                      Reply Quote 0
                      • Rich O BrienR
                        Rich O Brien Moderator
                        last edited by

                        Thom,

                        That'd be an excellent feature and much appreciated πŸ‘

                        Rich

                        Download the free D'oh Book for SketchUp πŸ“–

                        1 Reply Last reply
                        Reply Quote 0
                        • GaieusG
                          Gaieus
                          last edited by

                          Yes, Thom, that would be very handy.

                          But of course, such a (to me very sophisticated but for you, guys, probably easy) modification for this FrontFace Plugin would also be handy - so that you need not fiddle with two different plugins (although the very simplicity of this plugin is also charming - no settings, no hassle with dialogs - just "brush" over the model and voilΓ‘)

                          Gai...

                          1 Reply Last reply
                          Reply Quote 0
                          • T
                            tomasz
                            last edited by

                            Hi Gaieus,
                            The option of having back material reset to default looks nice.
                            I am currently terribly busy, but Christmas is coming.
                            I will put it on my list.

                            Tomasz

                            Author of Thea Render for SketchUp

                            1 Reply Last reply
                            Reply Quote 0
                            • thomthomT
                              thomthom
                              last edited by

                              πŸ˜„
                              I'd added the feature to Remove Materials. Will post it later.

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

                              1 Reply Last reply
                              Reply Quote 0
                              • T
                                tomasz
                                last edited by

                                @unknownuser said:

                                Any progress on changing the cursor Tomasz?
                                I am using it today and was just curious. Handy tool BTW.

                                Checked the API. It looks easy...

                                Author of Thea Render for SketchUp

                                1 Reply Last reply
                                Reply Quote 0
                                • GaieusG
                                  Gaieus
                                  last edited by

                                  Guys, I am amazed at the helpfulness of all of you.

                                  Once I win this combpetition, I hope you will all come and enjoy the party.
                                  πŸ˜‰

                                  (BTW I am planning a difficult plugin - you will hate me...)

                                  Gai...

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

                                    In the meanwhile, before it gets written into something better - to make ALL rear faces in the model [and faces inside definitions too] have the default material on their backs, just copy and paste this line of code into the Ruby Console - I compressed it into one line for ease of pasting...

                                    m=Sketchup.active_model;es=m.entities;es.each{|e|e.back_material=nil if e.class==Sketchup;;Face};ds=m.definitions;ds.each{|d|d.entities.each{|e|e.back_material=nil if e.class==Sketchup;;Face}};return nil
                                    

                                    TIG

                                    1 Reply Last reply
                                    Reply Quote 0
                                    • T
                                      tomasz
                                      last edited by

                                      Ok. I said I was busy, but I had to refresh my memory, how to write a Tool in SU, so played with FrontFace and here we go:
                                      Version 1.2 is ready.

                                      Greetings
                                      Tomasz

                                      Author of Thea Render for SketchUp

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

                                        Beautiful. Thank you. πŸ‘

                                        http://www.coroflot.com/boofredlay

                                        1 Reply Last reply
                                        Reply Quote 0
                                        • E
                                          Ecuadorian
                                          last edited by

                                          @tig said:

                                          to make ALL rear faces in the model [and faces inside definitions too] have the default material on their backs, just copy and paste this line of code into the Ruby Console - I compressed it into one line for ease of pasting...

                                          m=Sketchup.active_model;es=m.entities;es.each{|e|e.back_material=nil if e.class==Sketchup;;Face};ds=m.definitions;ds.each{|d|d.entities.each{|e|e.back_material=nil if e.class==Sketchup;;Face}};return nil
                                          

                                          TIG, this is probably one of the most useful pieces of code ever. Thank you very much. πŸ‘

                                          -Miguel Lescano
                                          Subscribe to my house plans YouTube channel! (30K+ subs)

                                          1 Reply Last reply
                                          Reply Quote 0
                                          • FletchF
                                            Fletch
                                            last edited by

                                            TIG, does it also make all groups and components have the default material? (in case one or two got accidentally painted somehow?)

                                            Fletch
                                            3D Modeling addict. Former owner/developer of Twilight Render. sleepinggiantvisual.com

                                            1 Reply Last reply
                                            Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better πŸ’—

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement