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.
    • EarthMoverE Offline
      EarthMover
      last edited by

      Thom, possible to add removing materials from all groups and components? Not the materials on the inside surfaces, just anything applied to a group or component itself and replacing it with default?

      3D Artist at Clearstory 3D Imaging
      Guide Tool at Winning With Sketchup
      Content Creator at Skapeup

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

        Something like

        Sketchup.active_model.definitions.each{|d|next if d.image?;d.instances.each{|i|i.material=nil}}
        

        for every group/instance in the model, ignoring whether visible/locked etc...
        OR

        Sketchup.active_model.selection.each{|e|e.material=nil if(e.is_a?(Sketchup;;Group)||e.is_a?(Sketchup;;ComponentInstance))&& !e.locked?)}}
        

        to process all groups/instances in a selection, ignoring locked ones...
        Copy/paste one-liners into the Ruby Console...

        TIG

        1 Reply Last reply Reply Quote 0
        • R Offline
          rv1974
          last edited by

          Fantastic tools! πŸ‘ Thank you.
          What I really miss πŸ˜’ is additional script to assign the front faces material to backfaces (at least
          on geometry with transparent mats).

          1 Reply Last reply Reply Quote 0
          • massimoM Offline
            massimo Moderator
            last edited by

            @rv1974 said:

            Fantastic tools! πŸ‘ Thank you.
            What I really miss πŸ˜’ is additional script to assign the front faces material to backfaces (at least
            on geometry with transparent mats).

            http://sketchucation.com/forums/viewtopic.php?p=155759#p155759

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

              Transparent.png

              ❓ ❓

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

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

                oh... I might have forgotten to upload this little update... 😳

                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

                  @thomthom said:

                  [attachment=0:37kfn04k]<!-- ia0 -->Transparent.png<!-- ia0 -->[/attachment:37kfn04k]

                  ❓ ❓

                  What exactly do you ask?
                  If it's already there (the last line) I for some mystic reason don't have it (the version is updated)
                  If it's a printscreen of the latest future update- it looks awesome (exactly what I mean (if it processes entire model)).
                  P.S. How do you make the printscreen of the dropped down list???

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    rv1974
                    last edited by

                    @thomthom said:

                    oh... I might have forgotten to upload this little update... 😳

                    unpardonable forgetfulness
                    πŸ’š

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

                      Give me a couple of days. I need to release an update to TT_Lib2 first.

                      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

                        Yet another thing:
                        Assign component\group mat to its front faces (to the inner geometry with default mat) would be amazing feature.
                        There's already the great 'remove C-G materials.rb' , something the opposite is also needed.

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

                          How would you handle groups with faces of multiple materials? It's just not an symmetrical operation.

                          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

                            @thomthom said:

                            How would you handle groups with faces of multiple materials? It's just not an symmetrical operation.

                            Only default material within the would inherit the comp\group mat. The manually set multiple mats would survive.

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

                              Oh - I misread you. I thought you wanted face material to group materials.

                              You want the instance materials to be applied to all faces with default material in the group/component? That's already there: "Instance Material to Faces"

                              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

                                damn how could I miss it.

                                1 Reply Last reply Reply Quote 0
                                • R Offline
                                  rv1974
                                  last edited by

                                  @thomthom said:

                                  Give me a couple of days. I need to release an update to TT_Lib2 first.

                                  ...bump
                                  πŸ˜’

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

                                    Yeeea.... didn't happen... 😞 I've run into a bug that needs fixing.

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

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

                                      Version 2.6.0

                                      • Added Transparent Material to Backside.
                                      • Added support Fredo updater.

                                      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

                                        πŸ‘

                                        1 Reply Last reply Reply Quote 0
                                        • EarthMoverE Offline
                                          EarthMover
                                          last edited by

                                          Thanks for the update! The transparent material to backside is a huge help! πŸ‘

                                          3D Artist at Clearstory 3D Imaging
                                          Guide Tool at Winning With Sketchup
                                          Content Creator at Skapeup

                                          1 Reply Last reply Reply Quote 0
                                          • L Offline
                                            lubessy
                                            last edited by

                                            Hello,

                                            I have problem installing this tool..

                                            so after i downloaded.. I placed the "material tool rb " into the sketchup-> plugin forlder

                                            and so when i opened a new sketchup.. i still don't see a new plugin for material tool...

                                            could you tell me how to set this up after i download it???

                                            Don't I just need to copy and paste into the sketchup- plugin folder?

                                            and I am using sketchup 8pro version too....

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

                                            Advertisement