• Login
sketchucation logo sketchucation
  • Login
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

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 7 Feb 2009, 07:26

    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
    • T Offline
      TIG Moderator
      last edited by 7 Feb 2009, 16:29

      301 Moved Permanently

      favicon

      (www.sketchucation.com)

      random select then paint...

      TIG

      1 Reply Last reply Reply Quote 0
      • C Offline
        Chris Fullmer
        last edited by 7 Feb 2009, 19:59

        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
        • T Offline
          thomthom
          last edited by 7 Feb 2009, 21:00

          @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
          • C Offline
            Chris Fullmer
            last edited by 7 Feb 2009, 21:47

            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
            • C Offline
              Chris Fullmer
              last edited by 7 Feb 2009, 22:49

              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
              • T Offline
                thomthom
                last edited by 7 Feb 2009, 23:11

                @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
                • C Offline
                  Chris Fullmer
                  last edited by 7 Feb 2009, 23:21

                  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 7 Feb 2009, 23:42

                    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
                    1 / 1
                    • First post
                      7/9
                      Last post
                    Buy SketchPlus
                    Buy SUbD
                    Buy WrapR
                    Buy eBook
                    Buy Modelur
                    Buy Vertex Tools
                    Buy SketchCuisine
                    Buy FormFonts

                    Advertisement