sketchucation logo sketchucation
    • 登入
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    [Plugin] Remove group materials, leave geometry material

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

      Seems to work perfectly Matthieu! I just ran it with the test file I sent you and it reassigned all the materials in just a few seconds. This is such a valuable little tool for "VRay for SU" users, I will spread the good word (and your name) over at the ASGvis forums.

      Many many thanks for creating this little gem, MERCI BEAUCOUP!
      Jackson

      Jackson

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

        😄
        You're welcome, Jackson ! Glad to help you !

        Frenglish at its best !
        My scripts

        1 條回覆 最後回覆 回覆 引用 0
        • plot-parisP 離線
          plot-paris
          最後由 編輯

          thanks so much, Matthieu! 😍

          only one minor thing still: while all the materials are applied to faces and the material of the outer group is changed to default, nested groups still keep their assigned material. that is not very important, because the face's textures are the dominant ones. but to be perfectly accurate, it would be great if the plugin could assign the default material to nested groups too.

          one positive side effect I experienced is, that your plugin coloures front and back faces. that is really good!

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

            Hi plot-paris !
            ok, that's been updated !
            Thank you for testing !

            Frenglish at its best !
            My scripts

            1 條回覆 最後回覆 回覆 引用 0
            • plot-parisP 離線
              plot-paris
              最後由 編輯

              damn, you are fast! now the plugin is flawless. fantastic! thank you so much!!!

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

                Hi!
                Matt, you are already a legend in ASGvis forum!
                Thank you man!
                👍

                1 條回覆 最後回覆 回覆 引用 0
                • J 離線
                  Jackson
                  最後由 編輯

                  LOL, you guys are a two-man developer and beta team!

                  Great work, I'll link this thread over at ASGvis.

                  Jackson

                  1 條回覆 最後回覆 回覆 引用 0
                  • thomthomT 離線
                    thomthom
                    最後由 編輯

                    @jackson said:

                    Matthieu,

                    You are the man! If you can produce a ruby script which removes group materials and applies them to the default geometry you will save me about 3 day's work on this model alone! I'm trying to update my portfolio so this would be of enormous benefit to me as I've got lots to do and very little time to do it.

                    http://i449.photobucket.com/albums/qq215/JacksonPhotobucket/Malm1.jpg

                    somewhat off topic, but: where did you get hold of the ground texture?

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

                    1 條回覆 最後回覆 回覆 引用 0
                    • W 離線
                      watkins
                      最後由 編輯

                      Could someone explain exactly what this script does, and what are the benefits? It would help the technically challenged, like myself.

                      Kind regards,
                      Bob

                      1 條回覆 最後回覆 回覆 引用 0
                      • thomthomT 離線
                        thomthom
                        最後由 編輯

                        It makes sure that no materials are applied to groups and components. It will either remove the materials of groups and components or transfer them to the geometry.
                        For users of V-Ray for SketchUp it has the benefit of faster parsing time and more reliable outcome as VfSU struggles to get correct data for groups and components with materials applied to them.

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

                        1 條回覆 最後回覆 回覆 引用 0
                        • W 離線
                          watkins
                          最後由 編輯

                          Thank you Thomas.

                          Regards,
                          Bob

                          1 條回覆 最後回覆 回覆 引用 0
                          • J 離線
                            jds
                            最後由 編輯

                            Matt666

                            i havent tried your plugin just like to thank you for giving this solution

                            i already stop using the latest vray bec. of some issues but if this plugin will work wow thank you so much 🎉

                            1 條回覆 最後回覆 回覆 引用 0
                            • thomthomT 離線
                              thomthom
                              最後由 編輯

                              Matt; You could benefit from using the extra speedboost argument for the start_operation method which was introduced in SU7.

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

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

                                Yep! First code post updated! Thank you Thomthom...

                                Frenglish at its best !
                                My scripts

                                1 條回覆 最後回覆 回覆 引用 0
                                • Didier BurD 離線
                                  Didier Bur
                                  最後由 編輯

                                  Hi Matt,
                                  Is this version only for v7 or does it run under v6 too ?

                                  DB

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

                                    Hi Didier!
                                    This update works with both versions.

                                    if Sketchup.version[0,1].to_i >= 7
                                      model.start_operation("Remove comp & group materials",true)
                                    else
                                      model.start_operation("Remove comp & group materials")
                                    end
                                    

                                    Thank you for the remark 😉

                                    Frenglish at its best !
                                    My scripts

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • Didier BurD 離線
                                      Didier Bur
                                      最後由 編輯

                                      Merci,
                                      C'était pour savoir comment l'indexer sur mon site.

                                      DB

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • thomthomT 離線
                                        thomthom
                                        最後由 編輯

                                        I have a suggestion for an improvement. An option to make components painted with different materials into unique components.

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

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

                                          Hi thomthom!
                                          Sorry for the delay! Great idea! O've updated the code.
                                          I've tested it veeery quickly....
                                          The plugin post is up-to-date.

                                          Frenglish at its best !
                                          My scripts

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

                                            Thank you Jackson 😄

                                            Frenglish at its best !
                                            My scripts

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

                                            Advertisement