sketchucation logo sketchucation
    • 登入
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update

    [Plugin] Bezier Patch v1.1

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

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

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

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

            Thanks for the update, Victor!

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

            Gai...

            1 條回覆 最後回覆 回覆 引用 0
            • D 離線
              darkhelmet
              最後由 編輯

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

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

                http://remusrendering.wordpress.com/

                1 條回覆 最後回覆 回覆 引用 0
                • ely862meE 離線
                  ely862me
                  最後由 編輯

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

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

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

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

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

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

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

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

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

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

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

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

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • pbacotP 離線
                                          pbacot
                                          最後由 編輯

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

                                            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 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement