• Login
sketchucation logo sketchucation
  • Login
πŸ”Œ Quick Selection | Try Didier Bur's reworked classic extension that supercharges selections in SketchUp Download

[plugin] Clip or Trim Terrain Mesh (Update)

Scheduled Pinned Locked Moved Plugins
38 Posts 18 Posters 57.2k Views 18 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.
  • P Offline
    Panga
    last edited by 13 Oct 2011, 14:34

    Thanks for this one Sam !! πŸ‘

    1 Reply Last reply Reply Quote 0
    • S Offline
      sdmitch
      last edited by 13 Oct 2011, 17:45

      John, You should press and releasethe Shift key to toggle between clip and trim. Holding down the shift key is not required or advised.

      Nothing is worthless, it can always be used as a bad example.

      http://sdmitch.blogspot.com/

      1 Reply Last reply Reply Quote 0
      • S Offline
        sdmitch
        last edited by 13 Oct 2011, 18:03

        I wasn't aware of that difference with Macs since I only have windows at my disposal.

        Nothing is worthless, it can always be used as a bad example.

        http://sdmitch.blogspot.com/

        1 Reply Last reply Reply Quote 0
        • A Offline
          AcesHigh
          last edited by 13 Oct 2011, 18:38

          great plugin! Thanks a lot!

          1 Reply Last reply Reply Quote 0
          • T Offline
            thomthom
            last edited by 13 Oct 2011, 19:14

            @sdmitch said:

            I wasn't aware of that difference with Macs since I only have windows at my disposal.

            Don't use VK_ALT, VK_SHIFT etc - for cross platform, use

            CONSTRAIN_MODIFIER_KEY = Shift Key
            CONSTRAIN_MODIFIER_MASK = Shift Key
            COPY_MODIFIER_KEY = Menu on Mac, Ctrl on PC
            COPY_MODIFIER_MASK = Alt on Mac, Ctrl on PC
            ALT_MODIFIER_KEY = Command on Mac, Menu on PC
            ALT_MODIFIER_MASK = Command on Mac, Alt on PC

            http://code.google.com/intl/no/apis/sketchup/docs/ourdoc/tool.html (top of this page)

            Also - when I use these, I don't try to make Shift or Control match across platforms. Because as you can see from the constant names, the modifier key to make a copy (when you use the Move tool for instance) differ from platform to platform. So just use these to match the norm for each platform.

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

            1 Reply Last reply Reply Quote 0
            • S Offline
              sdmitch
              last edited by 13 Oct 2011, 20:29

              Thanks ThomThom, I'm still learning and need all the help I can get.

              Nothing is worthless, it can always be used as a bad example.

              http://sdmitch.blogspot.com/

              1 Reply Last reply Reply Quote 0
              • T Offline
                thomthom
                last edited by 13 Oct 2011, 20:37

                No prob! Always good to see more people writing plugins. πŸ˜„

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

                1 Reply Last reply Reply Quote 0
                • D Offline
                  driven
                  last edited by 13 Oct 2011, 21:28

                  Sam,
                  re: 'Clip or Trim' on MAC,
                  I just went over it all again and on the mac using if key ==16 || 131072 #shift PC || MAC,
                  makes it work as I believe you intended. [ is it?]

                  To start in 'Trim' mode:
                  'grab' grid/s >> select the 'Clip or Trim' from plugins >> press shift key once to activate 'Trim' >> click on 'Terrain' to 'Trim' grid/s in turn.

                  To start in 'Clip' mode:
                  'grab' grid/s >> select the 'Clip or Trim' from plugins >>click on 'Terrain' to 'Clip' grid/s in turn.

                  To switch between modes from either mode, press shift key once >> click on next 'Terrain'

                  To exit 'Clip or Trim' click outside of all 'Terrain' groups.

                  This is how it work with that change, I edited my above posts avoid to blind copying of my erroneous prior comments.

                  I believe this tweak is cross platform, due to the none applicable keycode being ignored, but I don't have a PC easily at hand.

                  Sorry if any confusion [other than my own] was caused by earlier comments, but I was in and out today without the time to plod through it properly.

                  john

                  learn from the mistakes of others, you may not live long enough to make them all yourself...

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    driven
                    last edited by 13 Oct 2011, 21:31

                    Sam,

                    doesn't toggle on a mac, I should have pointed that out. EDIT INCORRECT you DON'T need to keep it held down

                    that's what was doing my head in I checked your code and couldn't see why it wouldn't work, so I guess it's a Mac thing...

                    john

                    learn from the mistakes of others, you may not live long enough to make them all yourself...

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      driven
                      last edited by 13 Oct 2011, 21:33

                      removed

                      learn from the mistakes of others, you may not live long enough to make them all yourself...

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        driven
                        last edited by 13 Oct 2011, 21:36

                        Love the combo tool,
                        once I got my head around it EDIT removed potentially misleading comment...

                        and I found a use for it for me as well. 3D cycle route maps...

                        anyone got an easy way of using Google Maps as the terrain texture,
                        this ones manually scaled and aligned with the 'Google Earth Snapshot' then applied as a projected texture onto the Terrain Grid.
                        Maps on Terrain

                        Google if your reading, can we have a map option? please...

                        good work Sam

                        john

                        learn from the mistakes of others, you may not live long enough to make them all yourself...

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          driven
                          last edited by 13 Oct 2011, 21:40

                          No, me neither, I had a search for mac key-codes etc,,, but I might try searching mac 'toggle' as keycode 16 seems to work.
                          EDIT 16 on it's own dosen't work on mac [I'd left the other in, but opened a copy when checking, what I'd done... sorry]

                          learn from the mistakes of others, you may not live long enough to make them all yourself...

                          1 Reply Last reply Reply Quote 0
                          • mitcorbM Offline
                            mitcorb
                            last edited by 14 Oct 2011, 02:20

                            Hi, sdmitch:
                            Thank you for your generousity in sharing this tool.

                            I take the slow, deliberate approach in my aimless wandering.

                            1 Reply Last reply Reply Quote 0
                            • utilerU Offline
                              utiler
                              last edited by 13 Dec 2011, 01:26

                              Hi Sam, On your blog you have added an impressive list of plugins including these two however there is also a 'terrain tool's plugin that doesn't have a tutorial video. How does this differ from these two listed here?

                              cheers, thanks for your fantastic work!! πŸ‘

                              purpose/expression/purpose/....

                              1 Reply Last reply Reply Quote 0
                              • S Offline
                                sdmitch
                                last edited by 13 Dec 2011, 02:01

                                Terrain Tools is just the collection of all my plugins that pertain to GE Terrain's. Clip or Trim being one of them plus two others. There are no other differences. I just put them all into one to help minimize the entries in the Plugins menu.

                                Nothing is worthless, it can always be used as a bad example.

                                http://sdmitch.blogspot.com/

                                1 Reply Last reply Reply Quote 0
                                • utilerU Offline
                                  utiler
                                  last edited by 13 Dec 2011, 02:23

                                  Ok, thanks Sam.Just on GE:
                                  I noticed in your Clip or Trim tutorial you merge two terrains of differing proxy. Does GE determine the resolution of your export into SU by your current eye high as well as the maximum resolution you end up with?

                                  I have a situation at the moment where I want to obtain the maximum resolution of of GE however my site covers about 3 hectares and I need to cover it with a GE image.

                                  I wonder if there is a way recall you last selection when exporting GE imagery or even replicate your selection left and right multiplied by how far you want? [See image below...]

                                  Cheers,


                                  2011-12-13_1218.jpg

                                  purpose/expression/purpose/....

                                  1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    sdmitch
                                    last edited by 13 Dec 2011, 02:41

                                    Thers is no way to "automate" that that I am aware of.

                                    Nothing is worthless, it can always be used as a bad example.

                                    http://sdmitch.blogspot.com/

                                    1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      dinkdesign
                                      last edited by 9 Apr 2012, 06:28

                                      You guys are absolute legends. You take modeling to a whole new level.

                                      I was hesitant to join SketchUcation because i hate useless info, but honestly: you guys rock!

                                      Special thanx to Gaieus and ThomThom for their constant useful contributions.

                                      1 Reply Last reply Reply Quote 0
                                      • GaieusG Offline
                                        Gaieus
                                        last edited by 9 Apr 2012, 06:43

                                        @dinkdesign said:

                                        Special thanx to Gaieus and ThomThom for their constant useful contributions.

                                        Well, I really had to approve this post (even though I have not contributed with anything in this topic). πŸ˜‰

                                        Gai...

                                        1 Reply Last reply Reply Quote 0
                                        • B Offline
                                          Ben Ritter
                                          last edited by 13 Jun 2012, 18:43

                                          Sam, thank you for sharing your efforts.

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

                                          Advertisement