• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

[Plugin] Shape Bender Beta

Scheduled Pinned Locked Moved Plugins
1.3k Posts 331 Posters 1.7m Views
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.
  • C Offline
    carammilla
    last edited by 2 Jun 2012, 14:43

    nice

    1 Reply Last reply Reply Quote 0
    • P Offline
      pbacot
      last edited by 2 Jun 2012, 21:15

      Hello,

      Thanks for the great plugin work! This is one I've never tried before so I thought I would, since it is often mentioned here. Is it supposed to work on Macs?

      In this test I wish to make the rectangular bar bend in the shape of the curve shown. Are there any further tips on how to make it look more like the arc shape?

      Thanks, Peter

      Screen shot 2012-06-02 at 2.07.11 PM.png
      AutoSave_shape bender test.skp

      MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

      1 Reply Last reply Reply Quote 0
      • D Offline
        Dave R
        last edited by 2 Jun 2012, 21:27

        Peter,

        I got it to go but only after I deleted your funny shape, purged unused stuff from the file, saved it and reopened it. Notice I also moved the line relative to the component. The distance between the line and the component will be used at the distance between the new component and the arc. I expect there distance you had in your set up was a bit too much for Shape bender to create the properly bent shape from the straight version.


        AutoSave_shape bender test.skp

        Etaoin Shrdlu

        %

        (THERE'S NO PLACE LIKE)

        G28 X0.0 Y0.0 Z0.0

        M30

        %

        1 Reply Last reply Reply Quote 0
        • P Offline
          pbacot
          last edited by 2 Jun 2012, 22:34

          Dave,

          Thanks for the help! I didn't pick that up about the distance. I didn't find anything to purge but the object created by the plugin.

          Peter

          MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

          1 Reply Last reply Reply Quote 0
          • D Offline
            Dave R
            last edited by 2 Jun 2012, 22:40

            You can play the distance thing to your advantage so it the curve is the centerline of the bent shape, you'll put the straight line on the centerline of the unbent form.

            I found 13 unused materials also.

            Etaoin Shrdlu

            %

            (THERE'S NO PLACE LIKE)

            G28 X0.0 Y0.0 Z0.0

            M30

            %

            1 Reply Last reply Reply Quote 0
            • P Offline
              pbacot
              last edited by 2 Jun 2012, 23:22

              Thanks. Yeah, I forgot to look at the materials!

              MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

              1 Reply Last reply Reply Quote 0
              • S Offline
                sags
                last edited by 11 Jun 2012, 06:18

                thank you for the shape bender sir.. πŸ‘

                1 Reply Last reply Reply Quote 0
                • H Offline
                  huntress_ss
                  last edited by 12 Jun 2012, 09:53

                  Hey Chris,
                  I've tried ading this plug-in to my sketch-up but it's not working. Show's up with error load with "Error Loading File clf_shape_bender_loader.rb
                  no such file to load -- progressbar.rb"

                  Any suggestions on how to get this working?

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    Gaieus
                    last edited by 12 Jun 2012, 10:04

                    Please, read the instructions carefully. Chris clearly wrote that you (also) need to install progresbar.rb.

                    Gai...

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      mwm5053
                      last edited by 25 Jun 2012, 03:33

                      Not sure if this has been covered but getting error when using Shape bender with a slew of plugins in plugin folder when all are removed but
                      Shape Bender it works fine screen shot on ruby console
                      Thanks in advance.


                      Screen Shot 2012-06-24 at 9.23.44 PM.png

                      2011 iMac
                      SU 2015 Pro, 2017 Make
                      V2 Twilight
                      macOS Sierra 10.12.5

                      1 Reply Last reply Reply Quote 0
                      • TIGT Offline
                        TIG Moderator
                        last edited by 25 Jun 2012, 10:25

                        This is an odd error... it relates to a variable that should be set to a number by one of the tool's methods in line #676, clearly it's failing to do that hence the 'nil' error message when its used for a '/' divide calculation...
                        @offset = **@y_total** / 6
                        This is set around line #641, as either
                        @y_total = @line_y - @ymin
                        or
                        @y_total = @ymax - @ymin
                        So it seems the get_max_y method is failing somehow.
                        That is turn is called from the get_geom_ents method; which is in turn called in line #249 when the user has picked the required objects to trigger the 'bending'...

                        This suggests that if there's no error in the script [used without issue by thousands?] then perhaps another script is making an 'unwrapped' call of its method[s] with similar names and thereby causing the issue - unlike the usual rogue scripts which redefine how Sketchup treats Groups etc, which is far more awkward...
                        A 'fix' could be to do a find/replace on all of the code in the script [using Notepad osa], so that all of the get_max_y become say get_max_y_CLF and get_geom_ents become get_geom_ents_CLF - then any clash with other scripts might be averted...

                        TIG

                        1 Reply Last reply Reply Quote 0
                        • thomthomT Offline
                          thomthom
                          last edited by 25 Jun 2012, 10:49

                          Hasn't that error been described and explained earlier in this thread? Think it comes up pretty often. Might be a bug in the code itself. Might be worth adding it to the first post (when we work out what it was again.)
                          Wasn't there something about the orientation of the geometry?

                          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
                            cris_santiago
                            last edited by 25 Jun 2012, 21:06

                            hell yeah πŸ‘Š
                            !!!

                            1 Reply Last reply Reply Quote 0
                            • V Offline
                              VictorB
                              last edited by 1 Jul 2012, 20:51

                              I'm hoping you guys might be able to help me out on this crash I'm getting while using Shape Bender. I'm trying to make a bangle/cuff bracelet for a friend's bday. I've designed the bracelet as a flat bar, and then was going to use shape bender to curve it into a bracelet shape. When I run Shape Bender, it says that it's calculating the curve and angles, and that it's breaking the component into 13 pieces, and then shortly after it starts processing, it just crashes.

                              I've tried rescaling the component so that it's true to size, and I still get the same crash. I'm at a stand still right now and don't know if it's a problem with SketchUp or Shape Bender. I'm still a total design newb (this is only the 2nd thing I've designed), so there is a great chance there is a flaw with my work.

                              I've attached the file I'm working with if anyone wants to try to bend it and see if they get the same crash. Any help or words of wisdom are greatly appreciated.

                              Thanks!


                              RB component.skp

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                Dave R
                                last edited by 1 Jul 2012, 21:01

                                Where's the curve to which you want the thing bent? It's a lot of geometry to deal with. Perhaps you could split it into smaller chunks and process them one at a time?

                                It looks like you could do a lot of clean up. Delete coplanar edges and correct the face orientation.

                                Etaoin Shrdlu

                                %

                                (THERE'S NO PLACE LIKE)

                                G28 X0.0 Y0.0 Z0.0

                                M30

                                %

                                1 Reply Last reply Reply Quote 0
                                • TIGT Offline
                                  TIG Moderator
                                  last edited by 1 Jul 2012, 21:15

                                  Ok...
                                  A few pointers.
                                  It has some very small facets so works at say x100 scaled up, then scale down back to 'real size'.
                                  Small facets can exist but making/manipulating them is problematical.
                                  Presumably the bracelet is for 3d printing ?
                                  It'll probably needs to be a 'solid'...
                                  You have several reversed faces - make all seen-faces off-white and all unseen back-faces the blue - use 'reverse' or 'orient'.
                                  You have several 'nested' parts - e.g. the letters - these need exploding into one set of 'raw' geometry inside the 'container'.
                                  Some of these letters will have coincident edges with the 'studding' below them and probably inner faces when merged - therefore these edges will have more than 2 faces - the requirement for a solid - the form is edges/faces only and all edges in the form have only 2 faces [now more no fewer]. You'll need to do some editing to relocate or remove these so it will be 'solid'...

                                  I assume you want to bend it with the lettering on the outside - it might therefore be easier to set the object on its side and bend it around that way ?

                                  The model is far from a disaster - you can readily fix it up, and bend it as needed, with a little thought and effort... πŸ€“

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • V Offline
                                    VictorB
                                    last edited by 1 Jul 2012, 23:10

                                    Thanks for the input guys. I think what I'll do is start from scratch and try to do things the proper way. Again, this was only my 2nd design ever on SU and in 3d at all. I'm going to take everyone's advice here and see if I can make this new version much, much cleaner.

                                    Thanks for the input! I appreciate it.

                                    1 Reply Last reply Reply Quote 0
                                    • TIGT Offline
                                      TIG Moderator
                                      last edited by 1 Jul 2012, 23:24

                                      @victorb said:

                                      Thanks for the input guys. I think what I'll do is start from scratch and try to do things the proper way. Again, this was only my 2nd design ever on SU and in 3d at all. I'm going to take everyone's advice here and see if I can make this new version much, much cleaner.
                                      Thanks for the input! I appreciate it.
                                      As I said it quite salvageable as it is... just relocate slightly and explode the nested bits, reverse some back-faces, use section-cuts to see inside and erase 'partitions' etc, erase coplanar edges [several free tools for that] - Entity Info reports it as a "solid" when it's fixed; scale up x100, then orient the object on its side and shape-bend it... finally scale down.

                                      TIG

                                      1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        markitekt
                                        last edited by 10 Jul 2012, 16:33

                                        I haven't read through every post here, but I am unable to get this script to work in version 8. It works fine in version 7 but I'm unable to make it work in 8. It may be due to other plugins since I use quite a few. I was just wondering if anyone else had run into problems with other plugins or if its a version 8 issue.
                                        Mark

                                        1 Reply Last reply Reply Quote 0
                                        • D Offline
                                          Dave R
                                          last edited by 10 Jul 2012, 16:45

                                          Hi Mark. Long time, no see.

                                          I use it on SU8 without problems. Does anything happen for you when you try to run it? Do you get anything in the Ruby console if you have it open while trying to run it?

                                          Etaoin Shrdlu

                                          %

                                          (THERE'S NO PLACE LIKE)

                                          G28 X0.0 Y0.0 Z0.0

                                          M30

                                          %

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 48
                                          • 49
                                          • 50
                                          • 51
                                          • 52
                                          • 63
                                          • 64
                                          • 50 / 64
                                          • First post
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement