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

    [Plugin] Shape Bender Beta

    Scheduled Pinned Locked Moved Plugins
    1.3k Posts 331 Posters 1.7m Views 329 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.
    • X Offline
      xrok1
      last edited by

      😆 aren't we all.

      “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

      http://www.Twilightrender.com try it!

      1 Reply Last reply Reply Quote 0
      • B Offline
        benjamin22
        last edited by

        Hi guys, Just wondering why my pipe is bending like this...
        Problem.jpg
        The circular parts of the pipe are staying vertical rather than arraying around the arc, thus crushing the pipe and flattening it out!
        Also how can I get more segments into my circle to smooth it out?

        Thanks a million!

        1 Reply Last reply Reply Quote 0
        • X Offline
          xrok1
          last edited by

          thanks ben, for a minute there i forgot this was a shape bender thread. 😆

          could you post a file? its hard to tell whats going on from the image/description.

          “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

          http://www.Twilightrender.com try it!

          1 Reply Last reply Reply Quote 0
          • B Offline
            benjamin22
            last edited by

            Ok no worries.


            New Design.skp

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

              Hi Ben, I wrote the script with the intention that the bendy shape would be lying flat. If you just rotate the arc 90 degrees so its flat on the ground, then the bending will work as expected. Hope that helps!

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

                Hi Ben,

                @benjamin22 said:

                ... The circular parts of the pipe are staying vertical rather than arraying around the arc, thus crushing the pipe and flattening it out!

                Thanks for uploading the sample file.

                Back in March, I showed an example of using Shape Bender with vertical curves, in this post, where I attached a picture that shows the target curve in the Green-Blue plane and not flat at all.

                In that sample, the vertical faces of the original shape stay vertical, they don't fan out on the convex curves and compress on the concave curves. That's what's happening to your pipe too.

                Shape Bender slices up the Original Object with vertical slices, according to how many segments there are in the Target Curve. One of the keys to predicting how it is going to work is that it will keep those slice faces vertical. It will rotate them in the Red-Green plane, but the slices will stay vertical.

                The result is that for vertical curves Shape Bender projects the shape onto the curve vertically, for horizontal curves, it fans out and compresses, which is typically what you expect.

                @unknownuser said:

                Also how can I get more segments into my circle to smooth it out?

                The number of segments in the Shape Bender Result is exactly the number of segments in your Target Curve. So you just need to draw your Target Curve with more segements. Whether you are using a Circle and cutting it or if you are starting with an Arc, when you select the tool, you can tell it the number of segments by typing a number and following it with an "s" to tell SU that the "units" for the number is segments.

                Sometimes you can get away without the "s" if you have not started drawing yet, but SU can quickly decide that you are drawing at which point any number with no units will be the radius in the default units. So I always put the "s" in. I'm already typing the number anyway.

                I hope this helps,
                August

                “An idea, like a ghost, must be spoken to a little before it will explain itself.”
                [floatr:v1mcbde2]-- Charles Dickens[/floatr:v1mcbde2]

                1 Reply Last reply Reply Quote 0
                • X Offline
                  xrok1
                  last edited by

                  rotated:
                  on the first one i shortened the straight line to the same length as the pipe/tube.


                  Capture1.JPG

                  “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

                  http://www.Twilightrender.com try it!

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    benjamin22
                    last edited by

                    Chris, August & xrok thanks a lot! you guys are legends, very helpful. Keep up the good work, I'm in my 3rd yr of architecture and always looking to do more and more complicated things on sketchup and its good to know there is this great site to go to when I get stuck!

                    Cheers guys.

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

                      @benjamin22 said:

                      ... you guys are legends ...

                      I am honored and humbled that you put me in the same category as Chris and Xrox.

                      August

                      “An idea, like a ghost, must be spoken to a little before it will explain itself.”
                      [floatr:v1mcbde2]-- Charles Dickens[/floatr:v1mcbde2]

                      1 Reply Last reply Reply Quote 0
                      • X Offline
                        xrok1
                        last edited by

                        @august said:

                        @benjamin22 said:

                        ... you guys are legends ...

                        I am honored and humbled that you put me in the same category as Chris and Xrox.

                        August

                        ditto 😳

                        “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

                        http://www.Twilightrender.com try it!

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          mbattler
                          last edited by

                          I have down loaded the shape bender files but can not figure out how to get into the program to work. Does anyone know the steps?

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

                            @mbattler said:

                            I have down loaded the shape bender files but can not figure out how to get into the program to work. Does anyone know the steps?

                            Haven't you watched the movie on the same page as the download ?
                            http://forums.sketchucation.com/viewtopic.php?p=147395#p147395

                            TIG

                            1 Reply Last reply Reply Quote 0
                            • H Offline
                              huckrorick
                              last edited by

                              I can't seem to get the ruby to work.
                              All I get is a line at the bottom that says "5%. End @ ? (1 of 5) Searching for objects to explode."
                              Nothing more happens.

                              Here is what I did:
                              I downloaded the zip file, unzipped, copied the folder and the 1kb ruby file to my plugin directory, started Sketchup, made a rectangular component, drew a line on one edge of the component, drew an arc, selected the component, started the plugin, selected the line, then the arc, go the line noted above and nothing else.

                              I attached a screen shot of what I get.

                              Can anyone suggest what I am doing wrong?

                              Thanks,

                              Huck


                              ShapeBenderProb.jpg

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

                                Move the cube on the green axis or anywhere on the positive xy space
                                Don't draw the line // red axis on the cube edge but on an empty space!
                                press the up arrow for select the Bender result form 😉
                                If that don't work like this, there is a problem because I make that you say and that is working and that is instanteneous! 😄
                                Post your file!
                                bender.jpg
                                cube.jpg

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

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

                                  Huckrorick

                                  Have you installed ' progressbar.rb' as instructed on the page with the main download link ?

                                  TIG

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

                                    Looks like it's still in the process of running according to the bottom edge of his screen grab.

                                    Etaoin Shrdlu

                                    %

                                    (THERE'S NO PLACE LIKE)

                                    G28 X0.0 Y0.0 Z0.0

                                    M30

                                    %

                                    1 Reply Last reply Reply Quote 0
                                    • H Offline
                                      huckrorick
                                      last edited by

                                      I tried all the suggestions:

                                      1. I did as Pilou suggested.
                                      2. I reinstalled progressbar.rb
                                      3. It does appear that the program is still running considering the message at the bottom. However, I waited one half hour with no result. I thought the cube and arc would be a very simple test.

                                      Is there some setting in Sketchup that could affect this?
                                      Any other help?

                                      I attached the screen shot of the new test.
                                      I also am attaching the Sketchup file.

                                      HuckShapeBenderProb.jpg


                                      ShapeBenderProb.skp

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

                                        Well, it isn't a problem with your SKP file. I was able to run the plugin with no problem.

                                        Out of curiosity, is clf_shape_bender.rb is the the clf_shape_bender folder?

                                        Etaoin Shrdlu

                                        %

                                        (THERE'S NO PLACE LIKE)

                                        G28 X0.0 Y0.0 Z0.0

                                        M30

                                        %

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

                                          @august said:

                                          ... Shape Bender slices up the Original Object with vertical slices, according to how many segments there are in the Target Curve. One of the keys to predicting how it is going to work is that it will keep those slice faces vertical. It will rotate them in the Red-Green plane, but the slices will stay vertical. ...

                                          It's a little more complicated than that. The slices stay vertical, but it's not a straight linear projection, as I was implying.

                                          Based on the attached drawing, I think the Guide Line gets evenly divided into the number of segments in the Target Curve, so if the segments in the Target Curve are not evenly spaced, different segments in the Result will be stretched or compressed horizontally.

                                          In the drawing, a straight projection of the Target Curve onto the Guide line results in uneven spacing, but where the Source Object is divided is different, those places are evenly spaced along the length of the Guide line.

                                          I hope this helps,
                                          August


                                          Shape Bender with Vertical Curve

                                          “An idea, like a ghost, must be spoken to a little before it will explain itself.”
                                          [floatr:v1mcbde2]-- Charles Dickens[/floatr:v1mcbde2]

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

                                            Here's a similar drawing for a horizontal (red-green plane) Target Curve.


                                            shape bender horizontal.jpg

                                            “An idea, like a ghost, must be spoken to a little before it will explain itself.”
                                            [floatr:v1mcbde2]-- Charles Dickens[/floatr:v1mcbde2]

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 20
                                            • 21
                                            • 22
                                            • 23
                                            • 24
                                            • 63
                                            • 64
                                            • 22 / 64
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement