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

    [Plugin] Remove group materials, leave geometry material

    Scheduled Pinned Locked Moved Plugins
    88 Posts 27 Posters 60.5k Views 27 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.
    • M Offline
      Matt666
      last edited by

      Ok, but I will wait for Free agent answer to do smt πŸ˜„ !
      I've updated post of the script with demanded improvments... I did'nt really test it... πŸŽ‰

      Frenglish at its best !
      My scripts

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

        Matthieu,

        I just ran it on this fairly simple model, but unfortunately it has applied the wrong materials to the groups, see before and after image below. I thought it might be applying materials from higher up the group heirarchy, but that doesn't seem to be the case. Any idea what's going wrong? I can send you the skp file if you like.

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

        Jackson

        1 Reply Last reply Reply Quote 0
        • M Offline
          Matt666
          last edited by

          Can you send me the skp, please?
          Thank you !
          Sorry, I don't have a lot of time to test... 😞

          Frenglish at its best !
          My scripts

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

            Here's the Rapidshare link:

            404 Not Found

            favicon

            (rapidshare.com)

            LOL, definitely no need to apologise!

            Jackson

            1 Reply Last reply Reply Quote 0
            • M Offline
              Matt666
              last edited by

              Hi Jackson !
              I don't forget your demand !!
              I have no time to do smt now, and I have a problem of "Hierarchy" in your drawing example... So it's quite difficult !
              But I think I will show smt in a few days..

              See you soon !

              Frenglish at its best !
              My scripts

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

                Matthieu,

                No worries, your original "Remove CG Materials" script has already saved me about 20 hour's work so I'm pretty happy already!

                Best regards,
                Jackson

                Jackson

                1 Reply Last reply Reply Quote 0
                • M Offline
                  Matt666
                  last edited by

                  We loosed some posts here 😞

                  So, script's post has been updated... Not tested enough, but I'm a few confident ! πŸ˜„
                  Now all Comp/Groups materials are transfered to geometry if you want.
                  😎

                  Frenglish at its best !
                  My scripts

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

                    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 Reply Last reply Reply Quote 0
                    • M Offline
                      Matt666
                      last edited by

                      πŸ˜„
                      You're welcome, Jackson ! Glad to help you !

                      Frenglish at its best !
                      My scripts

                      1 Reply Last reply Reply Quote 0
                      • plot-parisP Offline
                        plot-paris
                        last edited by

                        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 Reply Last reply Reply Quote 0
                        • M Offline
                          Matt666
                          last edited by

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

                          Frenglish at its best !
                          My scripts

                          1 Reply Last reply Reply Quote 0
                          • plot-parisP Offline
                            plot-paris
                            last edited by

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

                            1 Reply Last reply Reply Quote 0
                            • V Offline
                              vinchvinchvinch
                              last edited by

                              Hi!
                              Matt, you are already a legend in ASGvis forum!
                              Thank you man!
                              πŸ‘

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

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

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

                                Jackson

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

                                  @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 Reply Last reply Reply Quote 0
                                  • W Offline
                                    watkins
                                    last edited by

                                    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 Reply Last reply Reply Quote 0
                                    • thomthomT Offline
                                      thomthom
                                      last edited by

                                      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 Reply Last reply Reply Quote 0
                                      • W Offline
                                        watkins
                                        last edited by

                                        Thank you Thomas.

                                        Regards,
                                        Bob

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

                                          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 Reply Last reply Reply Quote 0
                                          • thomthomT Offline
                                            thomthom
                                            last edited by

                                            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 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 4 / 5
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement