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

    [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

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

      and just to jump start that consensus, here's what TIG had to say earlier in the thread.

      @tig said:

      Circle - not so important to get 'square', but if it has few segments it'd be best if a vertex were at the lowest point in Z

      🙂

      dotdotdot

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

        Well, it turns out that its super simple to implement a modifier key rotation. SO I'll go ahead and do that. I tried shift and it kept rotating when I was trying to orbit and pan with shift key and middle mouse button. Alt was no good, kept opening the menu system and it was annoying to have to keep click back off of the menu.

        I think I'll do the up arrow key. Thats convenient and not in use while my tool is activated.

        Chris

        In fact, I've pretty much got it implemented and its quite nice. I'll have the update in a little bit.

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

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

          UPDATE! v1.2 Implemented some of the stuff we've been discussing in previous posts.

          v1.2 Updates:

          • Changed so that circles default to have their vertices on top and bottom, not edges.
          • The up arrow key rotates the faces after they have been placed. Squares will rotate 45 degrees. Circles will rotate the angle needed to alternate between having an edge or a vertex on the top. Custom faces rotate in 90 degree increments. Helpful for fixing faces that are oriented 180 off, or that were drawn on the wrong axis.

          Chris

          Sorry to everyone who has been downloading every update today....3 installs in one day! Thanks for trying this script.

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

          1 條回覆 最後回覆 回覆 引用 0
          • pilouP 離線
            pilou
            最後由 編輯

            Funny sound video! A new ambiance 😉

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

            1 條回覆 最後回覆 回覆 引用 0
            • free agentF 離線
              free agent
              最後由 編輯

              wow thanx this script should be awsome now all i need is the occasion to use it.

              http:i167.photobucket.comalbumsu143FreeAgent84bug.gif

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

                Chris, thank you very much for plugging away at this (pun intended 😄)

                I just zipped out the attached in about 2 minutes thanks to this plugin. I think I can see some neat applications for this.

                http://img.photobucket.com/albums/v506/weekender410/horn.jpg

                Etaoin Shrdlu

                %

                (THERE'S NO PLACE LIKE)

                G28 X0.0 Y0.0 Z0.0

                M30

                %

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

                  Dave that is exactly the sort of thing I thought of using this for when I realized the new features added.

                  Thanks Chris, this is fantastic 👍

                  http://dmdarchitecture.co.uk/

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

                    Dylan, I was just experimenting and came up with this thing. It could be a drawer or door pull or something. I could have made the corners a bit more rounded but since I started out not knowing what I was going to draw, this is alright. The section is an ellipse and it is thicker in the middle than at the ends. Between Chris's plugin and the Skin plugin, this was all dead simple and fast work.

                    http://img.photobucket.com/albums/v506/weekender410/handle.jpg

                    Etaoin Shrdlu

                    %

                    (THERE'S NO PLACE LIKE)

                    G28 X0.0 Y0.0 Z0.0

                    M30

                    %

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

                      Hey, great woork. Its good to see the plugin being used!

                      Chris

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

                      1 條回覆 最後回覆 回覆 引用 0
                      • jeff hammondJ 離線
                        jeff hammond
                        最後由 編輯

                        sweet, the circle is working great now..

                        i'm starting to feel like a pest now but i can't get the rotation to work on my mac.. it doesn't bother me but some other mac users might like the rotate option (and actually, i probably will too once i find myself doing a custom profile).

                        the status bar says this when i'm using the script:

                        Click on a line-end to place a perpendicular square on it. ctrl = Use "Arbitrary Rotation"
                        

                        the ctrl key on a mac (in conjunction with the mouse) triggers a right click.

                        dotdotdot

                        1 條回覆 最後回覆 回覆 引用 0
                        • jim smithJ 離線
                          jim smith
                          最後由 編輯

                          Great tool Chris - I can see quite a few uses.

                          I could see this type of script speeding up the process of putting a model together from imported cad elevations. Attached is a WIP showing a model I just started to assemble from autocad parts. My process now is to make faces, rotate and snap together. I wonder if there is any chance that a divided surface might eventually take advantage of this script?site_03-26-09.jpg

                          "Out of clutter find simplicity,
                          from discord find harmony,
                          In the middle of difficulty lies opportunity"
                          Albert Einstein

                          1 條回覆 最後回覆 回覆 引用 0
                          • MALAISEM 離線
                            MALAISE
                            最後由 編輯

                            Hi Chris, really good tool 😍

                            Just have a look :

                            MALAISE


                            Plugin_Clf.png

                            La Connaissance n'a de valeur que partagée

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

                              Hmm, interesting I'll look at that cosmetic issue.

                              Also, is there someone on a Mac who would be able to help me find the right key for the up arrow? You would just install the little ruby attached to this message like a regular ruby. Then run sketchup. Open the ruby console and type:

                              load 'key_finder.rb'

                              After you type that, leave the ruby console open. And click back into the Sketchup window. Then press the up arrow. A message will display in the ruby console. Hopefully something like

                              The Key identifier is: 38

                              Could you please copy and paste that message back here for me?

                              Probably just delete the file from your plugins folder afterwards. Thanks

                              Chris


                              key_finder.rb

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

                              1 條回覆 最後回覆 回覆 引用 0
                              • jeff hammondJ 離線
                                jeff hammond
                                最後由 編輯

                                The Key idenetifier is: 63232
                                (that's for the up arrow)

                                [took me a while to figure out how to open the ruby console 😆 ]

                                dotdotdot

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

                                  Excellent, thanks! I'll try to get that worked into the code tonight.

                                  Also, I've thought about trying to make it more compatible with multiple faces. It would not be all that difficult to make it work with multiple flat faces. It would take a little bit more work to get it to work with non-planar faces. But I have a feeling that if I sat down and tried to make it work like that, I would also iron out the bug that makes the custom face tool slightly unpredictable. So maybe it would be good. But multiple planar faces would actually probably be pretty straightforward to implement.

                                  Thanks for the help and suggestions everyone,

                                  Chris

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

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • J 離線
                                    Jim
                                    最後由 編輯

                                    Don't the key constants work? It seems like the most portable solution.

                                    Hi

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

                                      Well, yes. But I would nee dot figure out how to use those 😳

                                      Also, I didn't spend a lot of time with them because I wanted to use the up arrow key, which it seems is not supported with the key constants.

                                      Have any hints how to you use those and which is best? I like ctrl on the PC, but it apparently conflict on the Mac.

                                      Chris

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

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • J 離線
                                        Jim
                                        最後由 編輯

                                        Well, then we woo nee dot show lkie tihs.

                                        
                                        if key == VK_UP
                                          # do this
                                        end
                                        
                                        

                                        Hi

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • jeff hammondJ 離線
                                          jeff hammond
                                          最後由 編輯

                                          @chris fullmer said:

                                          I like ctrl on the PC, but it apparently conflict on the Mac.

                                          actually, i'm not quite sure ctrl would conflict..
                                          ctrl is used with some other tools:

                                          cmd-ctrl-leftclick = orbit
                                          shift-ctrl with the eraser = unsoften/unsmooth

                                          i was just saying earlier that it's generally used for right clicking if you use apple's one button mouse.

                                          with the orbit example, i can ctrl-leftclick and get the context menu or i can add the command key and start orbiting.. i'm guessing it won't be a problem to use ctrl for the rotate function in your script and besides, it would probably be nicer to have a key on the left side of the keyboard instead of the right..

                                          is there anyway i can test a ruby with a ctrl modifier to see if it works on a mac?

                                          dotdotdot

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

                                            @jim said:

                                            Well, then we woo nee dot show lkie tihs.

                                            
                                            > if key == VK_UP
                                            >   # do this
                                            > end
                                            > 
                                            

                                            I am a bad typer and a fast typer.....they don't go together well!

                                            Thanks for the tip Jim. Is there a way to list all the constants? I tried constant_variables (like global_variables does for globals), but thats not it. Is there a variable that contains all the initialized constants?

                                            Chris

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

                                            1 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 10
                                            • 11
                                            • 4 / 11
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement