sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Drop.rb script upgrade suggestion

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 2 Posters 2.8k Views 2 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.
    • A Offline
      a4chitect
      last edited by

      dear TBD - your script is perhaps my most-used extension to sketchup, but sometimes (urban scenery) I want the dropped entities to match the slope/angle of the surface on which i'm dropping them, is it possible to identify the surface by your intersection finding "Sketchup.active_model.raytest(position,dir)", then get its slope and apply this to the dropped entity? would such a feature be hard to implement? i'm toying with the idea of trying to add this myself, or is anyone else interested ? πŸ˜’

      anyways - thanks for the 'drop' πŸ˜„

      1 Reply Last reply Reply Quote 0
      • tbdT Offline
        tbd
        last edited by

        unfortunately I dont have time right now to implement it, but you are free to add it. hope that you will share the modifications so I can add it to drop.rb.

        thanks for the suggestion

        SketchUp Ruby Consultant | Podium 1.x developer
        http://plugins.ro

        1 Reply Last reply Reply Quote 0
        • A Offline
          a4chitect
          last edited by

          came up with a trick - the upgraded script could look for intersection not only from the component center but also from the four bounding points of the lower bounding plane - these 4 intersection would easily allow to compute the rotation needed for the original component...

          to further illustrate, default Drop (v1.5)

          http://img172.imageshack.us/img172/4958/drop15oa6.th.jpg

          proposed functionality

          http://img172.imageshack.us/img172/3960/dropfitzc1.th.jpg

          1 Reply Last reply Reply Quote 0
          • A Offline
            a4chitect
            last edited by

            TBD thanks for your encouragement, will share for sure, it's fairly easy with the bounding box proposal from above - will get to it tomorrow, hope that method works

            stay tuned

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

            Advertisement