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

    [Plugin] MaterialConsolidator

    已排程 已置頂 已鎖定 已移動 Plugins
    57 貼文 31 Posters 39.4k 瀏覽 31 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • pbacotP 離線
      pbacot
      最後由 編輯

      Thank you!

      MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

      1 條回覆 最後回覆 回覆 引用 0
      • TIGT 離線
        TIG Moderator
        最後由 編輯

        Sorry, for any inconvenience !
        Here's v3.0
        https://sketchucation.com/pluginstore?pln=materialconsolidator
        It tweaks any options checking - to avoid unexpected results !

        TIG

        1 條回覆 最後回覆 回覆 引用 0
        • B 離線
          bsfranza
          最後由 編輯

          WOW super many muchas gracias 😄
          heavily appreciated!

          edit:
          of course one is never satisfied for long ...

          plugin works as expected now, but its kind of slow on scenes with many many polygons and the report does not state the progress or if the plugin is still working or if the app is frozen and also there are some crucial options missing...

          for example: work in only on entities in active context or vice versa, ignore entities and materials of active objects

          dont know if anyone is aware of the age old plugin material maintance - this one is quite fast with what it does ..

          maybe someone in the future can combine them and make a proper plugin, i personally would be happy to pay for something like that 😄

          1 條回覆 最後回覆 回覆 引用 0
          • 1 離線
            1010 Gunner
            最後由 編輯

            Need help with installation or use of this plugin.
            'materialconsolidator' shows in my extension manager although there is no version, author etc information.
            It is not showing in the 'extensions' tab

            What do I need to do to get it to work?

            1 條回覆 最後回覆 回覆 引用 0
            • Dave RD 離線
              Dave R
              最後由 編輯

              @1010 gunner said:

              What do I need to do to get it to work?

              First thing I'd do is look in the Tools Menu where the instructions say it will be located. See the first post.

              Screenshot - 11_15_2019 , 5_17_48 PM.png

              If it's not there, then we need to look at how you went about installing it.

              What version of SketchUp are you using? Your profile indicates version 7 but it had no Extension Manager.

              Etaoin Shrdlu

              %

              (THERE'S NO PLACE LIKE)

              G28 X0.0 Y0.0 Z0.0

              M30

              %

              1 條回覆 最後回覆 回覆 引用 0
              • 1 離線
                1010 Gunner
                最後由 編輯

                That's it, thank you.

                1 條回覆 最後回覆 回覆 引用 0
                • S 離線
                  SirFievel33
                  最後由 編輯

                  Hey TIG, so I'm running your program on my 150MB file with many materials (~150) and components. It seems to 'freeze' on the "Making Nested Entities List." step. Takes up a lot of CPU processing power but not seeing any progress. I'm leaving it 'running' for a few hours to give it a chance to finish. If it's not frozen and working as intended, could I suggest making some form of a progress bar or status updates, maybe even a pause option. If it's not working as intended, well, consider yourself informed. 😕

                  1 條回覆 最後回覆 回覆 引用 0
                  • S 離線
                    SirFievel33
                    最後由 編輯

                    Returned to these error messages within Ruby Console (I'm using Sketchup Pro 2019)

                    Material Consolidator: Tolerances: R=15 G=15 B=15 A=0
                    Material Consolidator: Making Material Lists
                    Material Consolidator: Making Entities List
                    Material Consolidator: Making Nested Entities List
                    Material Consolidator: Consolidating Materials
                    Error: #<NoMethodError: undefined method display_name' for nil:NilClass> C:/Users/###/AppData/Roaming/SketchUp/SketchUp 2019/SketchUp/Plugins/materialconsolidator.rb:202:in block (3 levels) in new'
                    C:/Users/###/AppData/Roaming/SketchUp/SketchUp 2019/SketchUp/Plugins/materialconsolidator.rb:195:in each' C:/Users/###/AppData/Roaming/SketchUp/SketchUp 2019/SketchUp/Plugins/materialconsolidator.rb:195:in block (2 levels) in new'
                    C:/Users/###/AppData/Roaming/SketchUp/SketchUp 2019/SketchUp/Plugins/materialconsolidator.rb:191:in each' C:/Users/###/AppData/Roaming/SketchUp/SketchUp 2019/SketchUp/Plugins/materialconsolidator.rb:191:in block in new'
                    C:/Users/###/AppData/Roaming/SketchUp/SketchUp 2019/SketchUp/Plugins/materialconsolidator.rb:189:in each' C:/Users/###/AppData/Roaming/SketchUp/SketchUp 2019/SketchUp/Plugins/materialconsolidator.rb:189:in new'
                    C:/Users/###/AppData/Roaming/SketchUp/SketchUp 2019/SketchUp/Plugins/materialconsolidator.rb:71:in `block in module:MaterialConsolidator'

                    1 條回覆 最後回覆 回覆 引用 0
                    • TIGT 離線
                      TIG Moderator
                      最後由 編輯

                      I see the issue and will issue an update shortly...

                      TIG

                      1 條回覆 最後回覆 回覆 引用 0
                      • TIGT 離線
                        TIG Moderator
                        最後由 編輯

                        Here's v4.0
                        https://sketchucation.com/pluginstore?pln=materialconsolidator
                        It should fix the display_name error for nil-materials...

                        TIG

                        1 條回覆 最後回覆 回覆 引用 0
                        • V 離線
                          valerostudio
                          最後由 編輯

                          Is it possible to get some kind of progress bar with this plugin? I usually use it toward the end of a project, where I have imported a bunch of components and have a lot of materials. I ran this yesterday and I wasn't sure if SketchUp had crashed or it was still working. I let it sit overnight and it was just working away. It would be nice to know how far it has to go. Thomthoms Cleanup does a great job of doing this.

                          1 條回覆 最後回覆 回覆 引用 0
                          • TIGT 離線
                            TIG Moderator
                            最後由 編輯

                            The Ruby Console lists the key stage of its operation - open it before you start.
                            The bottom status_bar has a incrementing '...' to show it's doing something...
                            It also reports the key stages of operation...

                            TIG

                            1 條回覆 最後回覆 回覆 引用 0
                            • M 離線
                              melindasaur
                              最後由 編輯

                              First of all THANK YOU SO MUCH for this! This is saving me so much headache already.

                              It's not working for a couple of materials in one of my files. It WILL work in a new project if I apply those materials to surfaces and paste them in a new project... do you know why this might be? ie maybe it doesn't work with components?

                              2019 file attached


                              materialconsolidator-componentnotworking.skp

                              1 條回覆 最後回覆 回覆 引用 0
                              • T 離線
                                Tom0212
                                最後由 編輯

                                Hi TIG,
                                When I use the tool, it isn't doing anything..
                                Materials stay the same, and a consolided image is not added to my materials list.

                                Running Sketchup 2020.

                                1 條回覆 最後回覆 回覆 引用 0
                                • TIGT 離線
                                  TIG Moderator
                                  最後由 編輯

                                  Are you sure you understand its usage...
                                  I just retested it in v2020 and it works fine.

                                  When you run it it asks if you want to set RGBA 'tolerances'.
                                  If 'No' then only materials which share the exact RGBA values are processed.
                                  If 'Yes' then you can set a +- range of values - e.g. all materials sharing the same RGB but with a varied A[lpha] transparency will be consolidated.

                                  Assuming some material matches are found, then it takes the first material in the list [alphanumerically] and makes that the 'base-material', then it replaces any other matching materials in the model's entities and within groups/components, with that 'base-material', and then it purges those now unused materials from the model...

                                  Run it with the Ruby Console open to see the report...

                                  TIG

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • T 離線
                                    Tom0212
                                    最後由 編輯

                                    Hi TIG,
                                    I'm not quite sure I used the tool correct.
                                    Please review my attached .skp file.


                                    Not-consolidating.skp

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • TIGT 離線
                                      TIG Moderator
                                      最後由 編輯

                                      In your example SKP the two materials use widely different RGB values, but these can be consolidated by giving a suitable range in the dialog.
                                      However, they use different texture image files with different image-scaling etc, so they are seen as so different that they are not able to be processed...

                                      Materials using textures can be consolidated, but only if the two materials use the same texture-file-name and they have the same image_height/width, and use the same texture-height/width settings.
                                      Otherwise they are not merged into one, as they are too different...

                                      TIG

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • 1
                                      • 2
                                      • 3
                                      • 3 / 3
                                      • 第一個貼文
                                        最後的貼文
                                      Buy SketchPlus
                                      Buy SUbD
                                      Buy WrapR
                                      Buy eBook
                                      Buy Modelur
                                      Buy Vertex Tools
                                      Buy SketchCuisine
                                      Buy FormFonts

                                      Advertisement