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

    [Plugin] Random Painter (Updated March 9th, 09)

    Scheduled Pinned Locked Moved Plugins
    73 Posts 23 Posters 108.5k Views 23 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.
    • tbdT Offline
      tbd
      last edited by

      some starting points - http://www.vision.ee.ethz.ch/~pmueller/wiki/CityEngine/Documents

      SketchUp Ruby Consultant | Podium 1.x developer
      http://plugins.ro

      1 Reply Last reply Reply Quote 0
      • E Offline
        Ecuadorian
        last edited by

        If someone has already worked on a "city generator" and makes it available for free, It wouldn't hurt to try and convince him to join the SketchUp Community and adapt those algorithms for SketchUp (either commercially or for free), share his source code, or provide an output in a 3D format SU can import. Check these efforts:

        This guy wrote a city generator include file for POV Render. The zip download includes the city script (which you can peruse with any text editor), some pre-made buildings in .obj format, and some documentation in .txt format:
        http://www.geocities.com/ccolefax/citygen.html

        And here's a way more sophisticated free city generator, scripted for Softimage's XSI (Now part of Autodesk):
        http://www.paoloemilioselva.it/citygenerator.html

        -Miguel Lescano
        Subscribe to my house plans YouTube channel! (30K+ subs)

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

          My internet goes down for a week and so many great things happen on this site!

          Thanks so much Chris. I've been using 3DS Max a lot this week and one of the things I was playing around with quite a bit is the "Material by Element" modifier. When a Multi/mixed material is applied to an object, the modifier will randomize the various sub materials among the different elements nested within the object. It also allows you to add a percentage of each sub material that the modifier will apply.

          Max has material ID numbers which allow for the connection between materials and modifiers to be more fluid. I was wondering if there were a way via ruby to perhaps set the Random Painter script to call materials based on a naming function. Let's say I wanted to apply 5 random textures, or 5 variations of a single texture to group of faces. If those materials were named as Random_1, Random_2, etc, could the scripts be modified to called those textures and randomly apply them to the desired faces?

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

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

            Hi Adam, just to clarify for my brain, you want essentially the same functionality but with image textures. Is that the idea? Or is it more in depth than just that?

            BTW, I don't know how to work with textures, so it will take me a little while to figure it out. But it should be possible.

            Chris

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

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

              Chris, I think what he wants is to be able to use existing material instead of the plugin creating random new ones. You specify which materials you want the plugin to use, and the plugin will use them to paint faces randomly.

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

              1 Reply Last reply Reply Quote 0
              • E Offline
                Ecuadorian
                last edited by

                That would be really cool... Just like Windowizer 3, where a drop-down menu lets you choose materials for each part!

                -Miguel Lescano
                Subscribe to my house plans YouTube channel! (30K+ subs)

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

                  You can also choose your colour values using this free utility from NOVOSIB:

                  http://www.linxexplorer.com/colorpicker.html

                  Visual Color Picker is very easy to use and powerful RGB-HSV-HSL-CMYK-HEX color selector. The program allows you to easily capture color value from any position of the screen even if program does not have input focus. The program has small screen capture preview area. By clicking associated button, you will get the associated RGB value in the dialog. The RGB color is automatically translated to RGB, HSV, CMYK and HTML HEX values. The program has standard and custom color tables. Text-background preview allows you to see how two colors will look next to each.

                  I use it all the time 🤓

                  1 Reply Last reply Reply Quote 0
                  • pilouP Offline
                    pilou
                    last edited by

                    No Pantone/ RAL format? 😉

                    Frenchy Pilou
                    Is beautiful that please without concept!
                    My Little site :)

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

                      Hey, thats a great tool. I'll have to d/l it and play with it when I get home,

                      Chris

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

                      1 Reply Last reply Reply Quote 0
                      • EdsonE Offline
                        Edson
                        last edited by

                        chris,

                        just for your information (i am not sure there is something you can do): having wxSU installed causes conflicts with windowizer4 (the dialogue appears blank) and immediate crashes after invoking it.

                        regards.

                        edson mahfuz, architect| porto alegre • brasil
                        http://www.mahfuz.arq.br

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

                          Hi Edson, thanks for the note. I saw the post in Rick's windowizer script. Hopefully it gets worked out. I suppose I could also provide a version of random painter that does not require wxsu again.

                          Chris

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

                          1 Reply Last reply Reply Quote 0
                          • EdsonE Offline
                            Edson
                            last edited by

                            @chris fullmer said:

                            Hi Edson, thanks for the note. I saw the post in Rick's windowizer script. Hopefully it gets worked out. I suppose I could also provide a version of random painter that does not require wxsu again.

                            Chris

                            i thought it would not work without it. 😕

                            edson mahfuz, architect| porto alegre • brasil
                            http://www.mahfuz.arq.br

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

                              Well, it is the nice User Interface that comes from wxsu. So I can remove wxSU and make pop up dialog boxes that require you to type in RGB values. Its more tedious than just clicking on the color you want. But it works fine. It is how the script worked at first. So if you'd like, I could re-write it and put the old inputbox version back. I'll just have 2 versions available for download. One with a nice GUI and one without.

                              Chris

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

                              1 Reply Last reply Reply Quote 0
                              • EdsonE Offline
                                Edson
                                last edited by

                                i think it is a good idea and i would thank you for that. but i suggest you wait a few days to see if rick comes up with a solution to this problem.

                                edson mahfuz, architect| porto alegre • brasil
                                http://www.mahfuz.arq.br

                                1 Reply Last reply Reply Quote 0
                                • A Offline
                                  Alex Jenyon
                                  last edited by

                                  Great idea for a script - thank you! Should come in very useful for a bit of mattepainting.

                                  I'm getting all kinds of errors with wxSU when sketchUP loads, which means that I haven't got 'randompainter' to run at all yet (though it's in the menu bar).

                                  Obviously me having problems with wxsu is nothing to do with you at all 😳 , but until I can work out what's happening a version that doesn't require wxSU to run would be brilliant.

                                  Thanks for all your work.

                                  AJ

                                  Concept artist / Matte painter
                                  www.aj-concepts.net

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

                                    Oh bummer, sorry to hear it. I think I'll post a version that is independent of wxsu. Hopefully I can get it done today.

                                    Chris

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

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

                                      OK Edson, I put another version of random painter up. It is non-reliant on wxsu. Its a bit slower to use, but I suppose if the other didn't work at all, then this is quite an upgrade 😄

                                      Chris

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

                                      1 Reply Last reply Reply Quote 0
                                      • EdsonE Offline
                                        Edson
                                        last edited by

                                        surely. thanks a lot. you have become quite an asset to this forum.

                                        is this "new" version up on the first post? why do you not keep both versions up? not all people use windowizer4; perhaps some would prefer the version that relies on wxSU.

                                        edson mahfuz, architect| porto alegre • brasil
                                        http://www.mahfuz.arq.br

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

                                          They are both up there - the latest version that supports wxsu and the stripped down version that does not. I think at some point I had added some features to pre-wxsu version that have been lost. So if there is something you remember it doing that it no longer does, let me know. All in all though, its still very functional. Thanks for the complements Edson, I'll let you take me out to a churrascaria if I ever make it down to Porto Alegre 😛

                                          Chris

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

                                          1 Reply Last reply Reply Quote 0
                                          • AdamBA Offline
                                            AdamB
                                            last edited by

                                            Cool plugin.

                                            However, I think wxSU isn't really ready for primetime. Specifically, it doesn't manage Ruby threads correctly wrt SketchUp.

                                            If you have a look at lib/App.rb there are some moderately scary comments. It seems to assume its the only plugin running - I think this is why it causes so many problems.

                                            Adam

                                            Developer of LightUp Click for website

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

                                            Advertisement