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.
    • Chris FullmerC Offline
      Chris Fullmer
      last edited by

      HI Peter, great work on WxSU. I'm afraid most of this discussion might be over my head. I only barely was able to implement WxSU, and I'm not sure that I did it correctly.

      Is there a better way to implement so that it won't cause a crash? or is that something you need to do on the development end? I can post my code in this thread if that will help.

      Chris

      EDIT: I am unaware of other plugins that use WxSU at this point.

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

      1 Reply Last reply Reply Quote 0
      • P Offline
        peter3443
        last edited by

        Hi Chris,

        There's nothing you can do in your code to prevent the crash. It's really my fault for not blocking multiple sessions of wxSU. I'll make the change and try to put out a new release of wxSU over the weekend.

        The only change I would make to your code is to replace:

        require "wxSU.rb"
        

        with

        require "wxSU/lib/Startup"
        

        Hey, thanks for being an early adopter!

        P

        1 Reply Last reply Reply Quote 0
        • P Offline
          peter3443
          last edited by

          A new version (v0.3.0) of wxSU is now posted on the project website.
          http://sourceforge.net/project/showfiles.php?group_id=240585&package_id=292646

          Multiple instances of wxSU are now blocked which should eliminate the conflict that I've seen between Random Painter, wxSU, Windowizer 4, and other plugins. However, the conflicts won't go away until each plugin that uses wxSU upgrades to 0.3.0. In particular, the PlayUp plugin needs to be upgraded.

          The new version also updates to wxRuby 2.0 which is more stable and has some new features.

          If anyone finds problems or conflicts that I haven't mentioned, please email me.

          Thanks,
          P

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

            Thanks for the update Peter! I don't have time to update this right now, but perhaps in a week or two I'll get it all updated and working with the new version (though I'm not sure I really need to change very much, it should just be a matter of the users upgrading their version of WxSU they have installed).

            Chris

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

            1 Reply Last reply Reply Quote 0
            • romboutR Offline
              rombout
              last edited by

              mmmm cant get it to work on my mac os x 10.5.6.
              first installed the wxSU ppc (that didnt work ofcourse) than tried the platform independent. but got this error see attachment... pretty weird for a mac

              the next image was the error i got from the mac ppc version


              Afbeelding 9.png


              Afbeelding 7.png

              1 Reply Last reply Reply Quote 0
              • P Offline
                peter3443
                last edited by

                Well, I guess "platform independent" was kind of a mislabeling on my part... It would be more accurately described as a "source-code only package for Windows"; no installer. And thus the wacky error message. Sorry about that.

                The Mac installer should have worked for you. It's supposed to be a PPC/x86 universal install. Are you using SU 6 or SU 7? It tries to install in the SU 7 directories, which could be the problem if you only have SU 6. Email me and I'll help you debug it. Sounds like there is at least one or two things for me to fix here.

                Thanks,
                P

                1 Reply Last reply Reply Quote 0
                • P Offline
                  peter3443
                  last edited by

                  Oops, just noticed you list SU 6-7 in your profile. If wxSU did install successfully under SU 7, you should be able to just copy it over to your SU 6 directory. If that's not the problem, let me know.

                  1 Reply Last reply Reply Quote 0
                  • olisheaO Offline
                    olishea
                    last edited by

                    nice ruby. good video too, I didn't realise you could combine textures in SU ๐Ÿ˜ฎ

                    oli

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

                      IBM BALL ๐Ÿ˜‰ (thx Chris, TIG, Twilight)

                      http://forums.polyloop.net/picture.php?albumid=23&pictureid=544

                      http://forums.polyloop.net/picture.php?albumid=23&pictureid=545

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

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

                        Hi Chris why don't make that inside your plug?

                           clselection.each{|e|###
                                  if e.class==Sketchup;;Face
                                    matx=mats[rand(mats.length)]
                                    e.material=matx
                                  e.back_material=matx if paint_back==1
                                  elsif e.class==Sketchup;;Group or e.class==Sketchup;;ComponentInstance #########
                                    matx=mats[rand(mats.length)]
                                    e.material=matx
                                  end ##########################################################
                           }###
                        

                        (it's not from me of course ๐Ÿ’š , it's from TiG ๐Ÿ˜‰ ๐Ÿค“

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

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

                          @unknownuser said:

                          Mine just randomly paints the faces. Both have their uses.

                          Ok I understand you pick facets in any order! ๐Ÿ˜ณ ๐Ÿ˜ฎ ๐Ÿ˜’ ๐Ÿ˜†
                          It's a pity ๐Ÿ˜‰

                          About colors
                          The must will be to use a pallet who yet exist so no need to pick on a wheel color or enter numbers!
                          like this for example

                          then I copy past in one move I have that
                          #334433 #3366aa #6699aa #aabbbb #778877
                          or that with any difficulties in any Notepad or other
                          #334433
                          #3366aa
                          #6699aa
                          #aabbbb
                          #778877
                          So If you have a board to put that inside that will be perfect!

                          If I can enter a simple list of color by copy past it be perfect!

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

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

                            Another one ๐Ÿ’š
                            CoBrA style ๐Ÿ˜‰

                            http://forums.sketchucation.com/download/file.php?id=35262

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

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

                              Chris, thanks for the cool plugin!

                              Little feature request: would it be possible to make it paint groups and components as well?
                              (not inside them, just the component instance itself...)

                              At this moment, that would save my life (damn deadlines)..! ๐Ÿ˜•

                              1 Reply Last reply Reply Quote 0
                              • dereiD Offline
                                derei
                                last edited by

                                I didn't installed it yet, but I want to ask a question before:
                                What's the difference between that two versions? (with and without WxSU) ?

                                Thanks.

                                DESIGNER AND ARTIST [DEREI.UK](http://derei.uk/l)

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

                                  WxSU is/was an add-on to offer new functionality to SUp but it proved to be a big flaky [and/or difficult to 'get right'] and so Chris wrote the alternative version that didn't need it...

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • dereiD Offline
                                    derei
                                    last edited by

                                    @tig said:

                                    WxSU is/was an add-on to offer new functionality to SUp but it proved to be a big flaky [and/or difficult to 'get right'] and so Chris wrote the alternative version that didn't need it...

                                    Thanks, just downloaded it. I hoped it will work on groups/components too. Maybe Chris reads this and update the plugin? ๐Ÿ˜„
                                    Other nice functionality would be to be able to "pick" materials/textures from model and/or from Material Browser and use them to paint the selected entities...

                                    DESIGNER AND ARTIST [DEREI.UK](http://derei.uk/l)

                                    1 Reply Last reply Reply Quote 0
                                    • L Offline
                                      lapx
                                      last edited by

                                      Thanks Chris

                                      This is a very useful tool. Perhaps would could be improved by using su's dialogue color picker which I know you have probably thought of already.

                                      You ruby God's are fantastic!

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

                                        Yes ultra cool ๐Ÿ˜‰
                                        I am fan from the beginning! ๐Ÿ’š


                                        Randompushpul1.jpg

                                        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

                                          I'm actually sitting on a color picker I made that is built into SketchUp's view. Its pretty cool. I have not ever gotten around to using it for anything, maybe I should post the code so someone else can use it.

                                          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'm actually sitting on a color picker I made that is built into SketchUp's view. Its pretty cool. I have not ever gotten around to using it for anything, maybe I should post the code so someone else can use it.

                                            Oh - that one! Please do make something out of it. It was cool!

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

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

                                            Advertisement