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

    [Request] 'Clever Clay' mode

    Scheduled Pinned Locked Moved Plugins
    34 Posts 13 Posters 5.4k Views 13 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.
    • R Offline
      remus
      last edited by

      Hi Mrwip,

      Ive PMd you a quick hack of jim's script 👍

      http://remusrendering.wordpress.com/

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

        Hi Remus,

        Thanks!... but I know absolutely nothing in Ruby scripting... My works consist basically in using them as well as possible, and waiting for new one to be made by clever coders...
        That's why I post this request, if someone is interested and have time to do it, it will help me greatly.

        The greyscale.rb that you send me is the original one, there is no change in the script that may do what I'm looking for, right?

        http://www.wip-archi.com

        1 Reply Last reply Reply Quote 0
        • S Offline
          Sirius
          last edited by

          Hello !
          Something like that would have saved much of my sleeping time a few week ago !

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

            Your right, in my haste i skimmed over all the bits of your post where you requested new bits 😉

            http://remusrendering.wordpress.com/

            1 Reply Last reply Reply Quote 0
            • Chris FullmerC Offline
              Chris Fullmer
              last edited by

              So it would just go through and change ALL materials to the same color grey and keep their original transparency settings. Is that about right?

              Chris

              Lately you've been tan, suspicious for the winter.
              All my Plugins I've written

              1 Reply Last reply Reply Quote 0
              • PixeroP Offline
                Pixero
                last edited by

                I'm very interested in this too.
                Is there a way to go back to previous materials or should you save a special file for it?
                Maybe Thomthom could make it work with Vray?

                1 Reply Last reply Reply Quote 0
                • Chris FullmerC Offline
                  Chris Fullmer
                  last edited by

                  It would be possible to switch back to original materials. But the script might have to hide little faces in the model with all the original materials so they don't get purged on accident.

                  Chris

                  Lately you've been tan, suspicious for the winter.
                  All my Plugins I've written

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    sepo
                    last edited by

                    Podium already can do this. In Podium if you use colour by layer it will render clay model with colour you choose as front face. Also preserves transparency and reflections.

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

                      After reflexion, there is maybe two main way to do it:

                      • A global change of all the material, by erasing the old ones and replacing them by the new materials ( just like global material changer does), and the script may use something like : if transparency level = 100 , pick one (it does not have to be always grey in fact), and if transparency < 100 (or maybe this one could be enter by hand, so the semi transparent material (80/90 % of transparency for example) could be also change to opaque in the same operation ) pick another one.
                        This method will be destructive, but Chris idea is maybe a good solution to avoid it.

                      _ A global change of all material by only one, directly, but with the respective material transparency levels.

                      I don't know which one will be the simplest to code, and which one will be the quickest to run in the end...

                      If it work kinda like grey scale, there will be no problem with Vray, because it works just fine in that case (a grey model is render grey by Vray). And if its a global change of material it will also work, because Vray will use the last material present on the geometry... so normally that's not an issue.

                      http://www.wip-archi.com

                      1 Reply Last reply Reply Quote 0
                      • GaieusG Offline
                        Gaieus
                        last edited by

                        Kerkythea can also do this. In fact, you can already export your model as a clay model which will then render everything BUT transparent/reflective (say "thin glass") materials clay.

                        Ah yes, and it's free.
                        (Sorry Sid, I couldn't resist) 😉

                        Gai...

                        1 Reply Last reply Reply Quote 0
                        • S Offline
                          sepo
                          last edited by

                          Lol...I have not realised you have become KB as well.

                          1 Reply Last reply Reply Quote 0
                          • GaieusG Offline
                            Gaieus
                            last edited by

                            I might guess what "K" means but what about "B"?

                            Gai...

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

                              @pixero said:

                              I'm very interested in this too.
                              Is there a way to go back to previous materials or should you save a special file for it?
                              Maybe Thomthom could make it work with Vray?

                              I'm not sure how you would revert back positioned textured faced. Think that's going to be problematic.

                              And even more so with V-Ray material; 100% impossible as there's to access to the special layers and materials in V-Ray. The only way to remove all the extra reflection/refrection,bumpmaps etc would be to delete the V-Ray attribute dictionary. To do so, V-Ray must be unloaded while you do that, otherwise it'll restore the setting when you save. V-Ray only reads the V-Ray data in the .skp file when you open the models; from that point it only writes back. Removing the V-Ray attributes means you loose all your V-Ray settings as well.

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

                              1 Reply Last reply Reply Quote 0
                              • S Offline
                                sepo
                                last edited by

                                Kerky Bashers to quote Free Agent. 😉

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

                                  Gaieus,

                                  I know about Kerkythea, I'm also working with it... but what I'm looking for is something that works inside sketchup, without regards for the render apps use afterward.

                                  If it change well the materials, then you can use your model in Vray, Kerkythea, Artlantis, or any other, just as a classic model.

                                  And after thomthom answer, I think that this plugin will be destructive : save your model, turn it into clay with transparency, render it, and go back to the previous save ( or just undo if it's possible) to continue working on it.

                                  http://www.wip-archi.com

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

                                    @mrwip said:

                                    And after thomthom answer, I think that this plugin will be destructive : save your model, turn it into clay with transparency, render it, and go back to the previous save ( or just undo if it's possible) to continue working on it.

                                    Just to add the final nail to the coffin of a non-destructive plugin; V-Ray tend to interfere with the Undo operations when materials are modified.
                                    Hopefully this will change in VfSU2.

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

                                    1 Reply Last reply Reply Quote 0
                                    • GaieusG Offline
                                      Gaieus
                                      last edited by

                                      @sepo said:

                                      Kerky Bashers to quote Free Agent. 😉

                                      OK, I understand. 😉

                                      @mrwip said:

                                      I know about Kerkythea, I'm also working with it... but what I'm looking for is something that works inside sketchup, without regards for the render apps use afterward.

                                      OK, understand this, too.

                                      Gai...

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

                                        Is there a way to know if someone (but I don't want to force anyone of course...) will have time (or is interested, at least...) to make modifications to 'Global_Material_Change.rb' (it seems the easiest way to do it finally), in order to have a script able to do what we're looking for ?

                                        http://www.wip-archi.com

                                        1 Reply Last reply Reply Quote 0
                                        • Chris FullmerC Offline
                                          Chris Fullmer
                                          last edited by

                                          Generally speaking, only the author of a script can change it, unless they have put in their copyright info that it is free to copy and change and distribute. I haven't looked at global material changer to see what is permissible.

                                          Otherwise a new script would not be impossible to write.

                                          Chris

                                          Lately you've been tan, suspicious for the winter.
                                          All my Plugins I've written

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

                                            Thanks Chris... and by the way,I think (but it's not original in fact) that you're doing a really amazing job on loft, bending, and others. In addition, you're almost on every post, responding to everyone, and that's great!

                                            So,I don't want to change this ruby particularly, it's just that a ruby like this one seems to be just what we need for... In fact, after checking in the .rb, the one I'm working with have been created by TIG, so I should maybe contact him directly...

                                            http://www.wip-archi.com

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

                                            Advertisement