• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

Drop.rb script upgrade suggestion

Scheduled Pinned Locked Moved Developers' Forum
4 Posts 2 Posters 2.8k Views
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 12 Dec 2007, 19:40

    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
    • T Offline
      tbd
      last edited by 12 Dec 2007, 19:52

      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 12 Dec 2007, 20:11

        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 12 Dec 2007, 20:13

          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
          1 / 1
          • First post
            1/4
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement