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

    [Plugin] 2D Tools

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

      I can set a test for a PC or Mac OS and then use the appropiate VK_... 😉

      TIG

      1 條回覆 最後回覆 回覆 引用 0
      • thomthomT 離線
        thomthom
        最後由 編輯

        @michaelv said:

        As for the generic commands that Thomthom listed they will work but beware. I thought about using those too, but in my particular case I work on a laptop and I don't have a "menu" key AFAIK, so again it's not as universal as they'd like.

        "Menu" is the "Alt" key - I don't know why the manual says "Menu".
        I have that small wireless keyboard for my Mac, and I have all the keys required. And I expect you have an Alt key available.

        Those generic keys are the least work as they avoid having to test for Windows or Mac.

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

        1 條回覆 最後回覆 回覆 引用 0
        • TIGT 線上
          TIG Moderator
          最後由 編輯

          But since Alt and Ctrl are effectively swapped over from PC to Mac using this method you'd need to test to change prompts and Help files, as Alt on the Mac is not Alt on the PC.

          PC Ctrl = Mac Cmd - = VK_CONTROL or = VK_COMMAND for PC/Mac respectively.
          PC Alt = Mac Opt - both = VK_ALT
          PC Shift = Mac Shift - both = VK_SHIFT

          In 2Dtools it's a simple fix to test for both key presses ? If a PC user presses 'command' [whatever that is?] then it's the same as pressing 'ctrl' anyway, as the 'command' key is not used otherwise on PC and there's no 'ctrl' key on a Mac to muddle us? The 2Dlinetool uses TAB to set Z value option, but it looks for two possible key press codes because TAB varies on the PC and Mac... if key == 9 or key == 15 ### 9 for PC and 15 for MAC...

          TIG

          1 條回覆 最後回覆 回覆 引用 0
          • thomthomT 離線
            thomthom
            最後由 編輯

            No, this is exactly why COPY_MODIFIER_MASK is for "Alt on Mac, Ctrl on PC"

            The *_MODIFIER_KEY and *_MODIFIER_MASK let you check for the various modifiers in a cross platform method.

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

            1 條回覆 最後回覆 回覆 引用 0
            • TIGT 線上
              TIG Moderator
              最後由 編輯

              The PC user presses Alt - a Mac user usually thinks of Mac's Opt == PC's Alt - so a Mac user should press Opt......... As I see it this suggested method is contra-logical......

              TIG

              1 條回覆 最後回覆 回覆 引用 0
              • thomthomT 離線
                thomthom
                最後由 編輯

                Yea - names are confusing, mainly the ALT_* constants, but using these constants will match up the modifier key behaviour of native SketchUp. And I guess it matches common behaviour of the platform?

                Since OSX has 4 modifier keys and Windows has 3 - things aren't mapped 1 to 1.

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

                1 條回覆 最後回覆 回覆 引用 0
                • G 離線
                  grim
                  最後由 編輯

                  tig

                  is it posible to get these 2d tools working in the layout portion of sketchup?

                  they would be a great help when preparing documentation drawings

                  regards

                  grim

                  1 條回覆 最後回覆 回覆 引用 0
                  • TIGT 線上
                    TIG Moderator
                    最後由 編輯

                    @grim said:

                    tig
                    is it posible to get these 2d tools working in the layout portion of sketchup?
                    they would be a great help when preparing documentation drawings
                    regards
                    grim

                    Sorry, but SUp's .rb isn't transferable to LO - there are lots of useful tools inside LO though ??

                    TIG

                    1 條回覆 最後回覆 回覆 引用 0
                    • kenK 離線
                      ken
                      最後由 編輯

                      TIG

                      On the 2D Text tool would it be possible to limit the color selection to just 8 colors. Right now the end of the list is off screen's bottom and this makes it impossible to select yellow or any other color that is be at the bottom.

                      Again thanks for the plugin.

                      Ken

                      Fight like your the third monkey on Noah's Ark gangway.

                      1 條回覆 最後回覆 回覆 引用 0
                      • TIGT 線上
                        TIG Moderator
                        最後由 編輯

                        @unknownuser said:

                        TIG

                        On the 2D Text tool would it be possible to limit the color selection to just 8 colors. Right now the end of the list is off screen's bottom and this makes it impossible to select yellow or any other color that is be at the bottom.

                        Again thanks for the plugin.

                        Ken

                        You CANselect off any list that goes off the screen...
                        Select that list option...
                        Type the first letter of the color you want - say W for 'White'
                        The list jumps to 'Wheat' - because it's the first item starting with W...
                        Now use the down-arrow key to scroll through the list until you have 'White' selected
                        If you wanted 'Violet' use the up-arrow key to scroll up to that etc...
                        In your example pressing 'Y' would jump to 'Yellow' directly as that is the first item it finds...
                        The clunky 'inputbox' methods are not great but you can work through them...
                        A web-dialog based interface with proper-scrolling is on the to-do-list... 😒

                        TIG

                        1 條回覆 最後回覆 回覆 引用 0
                        • kenK 離線
                          ken
                          最後由 編輯

                          TIG

                          Thanks. That works for me. I was unaware of this feature.

                          Again, thanks for your plugins.

                          Onto another note, will you be at 3D Basecamp?

                          Ken

                          Fight like your the third monkey on Noah's Ark gangway.

                          1 條回覆 最後回覆 回覆 引用 0
                          • TIGT 線上
                            TIG Moderator
                            最後由 編輯

                            @unknownuser said:

                            TIG
                            Thanks. That works for me. I was unaware of this feature.
                            Again, thanks for your plugins.
                            Onto another note, will you be at 3D Basecamp?
                            Ken

                            Unfortunately, it's a no.
                            Google arranged 3D Basecamp a verybad time...
                            I have a sick relative coming to live with us around then... AND I have to get things ready [like finish the new ground-floor bedroom/bathroom etc]... AND also it's aloooong way... AND it's a lot of money for a few days' junket AND... it starts on my wife's birthday AND it ends on our wedding-anniversary 😕
                            So all in all a resounding 'no' - though I would have loved to have gone 😒

                            TIG

                            1 條回覆 最後回覆 回覆 引用 0
                            • utilerU 離線
                              utiler
                              最後由 編輯

                              @tig said:

                              @unknownuser said:

                              TIG
                              Thanks. That works for me. I was unaware of this feature.
                              Again, thanks for your plugins.
                              Onto another note, will you be at 3D Basecamp?
                              Ken

                              Unfortunately, it's a no.
                              Google arranged 3D Basecamp a verybad time...
                              I have a sick relative coming to live with us around then... AND I have to get things ready [like finish the new ground-floor bedroom/bathroom etc]... AND also it's aloooong way... AND it's a lot of money for a few days' junket AND... it starts on my wife's birthday AND it ends on our wedding-anniversary 😕
                              So all in all a resounding 'no' - though I would have loved to have gone 😒

                              Excuses, excuses, TIG.... 😉

                              purpose/expression/purpose/....

                              1 條回覆 最後回覆 回覆 引用 0
                              • G 離線
                                gcp310
                                最後由 編輯

                                does this plugin only work for SU porfessional, or will it work with the free version.

                                i cant get it to load up.

                                Thanks

                                Glenn

                                1 條回覆 最後回覆 回覆 引用 0
                                • Rich O BrienR 離線
                                  Rich O Brien Moderator
                                  最後由 編輯

                                  It works on SU Free. Have you extracted the zipped folder into your plugins directory? Making sure to keep the folder/file structure intact.

                                  Download the free D'oh Book for SketchUp 📖

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

                                    Glenn, it works with both pro and free versions of SU. Perhaps you could be a little more specific about what you've done and what's happening.

                                    Etaoin Shrdlu

                                    %

                                    (THERE'S NO PLACE LIKE)

                                    G28 X0.0 Y0.0 Z0.0

                                    M30

                                    %

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • TIGT 線上
                                      TIG Moderator
                                      最後由 編輯

                                      Also it's not to be found in the Plugins Menu... See Menu > Draw > 2D Tools > sub-menu items... AND you will need to activate the 2D Tools toolbar from Views > Toolbar > 2D Tools to see that too...
                                      Please read the instructions in the Help file...

                                      TIG

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • G 離線
                                        gcp310
                                        最後由 編輯

                                        i feel like such an idiot, yes, they have been there all along.
                                        sorry, i had been so engrossed in trying to get them to appear in the plugins section.

                                        thanks for the info

                                        Glenn

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • W 離線
                                          wyatt
                                          最後由 編輯

                                          TIG,
                                          The 2D tools don't seem to work in v8. I get the following error (3 pages actually - just copying one as they are all similar).

                                          Error Loading File 2D#.rb
                                          C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/2DlineTool.rb:33: syntax error, unexpected ',', expecting kEND
                                          Sketchup::set_status_text ("Length"), SB_VCB_LABEL

                                          I don't have an urgent need for this plug-in right now but I thought you'd like to know that it may need to be updated.
                                          Thanks!
                                          Wyatt

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

                                            Wyatt, I don't want to speak for TIG but I'm not having any problem with the 2D Tools on either my Mac or my PC. In fact I just used it a few minutes ago on my PC here at work. Could it be an install problem?

                                            Etaoin Shrdlu

                                            %

                                            (THERE'S NO PLACE LIKE)

                                            G28 X0.0 Y0.0 Z0.0

                                            M30

                                            %

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

                                            Advertisement