• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

[Plugin] Bezier Patch v1.1

Scheduled Pinned Locked Moved Plugins
22 Posts 14 Posters 26.1k Views 14 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.
  • N Offline
    ngon
    last edited by 26 Jan 2008, 21:36

    Hello,

    Attached is a Bezier patch creator, adding a new item to the Draw menu. It has some fixes and improvements over the first release, which I had posted a while back at the forums at sketchup.com, but those seem to be down now. The main changes are:

    o Patch would sometimes not appear where you first drew it. This is fixed.
    o A Bezier parameters dialog appears when you first select the tool.
    o Removed the Bezier Grid menu item (an edge-only version of the patch), though this may be restored if you wish by uncommenting a line in the bez-patch.rb file.

    To use:
    After unzipping the zip or tar file, a bez-patch-1.1/ directory is created. Move the two folders inside it into your plugins directory. In Sketchup, type at the Ruby console

    load 'bez-patch/bez-patch.rb'

    and you'll be ready to go. (If you always want it available on startup, move the file bez-patch/bez-patch.rb up one folder so that it is in the base plugins/ directory.) After selecting Draw > Bezier Patch, a parameters dialog appears with: U Order, V Order, U Steps, V Steps. U & V refer to the 2D patch axes; Order refers to the number of control points in each direction; and Steps are the number of faces created in each direction. After clicking OK, click once to place a corner, move and click again to place another corner, then move and click again to pull the second dimension. Right-click on patch to edit the control points. Individual points and lines between points may be dragged. Using the arrow keys while highlighting a control point will lock the axis of movement along one of the major axes. If you later wish to change the number of steps in each direction, use the VCB while in edit mode; order is not changeable after creation.

    It does not use any SU6-specific features, so should be fine in SU5.

    Cheers,
    Victor


    Choose either attachment


    Choose either attachment

    1 Reply Last reply Reply Quote 0
    • F Offline
      fredo6
      last edited by 26 Jan 2008, 22:28

      Great script!
      And works fine for me on v6
      I gave me some inspiration about what you can do with Sketchup and Ruby, when I redesigned the Bezier curves from the @Last version.

      Thanks again

      Fredo

      1 Reply Last reply Reply Quote 0
      • P Offline
        pilou
        last edited by 26 Jan 2008, 22:37

        Cool! ☀

        No preview nurbs or similar for have control points on the curves?

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

        1 Reply Last reply Reply Quote 0
        • G Offline
          Gaieus
          last edited by 26 Jan 2008, 23:48

          Thanks for the update, Victor!

          I've been using this script for a while and have always enjoyed it.

          Gai...

          1 Reply Last reply Reply Quote 0
          • D Offline
            darkhelmet
            last edited by 24 May 2008, 21:28

            I downloaded the bezier.rb file from http://sketchup.google.com/download/rubyscripts.html, copied the file to \program files\sketchup\plugins\ but I never see a new icon on the Draw menu.

            What am I doing wrong?

            SU v6.4.112

            1 Reply Last reply Reply Quote 0
            • R Offline
              remus
              last edited by 24 May 2008, 21:30

              have you restarted sketchup since you installed the plugin? if not you need to.

              http://remusrendering.wordpress.com/

              1 Reply Last reply Reply Quote 0
              • E Offline
                ely862me
                last edited by 24 May 2008, 23:31

                for me isn t working..unzipped in plugins folder..should i do something else?

                after typeing that in ruby console appeared this

                load 'bez-patch/bez-patch.rb'
                Error: #<SyntaxError: (eval):149: compile error
                (eval):149: syntax error
                load 'bez-patch/bez-patch.rb'
                ^>
                (eval):149

                Elisei (sketchupper)


                Before no life was done on Earth it was THE LIFE ITSELF...GOD
                Come and See EliseiDesign

                1 Reply Last reply Reply Quote 0
                • J Offline
                  Julius
                  last edited by 24 May 2008, 23:46

                  yes, you should copy the file "bez-patch.rb" from the "bez-patch" folder to the "plugins" folder.
                  then you should see the control in Draw -> Bezier Patch

                  @ngon said:

                  To use:
                  If you always want it available on startup, move the file bez-patch/bez-patch.rb up one folder so that it is in the base plugins/ directory.) After selecting Draw > Bezier Patch...

                  1 Reply Last reply Reply Quote 0
                  • E Offline
                    ely862me
                    last edited by 24 May 2008, 23:53

                    thx a lot julius,it s finally working,and not at last thx Victor

                    Elisei (sketchupper)


                    Before no life was done on Earth it was THE LIFE ITSELF...GOD
                    Come and See EliseiDesign

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      darkhelmet
                      last edited by 25 May 2008, 00:11

                      It was probably installed all along - I was looking for a tool icon within the Draw toolbar. Operates kinda weird compared to Illustrator's bezier tools.

                      Thanks.

                      1 Reply Last reply Reply Quote 0
                      • J Offline
                        Julius
                        last edited by 25 May 2008, 00:33

                        there is also another toll for making bezier curves called Bezier spline. you can find it here: http://www.crai.archi.fr/RubyLibraryDepot/Ruby/en_edi_page.htm

                        1 Reply Last reply Reply Quote 0
                        • thomthomT Offline
                          thomthom
                          last edited by 8 Dec 2009, 21:27

                          Interesting. I wasn't aware of this plugin. I just begun work on my own Bezier Patch tool.
                          Is this being developed any more?

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

                          1 Reply Last reply Reply Quote 0
                          • G Offline
                            Gaieus
                            last edited by 8 Dec 2009, 23:02

                            I don't think so. The original author posted it in the old @Last forums saying (something like) "he needed it for a certain task and sharing it but won't be interested in developing it nor any further support..."

                            Gai...

                            1 Reply Last reply Reply Quote 0
                            • B Offline
                              bojanav
                              last edited by 24 Nov 2010, 23:13

                              hi, guys! pls help... i did everything as u said, and it IS working, ie, it loads etc, and u can draw the patch no problem, but when i go into the edit patch mode, all the controlled points are grayed out... u can't move or do anything with them...

                              tried around 5 more things to try to make it work (copied all files direct into main plugin folder, even tried deleting 'lock axes' script in utilities.... nothing!

                              any idea why this is not working?

                              p.s. have bezier splines plug in also - hope its not interfering with it someway...

                              THANKS!! bojana

                              1 Reply Last reply Reply Quote 0
                              • thomthomT Offline
                                thomthom
                                last edited by 25 Nov 2010, 11:35

                                Could be due to a bug in SU8... I'm not sure. But the Bezier curve plugin from Google also didn't work when you tried to edit in SU8.

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

                                1 Reply Last reply Reply Quote 0
                                • B Offline
                                  bojanav
                                  last edited by 25 Nov 2010, 15:53

                                  well, bezier curve plugin works fine, although only when you rightclick%select 'BZ-edit classic bezier curve' (when you just select 'edit bezier curve' control points stay frozen also....

                                  but which bug?? can i fix it somehow?

                                  if not, is there anywhere to download the working version? (it is just strange, since comments posted under the current plugin were pretty positive ones... so seem that overall, it should work....'

                                  thank you for your reply! bojana

                                  @thomthom said:

                                  Could be due to a bug in SU8... I'm not sure. But the Bezier curve plugin from Google also didn't work when you tried to edit in SU8.

                                  1 Reply Last reply Reply Quote 0
                                  • thomthomT Offline
                                    thomthom
                                    last edited by 25 Nov 2010, 16:09

                                    @bojanav said:

                                    but which bug?? can i fix it somehow?

                                    It's a bug in SketchUp. Google needs to fix that. However, with Google's Bezier tool I make a patch to work around it: http://forums.sketchucation.com/viewtopic.php?f=323&t=30973

                                    As for this Bezier Patch plugin - I don't know. I've not looked at the code.

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

                                    1 Reply Last reply Reply Quote 0
                                    • A Offline
                                      arkarthikn
                                      last edited by 9 Aug 2014, 19:15

                                      It says "Error Loading File bez-patch.rb
                                      no such file to load -- bez-patch/BezPatch.rb
                                      Kindly Help

                                      1 Reply Last reply Reply Quote 0
                                      • pbacotP Offline
                                        pbacot
                                        last edited by 10 Aug 2014, 05:16

                                        I could not get it to work with console so, as suggested, I put bez-patch.rb into the plugin folder (from out of the bez-patch folder) and it worked.

                                        Perhaps you put the wrong file into the plugin folder. It is the hyphenated bez-patch.rb.


                                        Screen Shot 2014-08-09 at 10.21.29 PM.png

                                        MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

                                        1 Reply Last reply Reply Quote 0
                                        • Dave RD Offline
                                          Dave R
                                          last edited by 10 Aug 2014, 10:48

                                          It looks to me as if this plugin is incorrectly packaged to just run. I made RBZ version of it that loads correctly with Install Extension in SU8M2 and later. It works in SU2014, too.


                                          bez-patch-1.1.rbz

                                          Etaoin Shrdlu

                                          %

                                          (THERE'S NO PLACE LIKE)

                                          G28 X0.0 Y0.0 Z0.0

                                          M30

                                          %

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

                                          Advertisement