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!
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Plugin request: set default color to back faces.

    Scheduled Pinned Locked Moved Plugins
    7 Posts 3 Posters 508 Views 3 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.
    • A Offline
      agamemnus
      last edited by

      I have a very specific need where I need to set only 2 parts of my model to have both a front and a back face color. A lot of my polygons have both a front and back face color where only one was actually intended, but for one reason or another the back face got colored.

      No idea how common this need is... probably not very.

      So.... my request is a plugin that removes the back-face color in a model and replaces it with the default.

      1 Reply Last reply Reply Quote 0
      • Didier BurD Offline
        Didier Bur
        last edited by

        Hi,

        Did you test this ? http://rhin.crai.archi.fr/rld/plugin_details.php?id=701

        DB

        1 Reply Last reply Reply Quote 0
        • A Offline
          agamemnus
          last edited by

          No, but from the description it doesn't seem to be what I need. Both the front and back have a color and everything is correctly oriented. I need the back color removed.

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

            My tool swaps materials and reverses the face...
            You want this much simpler one-liner

            Sketchup.active_model.selection.to_a.each{|e|e.back_material=nil if e.class==Sketchup;;Face}
            

            ... use with care... πŸ˜‰

            TIG

            1 Reply Last reply Reply Quote 0
            • A Offline
              agamemnus
              last edited by

              Hmm, that does work but it doesn't work for anything that is nested in groups...

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

                @agamemnus said:

                Hmm, that does work but it doesn't work for anything that is nested in groups...

                You never asked for it to! 😲
                This will process the entire model's contents including any groups or components, down through all nesting too...

                m=Sketchup.active_model; m.entities.each{|e|e.back_material=nil if e.class==Sketchup;;Face}; m.definitions.each{|d|next if d.image?; d.entities.each{|e|e.back_material=nil if e.class==Sketchup;;Face}}
                

                πŸ˜’

                TIG

                1 Reply Last reply Reply Quote 0
                • A Offline
                  agamemnus
                  last edited by

                  Thanks. πŸ˜„

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

                  Advertisement