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

    [Plugin] Shape Bender Beta

    已排程 已置頂 已鎖定 已移動 Plugins
    1.3k 貼文 331 Posters 1.7m 瀏覽 329 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • B 離線
      benjamin22
      最後由 編輯

      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 條回覆 最後回覆 回覆 引用 0
      • X 離線
        xrok1
        最後由 編輯

        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 條回覆 最後回覆 回覆 引用 0
        • B 離線
          benjamin22
          最後由 編輯

          Ok no worries.


          New Design.skp

          1 條回覆 最後回覆 回覆 引用 0
          • Chris FullmerC 離線
            Chris Fullmer
            最後由 編輯

            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 條回覆 最後回覆 回覆 引用 0
            • A 離線
              August
              最後由 編輯

              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 條回覆 最後回覆 回覆 引用 0
              • X 離線
                xrok1
                最後由 編輯

                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 條回覆 最後回覆 回覆 引用 0
                • B 離線
                  benjamin22
                  最後由 編輯

                  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 條回覆 最後回覆 回覆 引用 0
                  • A 離線
                    August
                    最後由 編輯

                    @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 條回覆 最後回覆 回覆 引用 0
                    • X 離線
                      xrok1
                      最後由 編輯

                      @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 條回覆 最後回覆 回覆 引用 0
                      • M 離線
                        mbattler
                        最後由 編輯

                        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 條回覆 最後回覆 回覆 引用 0
                        • TIGT 離線
                          TIG Moderator
                          最後由 編輯

                          @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 條回覆 最後回覆 回覆 引用 0
                          • H 離線
                            huckrorick
                            最後由 編輯

                            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 條回覆 最後回覆 回覆 引用 0
                            • pilouP 離線
                              pilou
                              最後由 編輯

                              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 條回覆 最後回覆 回覆 引用 0
                              • TIGT 離線
                                TIG Moderator
                                最後由 編輯

                                Huckrorick

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

                                TIG

                                1 條回覆 最後回覆 回覆 引用 0
                                • Dave RD 離線
                                  Dave R
                                  最後由 編輯

                                  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 條回覆 最後回覆 回覆 引用 0
                                  • H 離線
                                    huckrorick
                                    最後由 編輯

                                    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 條回覆 最後回覆 回覆 引用 0
                                    • Dave RD 離線
                                      Dave R
                                      最後由 編輯

                                      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 條回覆 最後回覆 回覆 引用 0
                                      • A 離線
                                        August
                                        最後由 編輯

                                        @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 條回覆 最後回覆 回覆 引用 0
                                        • A 離線
                                          August
                                          最後由 編輯

                                          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 條回覆 最後回覆 回覆 引用 0
                                          • Chris FullmerC 離線
                                            Chris Fullmer
                                            最後由 編輯

                                            @huckrorick said:

                                            I can't seem to get the ruby to work.

                                            Do you by chance have component spray installed? That plugin seems to be breaking progressbar. If you have it installed, remove it and then restart SU and then try to run shape bender again.

                                            Chris

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

                                            1 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 22
                                            • 23
                                            • 24
                                            • 25
                                            • 26
                                            • 63
                                            • 64
                                            • 24 / 64
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement