sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Clip Image by Group Extent

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    6 Posts 2 Posters 272 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.
    • R Offline
      ryangarnett
      last edited by

      Hello All,

      I was curious if anyone knows of a script, or a way to clip and underlying image with a group? For example, if I have a site model with imagery for the terrain, and buildings generated as groups that touch the terrain. I would like to be able to clip the terrain texture according to the extents of the group for each group.

      If this is not available, is there a function in the API, like get group extent, or clip texture?

      Thanks in advance...

      Ryan

      1 Reply Last reply Reply Quote 0
      • Dave RD Offline
        Dave R
        last edited by

        Wouldn't Intersect Faces do the job? Instead of clipping to the extent of the group it would allow you to trim the terrain to fit the geometry. In some cases those might be the same however if your group is not a simple box, it might not.

        Etaoin Shrdlu

        %

        (THERE'S NO PLACE LIKE)

        G28 X0.0 Y0.0 Z0.0

        M30

        %

        1 Reply Last reply Reply Quote 0
        • R Offline
          ryangarnett
          last edited by

          Thanks Dave. I am unsure. I have a script that looks at unique group names and saves each unique group out as a sketchup model. For example, if I have 100 buildings in a site model, and each building has a unique group name, then 100 .skp will be written. The issue I am facing is that the terrain texture will be written out to each building model. My terrain texture is very detailed, so it is also large in size, making each building model large in size. I am looking for a way to modify my export, so that only the extent of the terrain texture around the building model is used and saved in the building model, which will significantly reduce the size of the building models.

          1 Reply Last reply Reply Quote 0
          • Dave RD Offline
            Dave R
            last edited by

            I think I see what you mean, now. So how do you define the limits of the terrain texture for each building?

            Etaoin Shrdlu

            %

            (THERE'S NO PLACE LIKE)

            G28 X0.0 Y0.0 Z0.0

            M30

            %

            1 Reply Last reply Reply Quote 0
            • R Offline
              ryangarnett
              last edited by

              Hi Dave,
              I use a plugin that allows me to bring in georeferenced aerial imagery as the terrain texture. The same plugin allows me to bring in the buildings in from a shapefile polygon. The plugin will group the buildings according to a unique code in the attribute table, and will extrude the buildings according to the height in the attribute table. When the buildings are imported into SU, they intersect the imported aerial imagery, and texture the horizontal planes (roofs) with the underlaying texture.

              1 Reply Last reply Reply Quote 0
              • R Offline
                ryangarnett
                last edited by

                A manual process that we found was to use the Make Unique Texture. Now it would be to run that in batch on all horizontal faces with an elevation greater than zero. Thoughts?

                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