sketchucation logo sketchucation
    • Login
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Checkerboard painting ? (or selection)

    Scheduled Pinned Locked Moved Developers' Forum
    18 Posts 5 Posters 2.7k Views 5 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.
    • pilouP Offline
      pilou
      last edited by

      Small is beautiful! โ˜€
      Just "selection" is sufficient ๐Ÿ˜‰
      Color will be superfluous ๐Ÿ’š
      And with one line of code, you will enter inside the Guiness Book with the best
      average number of line of code / result! ๐Ÿ˜„

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

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

        Cool news because I know the guy Orgelf who "paint" that! ๐Ÿ˜ฒ
        So I want help him ๐Ÿ˜‰
        If the same ruby can make the same for any surface squared that will be terrific !:

        http://i44.tinypic.com/2ypb3pg.jpg

        http://i43.tinypic.com/rvzzae.jpg

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

        1 Reply Last reply Reply Quote 0
        • T Offline
          todd burch
          last edited by

          Well, it took a few more lines to write than the one line I started with, but it's working. ๐Ÿ‘ See attached pictures.

          Notice the Orange cylinder with the center band that is solid. That is a result of clicking the current selection, which was correctly selected as every other face, with the fill tool. Since Sketchup recognizes the cylinder face as a whole "Surface", (like it might a terrain??), even though every other face that makes up the Surface is selected, whatever band you click on, gets the fill color for the whole band. The faces of the Surfaces that were not clicked fill just fine.

          The purple cylinder example is one in which I picked the colors as part of running the script - they fill just fine.

          The two-tone example was from playing around with it with two colors. Nice Checkerboard, eh?!

          Also note that when a cylinder is checker-boardered, if the # of segments is even, it will work just fine. If odd, the results will be unpredictable.

          I'll get it packaged and uploaded to Smustard sometime tomorrow.

          Todd


          SketchUp024.png


          SketchUp026.png


          SketchUp027.png

          1 Reply Last reply Reply Quote 0
          • T Offline
            todd burch
            last edited by

            In reference to the even / odd issue, this is what might happen with a 13 sided cylinder.


            SketchUp028.png

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

              Very cool speedy start! ๐Ÿ˜Ž

              Does it be adaptable to this? Thx Zorro2 by Whaat ๐Ÿ˜‰
              (click image for no Scroll bar)


              Crossed.jpg

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

              1 Reply Last reply Reply Quote 0
              • T Offline
                todd burch
                last edited by

                Yes, it will do non-quadrangular crossed lines, but it won't do faces that don't have 4 sides. For your example, make your starting face much larger than in needs to be, and then use a pattern to get the shape you want. Extrude the pattern, group, move into position, intersect_selected, remove the bits you don't want, and bingo - Happy Valentines day!

                I think I'll put a user interface on it to allow you to pick the color, or colors, and to swap the colors if you don't get the starting square color where you wanted it.


                SketchUp029.png


                SketchUp030.png

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

                  @unknownuser said:

                  Yes, it will do non-quadrangular crossed lines, but it won't do faces that don't have 4 sides.

                  Bravo! ๐Ÿ‘ And very cool trick for the no four roses faces โ˜€ ๐Ÿ˜Ž
                  ๐Ÿ˜Ž

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

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

                    @ Todd : I am desolated to say that Chris Fulmer had create a ruby script that make exactly that asked at the first post (and more: any selections of form of facets) ๐Ÿ˜„
                    I am so sorry for you ๐Ÿ˜‰
                    You have shown the way! โ˜€


                    paint2.jpg

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

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      todd burch
                      last edited by

                      Good for you and good for him!

                      I'm still working on my user interface.

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

                        Frenchy, mine doesn't do what Todd's does. Mine just randomly applies pre-selected color. Todd's makes a checkerboard like you asked for. I was making one for Equadorian who asked to have per-selected colors applied randomly to selected faces. So while they are similar, they are different. And I'm sure Todd's is going to be much more user friendly, and his menu probably won't end up in a never ending loop like mine likes to ๐Ÿ˜„

                        Chris

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

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

                          Ok I understand you pick facets in any order! ๐Ÿ˜ณ ๐Ÿ˜ฎ ๐Ÿ˜’ ๐Ÿ˜†
                          It's a pity ๐Ÿ˜‰
                          So you are both winners โ˜€

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

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

                            where is the download link? ๐Ÿ˜ž

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

                              Not yet released but you can try this one ๐Ÿ˜‰

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

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

                                @unknownuser said:

                                Not yet released but you can try this one ๐Ÿ˜‰

                                lol, come on, it was already said that Random Painter isnt able to create a checkbox pattern, since, of course, its randon ๐Ÿ˜„

                                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