sketchucation logo sketchucation
    • Login
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

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

    Scheduled Pinned Locked Moved Plugins
    53 Posts 21 Posters 49.2k Views 21 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.
    • M Offline
      Macs
      last edited by

      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 Reply Last reply Reply Quote 0
      • urgenU Offline
        urgen
        last edited by

        @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 Reply Last reply Reply Quote 0
        • GaieusG Offline
          Gaieus
          last edited by

          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 Reply Last reply Reply Quote 0
          • M Offline
            Macs
            last edited by

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

            1 Reply Last reply Reply Quote 0
            • GaieusG Offline
              Gaieus
              last edited by

              OK then, I just wanted to let you know... ๐Ÿ˜‰

              Gai...

              1 Reply Last reply Reply Quote 0
              • urgenU Offline
                urgen
                last edited by

                ////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 Reply Last reply Reply Quote 0
                • C Offline
                  CPhillips
                  last edited by

                  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 Reply Last reply Reply Quote 0
                  • M Offline
                    Macs
                    last edited by

                    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 Reply Last reply Reply Quote 0
                    • C Offline
                      CPhillips
                      last edited by

                      ๐Ÿ˜

                      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 Reply Last reply Reply Quote 0
                      • urgenU Offline
                        urgen
                        last edited by

                        ...๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ don,t stop this work ,please! ๐Ÿ˜„

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

                        1 Reply Last reply Reply Quote 0
                        • JClementsJ Offline
                          JClements
                          last edited by

                          Macs, nice work.

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

                          John | Illustrator | Beaverton, Oregon

                          1 Reply Last reply Reply Quote 0
                          • J Offline
                            Jim
                            last edited by

                            Hi Macs,

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

                            Hi

                            1 Reply Last reply Reply Quote 0
                            • C Offline
                              CPhillips
                              last edited by

                              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 Reply Last reply Reply Quote 0
                              • D Offline
                                dylan
                                last edited by

                                This is really nice macs and very useful.

                                Thanks ๐Ÿ‘

                                http://dmdarchitecture.co.uk/

                                1 Reply Last reply Reply Quote 0
                                • M Offline
                                  Macs
                                  last edited by

                                  @cphillips said:

                                  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.
                                  [CUT]

                                  Chris

                                  Strange.. on my system my tool works differently ๐Ÿ˜ž
                                  when you do the second click with the cone tool it goes up
                                  and down with the height without being locked on the surface.
                                  I have to review the code to see if I made some mistrake invocking
                                  some method without "self.".

                                  thank you for the suggestion on the costruction line, I'll think about it.

                                  1 Reply Last reply Reply Quote 0
                                  • C Offline
                                    CPhillips
                                    last edited by

                                    @unknownuser said:

                                    Strange.. on my system my tool works differently ๐Ÿ˜ž
                                    when you do the second click with the cone tool it goes up
                                    and down with the height without being locked on the surface.
                                    I have to review the code to see if I made some mistrake invocking
                                    some method without "self.".

                                    thank you for the suggestion on the costruction line, I'll think about it.

                                    I figured this out. In my case I build a lot of shapes on a big floor plane. When I draw a cone it infers the height from the floor. I don't think this is a flaw in your plugin. But the construction line is still useful in many cases.

                                    1 Reply Last reply Reply Quote 0
                                    • urgenU Offline
                                      urgen
                                      last edited by

                                      ....Please wait ....will be OK! ๐Ÿ˜‰ ๐Ÿ˜„ ..

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

                                      1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        Macs
                                        last edited by

                                        You are right!
                                        I've adde the construction line feature ( ripped from your tool ๐Ÿ˜„ )
                                        It will be available in the next release, thank you.

                                        1 Reply Last reply Reply Quote 0
                                        • urgenU Offline
                                          urgen
                                          last edited by

                                          Scripts is ready ๐Ÿ˜‰ , problems of translation(russian-english) ๐Ÿคฃ

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

                                          1 Reply Last reply Reply Quote 0
                                          • urgenU Offline
                                            urgen
                                            last edited by

                                            ...This is both very interesting and useful topic ๐Ÿ‘ โ€ฆI wonder why the founders of SKETCH-UP havenโ€™t done the 3d shapes (primitives) earlier ๐Ÿ˜• โ€ฆIf we have raised such an issue and this caused that much interest, we have to finish it upโ€ฆ โ— I am not a script man, although many people say I would be capable of doing that quite a bitโ€ฆunfortunately, quite poor knowledge of English and the tough schedule do not let me study RUBY in more detailsโ€ฆI had a choice to make here: to draw or to writeโ€ฆI have chosen the 1st oneโ€ฆHowever, I do get the processes in scripts and can freely apply some changes for my personal convenience in my usage but not more than thatโ€ฆI quite like the style of painting the figures in SketchyPhysics ( Chris, I really appreciate it!) and the MACS style tooโ€ฆ I have selected the files responsible for SHAPES building (from SketchyPhysics) and have made a decision to turn for help to one amazing Russian man Sahi (you possibly remember his name from the script โ€œbuilding a houseโ€). In a few hours I got a response you can see belowโ€ฆ ๐Ÿ˜„ โ€ฆThis is a Russian version and not everything works ideally, but much respect for his talentโ€ฆhe does not know English, but still manages to write English RUBI (imagine yourself writing RUBI in Russian or Chinese, which you do not know!!)โ€ฆ ..The many people the many minds, but the last thing I want is him to be remoted from the forumโ€ฆ.thank you Sahi one more time! ๐Ÿ˜ .....all the parameters of the letters are ascribed with the help of the keyboardsโ€ฆvery convenient! ๐Ÿ‘ ...MACS, I think that would be useful for youโ€ฆAnd Chris---a comfortable supplementary for your SketchyPhysics. ๐Ÿ˜‰


                                            SketchyPhysicsShapes.zip

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

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

                                            Advertisement