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

    Greeble Beta (Updated Feb-06-2009)

    Scheduled Pinned Locked Moved Developers' Forum
    69 Posts 15 Posters 7.2k Views 15 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

      @rickw said:

      Change all the ".to_i" methods to ".to_l" when handling the user input data, and you'll have metric support. Users will be able to enter 50mm, 12m, 23'4", etc. and it will be converted to SU units automatically.

      Oddly enough, though the ruby console will convert 1.km to SU units, it will not work from within a text string.

      Ok, now you can specify min/max scale offsets. It might take some time to figure that out. I'm pretty sure it is easy to break. But I generally use two negative numbers. The first one being larger than the second. But rememeber they are negative, so larger actually means closer to zero. So I would use -10 and -100 in that order.

      It should also be compatible with metric now too. It has serious issuse though with accuracy and I'm sure its how I'm doing it. In inches and feet, you enter values (like 100-1000 inches) and it would always stick to whole integers. But in metric, it doesn't stick to whole numbers because of how SU is converting the value to a length. So maybe I'll figure out a fix for that.

      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
        todd burch
        last edited by

        What, no WebDialog user interface??? Chicken!!

        Very nice work indeed Chris!!! Very nice. You can implement ProgressBar.rb and you'll satisfy Pilou. It's real easy, instructions are on Smustard with the script.

        Todd

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

          โ˜€

          Ps Seems to me there is a big bug ๐Ÿ˜„
          After use the Super Greeble, grouping this one, the Move, Rotation with copy don't work for the greebled object or for any other object!!! ๐Ÿ˜ฎ
          Curious that don't make that at each time but sometime ๐Ÿ˜ฒ
          After the * only one group is created and it is re-centered like the first!

          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

            ๐Ÿ˜ž, yeah I know this version right now has bugs. I made the mistake of updating it thinking I had all the bugs worked out. Then I found some problems and realized I did not have a backup copy of the older version - oops! So give me some time and I'lkl get a more stable version up, but I might have to revert a few features.

            @Todd the progressbar.rb is a great idea. I was a little overwhelmed thinking about making an hourglass cursor and stuff, but progressbar sounds like a great option!

            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

              Interesting. It should not happen. Would you mind trying again with this new version I just finished? It now supports (requires) progressbar.rb from smustard and it also supports a min/max offset value. I think its kind of confusing, but I'll leave it in because it is sort of cool what it allows you to do. But to get decent results, the first offset # should be closer to zero than the second offset number. Or set them both to zero for no offset or both to -10 for an even -10 offset on all faces. And remember, that negative numbers will make an inset face, while positive numbers will offset a larger face. It might be time to update my beginning video now. Thanks for testing everyone!

              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

                Another thing ๐Ÿ˜‰
                Is that normal on a Tin surface all facets are selected but all facets don't be greebled โ“


                tin.jpg

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

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

                  Thank you sir Malaise! โ˜€
                  I will take care next time ๐Ÿ˜‰


                  greb.jpg

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

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

                    Sorry but nothing works with this last version ๐Ÿ˜ฎ ( maybe because i am in cm and your written in inch ?)
                    Have you somewhere an old version because I have yet a version that not working now ๐Ÿ˜’
                    (I have not made a saving one of the previus ๐Ÿ˜ณ
                    I must go back to Protrude ๐Ÿ˜„


                    prot01.jpg

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

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      Jim
                      last edited by

                      Partly due to the outrage expressed in this thread, I've decided to dis-allow posting of other people's scripts. A script author needs to be able to control which version of the script is available, and where it is posted.

                      Hi

                      1 Reply Last reply Reply Quote 0
                      • MALAISEM Offline
                        MALAISE
                        last edited by

                        Hi Pilou

                        here is the first version

                        MALAISE ๐Ÿ˜‰

                        [removed attachment] -- Jim

                        La Connaissance n'a de valeur que partagรฉe

                        1 Reply Last reply Reply Quote 0
                        • J Offline
                          johnsenior1973
                          last edited by

                          @jim said:

                          Partly due to the outrage expressed in this thread, I've decided to dis-allow posting of other people's scripts. A script author needs to be able to control which version of the script is available, and where it is posted.

                          There's a huge difference between someone helping another member out by posting an earlier version that worked for them and someone who's collecting other people's rubies and charging money for them.

                          Chris said, on this page: yeah I know this version right now has bugs. I made the mistake of updating it thinking I had all the bugs worked out. Then I found some problems and realized I did not have a backup copy of the older version - oops!

                          1 Reply Last reply Reply Quote 0
                          • GaieusG Offline
                            Gaieus
                            last edited by

                            Okay John, I guess Jim would like members to follow these guidelines applying common sense of course.

                            Gai...

                            1 Reply Last reply Reply Quote 0
                            • MALAISEM Offline
                              MALAISE
                              last edited by

                              No problems Folks.... I understand. ๐Ÿ˜„
                              MALAISE

                              La Connaissance n'a de valeur que partagรฉe

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

                                Oh dear, go to bed and all heck breaks loose ๐Ÿ˜„

                                I'll look at the script right now and see if its better. It sure run smoothly on my computer I was testing it on, so it definitely could be the metric problem. Thanks for the patience,

                                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

                                  Well this is driving me nuts. I can see already that the version I uploaded is not the most recent version based on a few tweaks that are wrong. SO I'll go to the computer I was working on this on and see if it has the most recent. I did find a the spot that the script is breaking, and its in a spot that looks stable. Soooo, hopefully I'll find the working copy again and be able to upload that later today.

                                  Chris

                                  EDIT: for now, if someone wants to post an older working version, I wouldn't mind having a copy either ๐Ÿ˜„ But once I get the script working, I wouldn't mind it being removed.

                                  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

                                    Take your time! โ˜€
                                    And a little trick ; when you develop : make some copy any time on any version on any supports!
                                    DD,DVD, Usb,Net etc...
                                    That can seems obvious but now your prog is only maybe less than 10 Kb so some easy to recover ๐Ÿ˜‰
                                    That will be not the case when you will have some megas of code! ๐Ÿ’š

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

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

                                      @chris fullmer said:

                                      Well this is driving me nuts. I can see already that the version I uploaded is not the most recent version based on a few tweaks that are wrong. SO I'll go to the computer I was working on this on and see if it has the most recent. I did find a the spot that the script is breaking, and its in a spot that looks stable. Soooo, hopefully I'll find the working copy again and be able to upload that later today.

                                      Chris

                                      EDIT: for now, if someone wants to post an older working version, I wouldn't mind having a copy either ๐Ÿ˜„ But once I get the script working, I wouldn't mind it being removed.

                                      Nice addition Chris!

                                      FYI: I just d/led this file. it works with SU 7 but SU6
                                      It might be better to simply post updated scripts in a zip or rar file that way the rar or zip will have a revision number you can always keep track of. Instead of simply changing the original post. Its just an idea I had.

                                      [my plugins](http://thingsvirtual.blogspot.ca/)
                                      tomot

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

                                        @tomot said:

                                        FYI: I just d/led this file. it works with SU 7 but SU6
                                        It might be better to simply post updated scripts in a zip or rar file that way the rar or zip will have a revision number you can always keep track of. Instead of simply changing the original post. Its just an idea I had.

                                        that should have read " FYI: I just d/led this file. it works with SU 7 butnotSU6"

                                        [my plugins](http://thingsvirtual.blogspot.ca/)
                                        tomot

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

                                          @unknownuser said:

                                          that should have read " FYI: I just d/led this file. it works with SU 7 but not SU6"

                                          aaaaaaaaaaaaaaaaahhhhhhhhhhhhhhhhh ! ๐Ÿ˜ฎ
                                          ๐Ÿ˜ณ ๐Ÿ˜ณ ๐Ÿ˜ณ
                                          โ˜€


                                          su7.jpg

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

                                          1 Reply Last reply Reply Quote 0
                                          • thomthomT Offline
                                            thomthom
                                            last edited by

                                            @chris fullmer said:

                                            EDIT: If any Ruby coders are still following this thread, I am having problems that some greebles end up overlapping other faces and then delete faces that are queued to be greebled, then my script stops because it runs across a face that has been deleted. At least that is what I think is happening. So to solve that do I need to test each face to make sure it is not delete before I run the offset and push/pull?

                                            If you are trying to modify deleted objects then you should get an error in the console about that. If that's your problem then do a .valid? test on the entity you try to work with.

                                            I'm currently working on a script where I clean up the model, deleting lots of stuff and I've run into all sorts of problems as things shifts around when you delete entities. It seems the best is to loop over an array copy of entities which you've collected in before hand.

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

                                            Advertisement