sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Shape Bender - preview

    Scheduled Pinned Locked Moved Developers' Forum
    55 Posts 25 Posters 6.3k Views 25 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.
    • TIGT Offline
      TIG Moderator
      last edited by

      It IS mind numbing doing that kind of thing...
      See my ComponentInstance-add_entities.rb for some ideas on how I work round it.
      If you stop-framed it at each stage you'd see that [ignoring the extra bits for making copies etc needed if entities are copied into the definition rather than moved, or the Outliner window glitch fixer...] it...

      Gets the transformation of the relevant component-instance ['self'].
      Makes a group of the given entities.
      Gets the transformation of that entities-group.
      Makes a group and adds an instance of the component-instance-definition and the entities-group [using the same transformations].
      Gets the transformation of that group.
      Makes a new group and adds an instance of the component-instance-definition and an instance of the entities-group [we can add a group into a group using group2.entities.add_instance(group1.definition,transformation2)]
      Transforms [translates] the copy-group to the ORIGIN using the component-instance's transformation reversed.
      Explodes the copy-group and gets the transformations of that temporary-group* and that temporary component-instance.
      Makes another new-group at the ORIGIN - then adds an instance of the component-instance-definition placed at the ORIGIN and an instance of the entities-group transformed by the transformation of the temporary-group* and its initial transformation...
      It explodes the component-instance and the entities-group within the new group.
      It turns that new-group into a new component instance, names it, erases it etc and replaces the definition of the original component-instance with the new component's definition.
      If copy-flag set 'true' then it explodes a copy of the entities-group back as they were - otherwise the entities are erased from the model and live on only inside the definition...
      If unique-flag NOT set 'true' - it replaces ALL other such instances and removes the earlier [now unused] definition from the model - having given the new definition the old one's name, description etc...
      It also erases all of the temporary groups chaff etc...

      ALL done in the twinkling of an eye...

      Phew !!! 🤓
      BUT it works...

      TIG

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

        Chris, very exciting! It's awesome to see this kind of talent! Can't wait for it's release!

        thanks!!

        1 Reply Last reply Reply Quote 0
        • utilerU Offline
          utiler
          last edited by

          Gee, I don't know why but since SU7 came out late last year we've seen more development through extensions that it makes me think Google needs to put a net over you lot and drag you all the way to boulder, build you a penthouse and feed you beer and pretzels till the next release....!!!!

          I bow to all you guys, you know who you are... ❗

          purpose/expression/purpose/....

          1 Reply Last reply Reply Quote 0
          • jeff hammondJ Offline
            jeff hammond
            last edited by

            @utiler said:

            Gee, I don't know why but since SU7 came out late last year we've seen more development through extensions that it makes me think Google needs to put a net over you lot and drag you all the way to boulder, build you a penthouse and feed you beer and pretzels till the next release....!!!!

            I bow to all you guys, you know who you are... ❗

            i agree to an extent but then again, you gotta remember one of the things that makes sketchup so good.. it's simplicity
            if it started being cram packed with features, it would lose that edge and begin looking like all the other stuff out there.

            i do think google really needs to offer more support for the script writers though. give them what they need so they can really go to town. beer & pretzels too
            also, it would be nice if they(google) could find a way to compensate the writers for their time and efforts.

            another option would be to use some of these newer rubies in the pro version. the original writers could definitely get paid then and there would be a better separation between the pro and free versions while the free version would maintain it's simplicity for new or sporadic users.

            dotdotdot

            1 Reply Last reply Reply Quote 0
            • utilerU Offline
              utiler
              last edited by

              Exactly what i was thinking Jeff, couldn't agree more!!!
              I believe the future Pro version should incorporate scripts from Whaat, Fredo6, Chris, TIG..... I'm going to stope there out of respect for not naming someone!!

              SU Pro should be different and how better to do so than by rewardint those who spend countless hours on these scripts for mostly a pat on their back from their peers...
              I think the lest thing to come out of such a "pro' version would be that through a collaborative effort, the wonderfully simple UI of SketchUp would be maintained....

              purpose/expression/purpose/....

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

                Maybe you must also consider than some coders write Plugs only for their pleasure? 😉

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

                1 Reply Last reply Reply Quote 0
                • jeff hammondJ Offline
                  jeff hammond
                  last edited by

                  @unknownuser said:

                  Maybe you must also consider than some coders write Plugs only for their pleasure? 😉

                  oh yeah, i'm pretty sure that's a main reason behind the scripts being written..

                  sort of like crossword puzzle freaks (which i am). that's also a reason why i won't even begin to try to understand the ruby language.. i just don't have the time to be addicted to it and knowing me, i would be..

                  still, if the coders are doing things that attract new SU users then i don't see why they shouldn't be compensated.. (or maybe it's the other way around?? the fact that ruby can be used with SU is what attracts the writers??)

                  dotdotdot

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

                    I have to admit, I am also one of those that gets "addicted" to things like programming. So for me it is all about the fun of learning, and making SU do things it just has never done before (though most of my scripts are re-writes of existing scripts). That being said, I would love to actually make a few bucks off scripts in the future. But that would require finding a script idea useful enough that people would pay for.....

                    Chris

                    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

                      I just like to "make stuff work".
                      Which is why I love LEGO. 😄

                      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
                        caddict
                        last edited by

                        Maybe you scripters should set up a donation system (if you haven't already). I don't see why compensation for your efforts shouldn't come directly from the community, rather than from the community via Google.

                        I suspect that among the SU community, there would be enough users prepared to make a voluntary payment for a script they enjoy. I'm only guessing here...

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

                          It is possible to set up a donation system. Fredo now has one. Smustard is also an alternative. You can host there and choose to release for free or sell it at a price. I have a few free ones there now, and I plan on putting more there in the future. I feel that they get a lot of eyes from across the internet on their site, not just the users on this board.

                          So really there are options to sell our scripts, or be compensated. Maybe in time I'll go that route,

                          Chris

                          PS. Anyone who keeps reading these new posts hoping one will be an update on shape bender....

                          Shape bender is coming along pretty well. I've got a lot the big bugs worked out. I've got a great User Interface in place now (much thanks to Fredo for a couple of hints on that front). There is really only a couple of things left to work out now - at least for the first round of user testing. But it will still take time. I've got a busy school week ahead of me. It's getting close to time to graduate in 1 month....!

                          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

                            1.jpg

                            3.jpg

                            2.jpg

                            4.jpg

                            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

                              Wow. Awesome UI.
                              You're quickly getting deep into advanced stuff Chris. 👍

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

                              1 Reply Last reply Reply Quote 0
                              • N Offline
                                numerobis
                                last edited by

                                Thank You very much Chris! Looks very interesting! 😎

                                Sketchup 7?
                                ...what's Sketchup 7?
                                i'm on Sketchup 6 Extended! 😆 😍

                                WOW! All these great Plugins are so much bigger than the tiny update to v7 - google should concentrate on 64bit and high poly support, that seems to be the only part that all these great programmers on this forum can't do...

                                1 Reply Last reply Reply Quote 0
                                • utilerU Offline
                                  utiler
                                  last edited by

                                  @unknownuser said:

                                  Maybe you must also consider than some coders write Plugs only for their pleasure? 😉

                                  Frenchy,

                                  Don't you think it would be nice to get a little cash on the side for 'doing crosswords'?

                                  purpose/expression/purpose/....

                                  1 Reply Last reply Reply Quote 0
                                  • jeff hammondJ Offline
                                    jeff hammond
                                    last edited by

                                    @unknownuser said:

                                    Glory has no price 😉

                                    haha

                                    looking real nice chris. real nice.

                                    dotdotdot

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

                                      @thomthom said:

                                      Wow. Awesome UI.
                                      You're quickly getting deep into advanced stuff Chris. 👍

                                      I tihnk you sort of pick and choose your battles. I have no clue how to implement observers yet. or inferencing for that matter. Thats tricky still.

                                      Chris

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

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

                                        @unknownuser said:

                                        Glory has no price 😉

                                        http://static.metal-archives.com/images/1/2/3/9/1239.jpg

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

                                          Chris, how much different will be your bend plugin be from the one released by Fredo with his Freescale 2?

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

                                            Fredo's works by selecting your shape and then bending using a protractor like tool. It only does one bend at a time. Mine will take a shape and bend it to match an existing curve, even if it requires multiple bends in the shape. It is sort of like morphing a a straight line into a curved line.

                                            Chris

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

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

                                            Advertisement