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

    Random selection / coloring

    Scheduled Pinned Locked Moved Developers' Forum
    9 Posts 4 Posters 567 Views 4 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.
    • E Offline
      Ecuadorian
      last edited by

      Hello, everyone.

      I want to random-color a group of disconnected faces... Perhaps with four or five different colors/materials... Is there a way to do this? There are soooo many scripts... Perhaps there's already one that can do this.

      If there's not one to do random coloring, is there one that can do random selection, so I can do the coloring myself?

      Thank you in advance. I promise to learn Ruby so I can help, too.

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

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        http://www.sketchucation.com/forums/scf/viewtopic.php?p=44671#p44671

        random select then paint...

        TIG

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

          I began writing this script for you and it was working, but I accidentally made a never-endding loop in the code, and I got stuck and had to force kill SU, and there fore lost all the code - oops! So if no one beats me to it, I'll try to have one posted today.

          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 fullmer said:

            I began writing this script for you and it was working, but I accidentally made a never-endding loop in the code, and I got stuck and had to force kill SU, and there fore lost all the code - oops! So if no one beats me to it, I'll try to have one posted today.

            Chris

            You write the scripts into the console?

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

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

              I do, because it is all trial by error so I need immediate feedback if my syntax is working or not. Hopefully in time I'll get better with the syntax and not need to execute my script 10 times per line of code 👊

              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, I have script working. Give me a little while to get it setup for the menu system and cleanly organized.

                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 fullmer said:

                  I do, because it is all trial by error so I need immediate feedback if my syntax is working or not. Hopefully in time I'll get better with the syntax and not need to execute my script 10 times per line of code 👊

                  Chris

                  I think a debugger would help greatly here. I've been looking for a solution there the last couple of days. From what I understand, something called Sketchup Bridge is up for the job. But I'm not sure how it's used though.

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

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

                    While I've gotten rather fond of typeing "UI.messagebox "1" " or 2 or 3 etc on every other line of code to find the precise point at which my code is breaking, I suppose a debugger would come in very handy 😄

                    Chris

                    PS the script is done but it needs a few safety checks built in to it on the RGB input menus. So a little bit longer and I'll post a new topic for it.

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

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

                      Wow, thank you, Chris, This script will save everyone a lot of work when creating cities via Greeble and random push/pull...

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

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

                      Advertisement