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

    [Plugin] Front Face - 1.2

    Scheduled Pinned Locked Moved Plugins
    57 Posts 29 Posters 80.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.
    • pilouP Offline
      pilou
      last edited by

      Does not possible to have the possibility to make "all selection" of the front face with the first facet choosen for avoid to paint all the other same facets one by one?
      Seems that will be very more useful and not a big modification of this cool plug β˜€
      SKP linked for test πŸ˜‰


      painful.jpg


      rosace.zip

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

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

        @unknownuser said:

        I intend to improve tool's efficiency by reversing all back faces in the whole surface that a face belongs to - subject to feedback from users πŸ˜†

        Thanks for a test file πŸ˜„

        Author of [Thea Render for SketchUp](http://www.thearender.com/sketchup)

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

          Look on Didier's site for my 'orient faces' script...

          TIG

          1 Reply Last reply Reply Quote 0
          • C Offline
            cyan.archnet
            last edited by

            a BIG THANKS to you!!!

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

              @tig said:

              Look on Didier's site for my 'orient faces' script...

              Thanks TIG! Downloaded. πŸ˜„

              @cyan.archnet said:

              a BIG THANKS to you!!!

              You welcome. It can be handy for large, urban scale models, modelled by someone who had no clue about rendering application requirements.

              Author of [Thea Render for SketchUp](http://www.thearender.com/sketchup)

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

                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 πŸ˜‰

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

                1 Reply Last reply Reply Quote 0
                • P Offline
                  Panga
                  last edited by

                  Thanks for this script...saved time'll be well used !!

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

                    @ Tig thx for your efforts but I miss something 😳
                    Don't worry I will ask on the French forum that it is not clear for me πŸ˜‰

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

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

                      Pilou,
                      What TIG has sent is a help for me. The 'orientface' script contains useful method that I can add into my plugin, which will happen soon if everything will go fine. πŸ˜„

                      @panga said:

                      Thanks for this script...saved time'll be well used !!

                      πŸ‘ πŸ˜„

                      Tomasz

                      Author of [Thea Render for SketchUp](http://www.thearender.com/sketchup)

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

                        I am testing your method TIG and it is working fine for Pilou's ball, but it is not dealing well with urban model I have.
                        I have two ideas how to modify your method to suit FrontFace plugin better.

                        1st - limit connected faces only to those with soften edge.
                        2nd - limit to faces at lower angle then 90 deg.

                        Will try and see.

                        Pilou if you want to see how it works modify this method in frontface.rb as follows:

                        def reverseFace(face)
                        	face.reverse!
                        	face.material, face.back_material = face.back_material, face.material
                        	face.orient_faces
                        end
                        

                        Tomasz

                        Author of [Thea Render for SketchUp](http://www.thearender.com/sketchup)

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

                          Thanks for this. It will prove to be very useful.

                          http://www.coroflot.com/boofredlay

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

                            @ Tomasz
                            I have also try the original SU Internal "Orient face" and it works fine also with my ball with only one click πŸ˜‰
                            Your works also after the modification but you must over flight all the facets β˜€

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

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

                              Tomasz, thank you very much.

                              Ben

                              1 Reply Last reply Reply Quote 0
                              • A Offline
                                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 Offline
                                  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 Offline
                                    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](http://www.thearender.com/sketchup)

                                    1 Reply Last reply Reply Quote 0
                                    • TIGT Offline
                                      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 Offline
                                        Daniel Bouchard
                                        last edited by

                                        Thanks Tomasz for this great plugin. πŸ‘

                                        1 Reply Last reply Reply Quote 0
                                        • boofredlayB Offline
                                          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 Offline
                                            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
                                            • 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