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.
    • Chris FullmerC Offline
      Chris Fullmer
      last edited by

      What the up and down arrow keys do is reverse the start and end points of the shape and the line. They should always be to the "left" of the model. This is mostly due to my poor programming skills at the time I made this thing, this was afterall my 3rd plugin I'd ever written. When you press the up/down key, you should see the start and end tags flipping places. And when you press the left/right keys, the other start/end tags will flip places. Please align them to the "left" side. If you are looking straight down on the model, with the solid red line going out to the right, then both "start" tags should be on the left of the model. I don't know how to make it more clear unfortunately. Its a little bit of bad programming, and a lot of "the ruby script can't read your mind". It needs to know which end of the shape should match up to which end of the line. Choosing the wring thing will cause the results you are seeing.

      The reason it work once the model is closed and re-opened is because SketchUp does not remember the start and end positions of lines in between sessions - once the model is close, SU dumps its memmory of start and end. So often they come in backwards of what they were originally, meaning my script will interperet the start and end differently.

      Anyhow, just play with pressing up/down and left/right and get good at making the starts both line up on the "left" side of the model (also known as the more negative x value, if that makes more sense in your head).

      Good luck!

      Chris

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

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

        Thanks for the explanation Chris. Much appreciated.

        FWIW, on my computer, the Up arrow toggles the start and end positions on the curve and the Down Arrow toggles the start and end positions for the straight line. The Left and Right arrows don't do diddly.

        Etaoin Shrdlu

        %

        (THERE'S NO PLACE LIKE)

        G28 X0.0 Y0.0 Z0.0

        M30

        %

        1 Reply Last reply Reply Quote 0
        • S Offline
          SketchUpNoobie
          last edited by

          That helps a bunch! Thanks!

          @dave r said:

          FWIW, on my computer, the Up arrow toggles the start and end positions on the curve and the Down Arrow toggles the start and end positions for the straight line. The Left and Right arrows don't do diddly.

          Mine works the same way. 😕

          --

          SketchUpNoobie: the complete noob in all things SketchUp.

          1 Reply Last reply Reply Quote 0
          • charly2008C Offline
            charly2008
            last edited by

            Hi,

            This opens up many possibilities for jewelry or stucco designs. Who has other ideas.

            Charly


            2011-07-02_152703.jpg


            shapes.jpg

            He who makes no mistakes, makes nothing

            1 Reply Last reply Reply Quote 0
            • D Offline
              d12dozr
              last edited by

              Those are some wild shapes, Charly 👍

              3D Printing with SketchUp Book
              http://goo.gl/f7ooYh

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

                Thanks for clarifying Dave - I have not used the plugin in a whle obviously!, I've forgotten how it works apparently.

                Great shapes there Charly, looks like you're getting the hang of shapebender quite nicely now!

                Chris

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

                1 Reply Last reply Reply Quote 0
                • charly2008C Offline
                  charly2008
                  last edited by

                  Thanks Chris

                  could be interesting also for wood working.

                  Charly


                  2011-07-03_005613.jpg

                  He who makes no mistakes, makes nothing

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

                    Google SketchUp 8 - Windows 7 x64

                    Error; #<NoMethodError; undefined method `all_connected' for #<Sketchup;;ComponentInstance;0xaccf740>>
                    C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/clf_shape_bender/clf_shape_bender.rb;307;in `line_picker'
                    C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/clf_shape_bender/clf_shape_bender.rb;239;in `onLButtonUp'
                    C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/clf_shape_bender/clf_shape_bender.rb;307
                    
                    1 Reply Last reply Reply Quote 0
                    • Chris FullmerC Offline
                      Chris Fullmer
                      last edited by

                      That looks like a problenm with what you are selecting. I think you need to have just a single component selected when you begin the tool. Then click on a line.

                      Could you upload the model you tried it on? I could look at it and see what is wrong,

                      Chris

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

                      1 Reply Last reply Reply Quote 0
                      • charly2008C Offline
                        charly2008
                        last edited by

                        Hi,
                        I'm still experimenting with the different profiles and different paths.

                        In the example shown below,at the first step the profile is messed up. But that's not a problem. Press the up arrow key and then the down arrow key and the profile is then aligned.

                        Charly


                        1.jpg


                        2.jpg


                        4.jpg


                        5.jpg


                        7.jpg

                        He who makes no mistakes, makes nothing

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

                          I solved the problem. I didn`t have any line parallel to x-axis (red axis).

                          1 Reply Last reply Reply Quote 0
                          • charly2008C Offline
                            charly2008
                            last edited by

                            Hi,

                            Another attempt.


                            2011-07-04_130252.jpg


                            shape.jpg


                            temp_ppt.jpg

                            He who makes no mistakes, makes nothing

                            1 Reply Last reply Reply Quote 0
                            • charly2008C Offline
                              charly2008
                              last edited by

                              Hi,

                              here again, the individual steps.

                              Charly


                              2011-07-04_231541.jpg


                              ShapeBender1.skp

                              He who makes no mistakes, makes nothing

                              1 Reply Last reply Reply Quote 0
                              • C Offline
                                cancincon
                                last edited by

                                Hello,

                                First of all I thank you a lot for the script, a great idea and a great work.

                                However I am having trouble with making it work, probably because i am being a noob, but i would still appreciate some help.

                                When I try to make the script work it tells me to "select something" even though I already selected the object.

                                I tried many times but still get this error.

                                Can anyone point me out what i am doing wrong?

                                Thanks

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

                                  Did you select a component before trying to run the plugin?

                                  Etaoin Shrdlu

                                  %

                                  (THERE'S NO PLACE LIKE)

                                  G28 X0.0 Y0.0 Z0.0

                                  M30

                                  %

                                  1 Reply Last reply Reply Quote 0
                                  • C Offline
                                    cancincon
                                    last edited by

                                    @dave r said:

                                    Did you select a component before trying to run the plugin?

                                    yes i did 😐

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

                                      Did you perhaps select a group instead?

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

                                        @thomthom said:

                                        Did you perhaps select a group instead?

                                        hmm...maybe...

                                        well i am not even sure, i just made a cylinder and clicked on it with selection tool so it turns blue (so this is where i thought i selected it)

                                        Sorry, i know it sounds stupid but i would still appreciate some pointers about how to use this plug-in : (

                                        Thanks

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

                                          You need a 'Group' of geometry that you want to 'bend', a straight 'Line' parallel with the X-axis [Red] that determines the extents of the bending [note that this line cannor be connected to anything else!] and a 'curve' [i.e. an Arc, Bezier or collection of Edges 'Welded' into a Curve] that the bend will follow.

                                          To make a group select your required geometry [e.g. your cylinder] right-click and 'Make Group'; it now selects as a single object because the geometry is inside it [you can also use a component-instance instead of a group - then use 'Make Component'!]...

                                          The relative placement of the group[or component], the line and the curve affect the resultant bending.

                                          Select the group[or component] and start the 'Shape Bender' tool.
                                          Follow the prompts - pick the line - then pick the curve - swap the start/end with arrow-keys IF required [e.g. the ghost-image of the potential bent result looks 'twisted'].
                                          Press <enter> and the group is copied in a 'bent' form, as a new 'shape bender component'...Capture.PNG

                                          TIG

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

                                            You made a cylinder - as in you drew a circle and push-pulled it? Then what? Did you group it or make it into a component?

                                            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
                                            • 38
                                            • 39
                                            • 40
                                            • 41
                                            • 42
                                            • 63
                                            • 64
                                            • 40 / 64
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement