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!
    🔌 Smart Spline | Fluid way to handle splines for furniture design and complex structures. Download

    [Plugin] 3d Shapes Tool (was: Pyramid Tool)

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

      Updated Version, now "3D shapes Tool"

      1.0
      shape: cone
      shape: sphere
      shape: rotated pyramid

      1.1

      • shape: dodecahedron
      • shape: icosahedron
      • CTRL key to toggle between center or base first vertex.
      • varius minor improvement

      Old starting post below:

      @unknownuser said:

      Hello,
      During my experiments with ruby programming for SU I've produced
      this tool for drawing pyramids based on rotated rectangle tool.
      Maybe it's useful to someone...

      usage:
      Menu->Draw->Rotated Pyramid

      I think it's easy to use, but suggestions are welcome.
      [mod=:2rndhrwn]Note: that this is an OLD script, probably unsuitable for >v8 without some Ruby editing - why not look for SketchUp's own newer and more comprehensive Shapes tool at EW...[/mod:2rndhrwn]


      3DShapesTool_v1.1.zip

      1 條回覆 最後回覆 回覆 引用 0
      • jujuJ 離線
        juju
        最後由 編輯

        Hi Macs! Welcome to SCF, thanks for your contribution.

        Please do the mods (and browsers) a favour, change the title to read: [Plugin] Pyramid Tool.

        It makes it a lot easier to identify threads with plugins, as per the posting guidelines.

        Save the Earth, it's the only planet with chocolate.

        1 條回覆 最後回覆 回覆 引用 0
        • T 離線
          tomot
          最後由 編輯

          Thanks Macs, I have been looking for a code snippit for finding 3d mid points
          and other points that work in all planes.
          thanks also for not hiding the code, ala encryption.

          my plugins
          tomot

          1 條回覆 最後回覆 回覆 引用 0
          • M 離線
            Macs
            最後由 編輯

            Sorry for the title.. 😄 now it's correct.

            @tomot: it's nothing, this is just my first experiment.. I'm happy if it could be of some help to others programmers.

            1 條回覆 最後回覆 回覆 引用 0
            • JClementsJ 離線
              JClements
              最後由 編輯

              Good job and thanks!

              John | Illustrator | Beaverton, Oregon

              1 條回覆 最後回覆 回覆 引用 0
              • C 離線
                CPhillips
                最後由 編輯

                @macs said:

                Hello,
                During my experiments with ruby programming for SU I've produced
                this tool for drawing pyramids based on rotated rectangle tool.
                Maybe it's useful to someone...

                usage:
                Menu->Draw->Rotated Pyramid

                I think it's easy to use, but suggestions are welcome.

                Nice job! I think modeling tools like this are sorely missing from the basic Sketchup functionality.

                Do you have any interest in expanding this to support other shapes? If so I would give you any support you need and I could provide a good head start on some of the other shapes (box, cylinder, cone, sphere, capsule).

                Chris

                1 條回覆 最後回覆 回覆 引用 0
                • M 離線
                  Macs
                  最後由 編輯

                  I've done some more work on it, completed a cone tool
                  and added a toolbar. I'm progressing with work, soon a new release
                  with more 3d shapes.

                  Well it's a sort of toolbar for newbies 😄
                  who don't know how to draw more complex shapes in few steps.
                  I'm sure expert modelist know well how draw these shapes,
                  perhaps it will help when there are many to draw.

                  1 條回覆 最後回覆 回覆 引用 0
                  • urgenU 離線
                    urgen
                    最後由 編輯

                    @macs said:

                    I've done some more work on it, completed a cone tool
                    and added a toolbar. I'm progressing with work, soon a new release
                    with more 3d shapes.

                    Well it's a sort of toolbar for newbies 😄
                    who don't know how to draw more complex shapes in few steps.
                    I'm sure expert modelist know well how draw these shapes,
                    perhaps it will help when there are many to draw.

                    ...Marcs, it is very good and useful idea! 👍 I thought of it and wished to ask about it Chris 😕 ... Success to you... It is necessary not only to beginners... really ! 😉

                    --pupil forever...------

                    1 條回覆 最後回覆 回覆 引用 0
                    • GaieusG 離線
                      Gaieus
                      最後由 編輯

                      Macs,

                      Before you invest much time in this project, have a look at shapes.rb (by @Last) downloadable from Didier's site here:
                      http://www.crai.archi.fr/RubyLibraryDepot/Ruby/em_geo_page.htm

                      It will create an item in the Draw menu.

                      I'm glad however that there are more and more ruby scripter around soo keep up the good work! 👍

                      Gai...

                      1 條回覆 最後回覆 回覆 引用 0
                      • M 離線
                        Macs
                        最後由 編輯

                        I've seen that script, mine is a little different, but it was useful to learn from it.

                        1 條回覆 最後回覆 回覆 引用 0
                        • GaieusG 離線
                          Gaieus
                          最後由 編輯

                          OK then, I just wanted to let you know... 😉

                          Gai...

                          1 條回覆 最後回覆 回覆 引用 0
                          • urgenU 離線
                            urgen
                            最後由 編輯

                            ////MMMMM 😒 ...... shapes rb.- table skript 😕 ... SK-FIZ (shapes)-it only drawing tool, but it

                            does not work with the keyboard... 😕 Let's make that the keyboard there worked! It will

                            be excellent and very useful tool! 😄 🎉

                            --pupil forever...------

                            1 條回覆 最後回覆 回覆 引用 0
                            • C 離線
                              CPhillips
                              最後由 編輯

                              In case you haven't seen it. Here is a demo of the shapes that are in the Solids toolbar of SketchyPhysics. It should probably be split out as a separate plugin. But I have too many plugins as is.

                              http://sketchyphysics2.googlecode.com/files/SketchySolids2.gif

                              1 條回覆 最後回覆 回覆 引用 0
                              • M 離線
                                Macs
                                最後由 編輯

                                Ok! This is almost identical at what i'm coding... 😆
                                I've missed this in SketchyPhysics.

                                I've seen there is some difference in how the shapes are drawn,
                                and I've inserted support for VCB input.

                                however here there is the new script, now "3D Shapes Tool"


                                3DShapesTool.zip


                                toolbar.jpg


                                examples.jpg

                                1 條回覆 最後回覆 回覆 引用 0
                                • C 離線
                                  CPhillips
                                  最後由 編輯

                                  😍

                                  Looks like you are doing great. But feel free to copy anything you want out of SketchySolids. It is also based on the rotated rectangle code.

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • urgenU 離線
                                    urgen
                                    最後由 編輯

                                    ...👍 👍 👍 don,t stop this work ,please! 😄

                                    --pupil forever...------

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • JClementsJ 離線
                                      JClements
                                      最後由 編輯

                                      Macs, nice work.

                                      Is there any way to allow the tools to respond to a User Defined Axis?

                                      John | Illustrator | Beaverton, Oregon

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

                                        Hi Macs,

                                        Thank you for working on this. 👍 It is a needed and important plugin, don't stop now!

                                        Hi

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • C 離線
                                          CPhillips
                                          最後由 編輯

                                          Loving the plugin dude!

                                          Suggestion. Once you place the shape it is hard to set the height. You need to have something to infer the height and if nothing is available it is frustrating. My solution was to add a construction line to the center of the shape after the second click.

                                          http://sketchyphysics2.googlecode.com/files/3dShapesCLines.gif

                                          Try adding the following line to the the ConeTool::increment_state() function.

                                          
                                          def increment_state
                                          	@moved = false
                                          	@state += 1				
                                              case @state
                                              when 1
                                          		@ip1.copy! @ip
                                          		Sketchup;;set_status_text "Click to set the radius"
                                          		Sketchup;;set_status_text "Radius", SB_VCB_LABEL
                                          		Sketchup;;set_status_text "Move mouse", SB_VCB_VALUE
                                              when 2
                                                  @ip1.clear
                                          ###################        
                                                  Sketchup.active_model.entities.add_cline(@pts[0],@normal)
                                          ###################        
                                                  Sketchup;;set_status_text "Click to set the height"
                                                  Sketchup;;set_status_text "Height", SB_VCB_LABEL
                                                  Sketchup;;set_status_text "Move mouse", SB_VCB_VALUE
                                              when 3
                                                  self.create_geometry
                                              end
                                          
                                          end
                                          
                                          

                                          Getting rid of the cline and having it work right with undo is a bit tricky, but if you are interested I can walk you through it.

                                          Chris

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

                                            This is really nice macs and very useful.

                                            Thanks 👍

                                            http://dmdarchitecture.co.uk/

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

                                            Advertisement