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

    [Plugin] Material Tools

    Scheduled Pinned Locked Moved Plugins
    123 Posts 43 Posters 148.2k Views 43 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.
    • Rich O BrienR Offline
      Rich O Brien Moderator
      last edited by

      I think the problem is with Recurve? i'm getting all sorts of errors when I right click

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

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

        Problem isn't Recurve as I've removed it....

        Error; #<NameError; undefined local variable or method `ents' for TT;;Plugins;;MaterialTools;Module>
        C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/tt_material_tools.rb;270;in `remove_all_from_selection'
        C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/tt_material_tools.rb;256;in `each'
        C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/tt_material_tools.rb;256;in `remove_all_from_selection'
        C;/Program Files (x86)/Google/Google SketchUp 
        

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

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

          Stop breaking things!

          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 Offline
            Rich O Brien Moderator
            last edited by

            They call me Mr.Glass

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

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

              As a DIY quick-fix - change
              if ents.respond_to?( :back_material )
              to
              if e.respond_to?( :back_material )

              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 Offline
                Rich O Brien Moderator
                last edited by

                Sorted πŸ‘

                Now I'll break something else

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

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

                  Go'n run with scissors or something...

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

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

                    I like find this plugin very useful, especially the possibility to transfer the instance material to the faces inside the group or component, but that results in the backfaces also being painted. But sometimes I just want all the instance material gone as I sometimes accidentally assign a material to a group or component and later I can't find it any more. This is especially annoying if the material is not used any more in the rest of the model but remains in the material browser and doesn't get purged. I tried removing all backface materials after transferring the instance material but that resulted in also losing all backface materials I assigned intentionally. Is there a way to simply remove all instance materials?

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

                      Hello sr thomthom.
                      I think I'm doing something wrong or is there a bug in the plugin.
                      1 - Remove From Selection.
                      Error: # undefined local variable or <NameError: ents' method for TT::Plugins::MaterialTools:Module> C: / Program Files / Google / Google SketchUp 8/Plugins/tt_material_tools.rb: 270: in remove_all_from_selection '
                      πŸ˜„ / Program Files / Google / Google SketchUp 8/Plugins/tt_material_tools.rb: 256: in each ' C: / Program Files / Google / Google SketchUp 8/Plugins/tt_material_tools.rb: 256: in remove_all_from_selection '
                      πŸ˜„ / Program Files / Google / Google SketchUp 8/Plugins/tt_material_tools.rb: 62
                      add
                      Groups only erases materials or components. If you edit a component or group and select faces and edges were deleted material.
                      If I select faces or edges that are not in a group or component, the materials are not deleted.
                      If I select a group / component, which contains within groups / components nested, the materials are not deleted.
                      if I apply a material to a group / component and other material to the face that contains this group, only delete the material applied inside to the faces in the group / component

                      2 - Remove Specific Material
                      only works with colors. Textured materials does not work.
                      In addition, when shown the list of materials to remove, it only shows the name of the texture of the material, rather than the name of the material

                      is possible to solve this problem.
                      Thank you very much for your time

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

                        Is this the latest version 2.2.0?

                        if so it looks to me like you have some code 'missing' in the script - you haven't opened the .rb script with a wordprocessor and then saved or edited it with say Notepad.exe ??
                        Line #270 is actually about if e.respond_to?( :back_material ) while the offending error for ' ents' should occur earlier in line #260 where it first appears as parent.entities.each { |ents| or the next three lines #262/263/264 - so there's obviously something wrong here...
                        Try reinstalling the tool and come back...

                        TIG

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

                          tig thanks for your reply.
                          But reinstalling the plugin and the library. The plugin still generates the same error.
                          I use sketchup in Spanish, has something to do this?

                          Error: #<NameError: undefined local variable or method ents' for TT::Plugins::MaterialTools:Module> C:/Archivos de programa/Google/Google SketchUp 8/Plugins/tt_material_tools.rb:270:in remove_all_from_selection'
                          C:/Archivos de programa/Google/Google SketchUp 8/Plugins/tt_material_tools.rb:256:in each' C:/Archivos de programa/Google/Google SketchUp 8/Plugins/tt_material_tools.rb:256:in remove_all_from_selection'
                          C:/Archivos de programa/Google/Google SketchUp 8/Plugins/tt_material_tools.rb:62
                          C:/Archivos de programa/Google/Google SketchUp 8/Plugins/tt_material_tools.rb:270:in `call'
                          C:/Archivos de programa/Google/Google SketchUp 8/Plugins/tt_material_tools.rb:270

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

                            I think we must wait for thomthom himself to reply.
                            As far as I can see you can't get that error with a correctly installed script πŸ˜•

                            TIG

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

                              I have an update for this in an unreleased version. I'll get it online soon.

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

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

                                many, thank you very much. is a very useful tool

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

                                  Version 2.5.1

                                  # 2.5.1 - 29.06.2011
                                  #    * Fixed typo bug in Remove From Selection.
                                  #
                                  # 2.5.0 - 15.12.2010
                                  #    * Paint roof.
                                  #
                                  # 2.4.0 - 15.12.2010
                                  #    * Ensure Unique Filenames.
                                  #
                                  # 2.3.0 - 31.10.2010
                                  #    * Remove All Textures.
                                  

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

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

                                    thom excellent update.
                                    still not cleared yet assigned to groups of materials / components.
                                    You can correct this?


                                    Sin tΓ­tulo.skp

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

                                      @jorge2011 said:

                                      thom excellent update.
                                      still not cleared yet assigned to groups of materials / components.
                                      You can correct this?

                                      ? You're still getting errors?

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

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

                                        no, no errors.
                                        but does not remove the materials assigned to a group.
                                        if you remove the materials assigned to faces and edges contained within the group.
                                        see the file

                                        and
                                        Remove Specific Material
                                        only works with colors. Textured materials does not work.
                                        In addition, when shown the list of materials to remove, it only shows the name of the texture of the material, rather than the name of the material

                                        is possible to solve this problem.
                                        Thank you very much for your time

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

                                          Version 2.5.2
                                          Fixed bug in Remove From Selection

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

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

                                            Thank you very much. πŸ˜„

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

                                            Advertisement