sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    ImageProfile update and other news

    Scheduled Pinned Locked Moved Developers' Forum
    8 Posts 6 Posters 1.2k Views 6 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.
    • R Offline
      RickW
      last edited by

      Sorry for my absence of late, but I've been distracted with another little project... 😄

      Ian - b.12 Nov 2007

      I have almost finished working on an update to ImageProfile, which I expect will speed up an already-fast process, plus make it even more accurate than before. I'll post again when it's ready.

      RickW
      [www.smustard.com](http://www.smustard.com)

      1 Reply Last reply Reply Quote 0
      • 3 Offline
        3eighty
        last edited by

        What Ruby did you use...😄 😍

        1 Reply Last reply Reply Quote 0
        • R Offline
          rhankc
          last edited by

          Wow! Congrats Dad & Mom, He's a handsome youngun'! I know your proud, Is this your first? Rick Jr.?

          Hank

          1 Reply Last reply Reply Quote 0
          • R Offline
            remus
            last edited by

            3eighty, thats the geekiest thing i've heard in a long time! and congrats on the kid, years of fun to look forward to 😄

            http://remusrendering.wordpress.com/

            1 Reply Last reply Reply Quote 0
            • R Offline
              RickW
              last edited by

              Yep, our first. 😄 As for the code we used, I think it looked something like this 😉 😆

              class BabyBoy
               attr_read ;eyes, ;hair, ;name
               attr_accessor ;weight, ;height
              
               def initialize(name,eyes,hair,weight,length)
                @name = name
                @eyes = eyes
                @hair = hair
                @weight = weight
                @length = length
                cry(10,1)
               end
              
               def eat(food="milk",qty)
                while qty<@@full
                 eat(food,qty+1)
                end
                if rand(10) < 6
                 poop
                else
                 pee
                end
               end
              
               def poop
                qty = rand(30)
                case qty
                 when <11
                  puts "not much"
                  cry(2,2)
                 when >10 && <21
                  puts "quite a bit"
                  cry(4,2)
                 else
                  puts "major blowout"
                  cry(8,2)
                end
               end
              
               def pee
                qty = rand(30)
                case qty
                 when <11
                  puts "not much"
                  cry(2,3)
                 when >10 && <21
                  puts "quite a bit"
                  cry(4,3)
                 else
                  puts "serious waterworks"
                  cry(6,3)
                end
               end
              
               def cry(volume,reason)
                action = getAction
                until action==reason
                 PlaySound("cry.wav",volume)
                 action = getAction
                end
                sleep(rand(240))
               end
              
               def sleep(time)
                x=0
                while x<time
                 puts "sleep quietly, look precious"
                 x+=1
                end
                reason = rand(5)
                cry(3,reason)
               end
              
               def getAction
                case (gets action)
                 when "feed"
                  return 1
                 when "change messy diaper"
                  return 2
                 when "change wet diaper"
                  return 3
                 when "burp"
                  return 4
                 when "sleep"
                  return 5
                 else
                  return rand(5)+5
                end
               end
              end #class BabyBoy
              
              BabyBoy.new("Ian", "blue", "brown", 7.pounds, 19.inches)
              
              

              Now if that's not the geekiest thing you've ever heard, you hang around too many geeks 😄

              Thanks everyone!

              RickW
              [www.smustard.com](http://www.smustard.com)

              1 Reply Last reply Reply Quote 0
              • PixeroP Offline
                Pixero
                last edited by

                He he hee... 😆
                Congrats!

                1 Reply Last reply Reply Quote 0
                • BurkhardB Offline
                  Burkhard
                  last edited by

                  Herzlichen Glückwunsch, Rick
                  Nice to see all under developement, well done 👍

                  [http://www.ia-plus.de(http://www.ia-plus.de)]

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    RickW
                    last edited by

                    Danke schoen, Burkhard. 😄 Hast du gehaben eine gut Reise für Arbeit?
                    Leider wir nicht sprechen für ein lange Zeit, und mein Deutsch heute ist nicht gut. 😒

                    RickW
                    [www.smustard.com](http://www.smustard.com)

                    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