sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Center the view on selected object

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    5 Posts 3 Posters 1.2k Views 3 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.
    • ZackJordsZ Offline
      ZackJords
      last edited by

      In Autodesk Maya(not quite sure about others) you can press F or A to center the camera view on selected object.im not quite sure you can do this on sketchup or not.after using sketchup for awhile (7years) i keep wondering either this could be complish via plug ins or not..Thank you

      1 Reply Last reply Reply Quote 0
      • sdmitchS Offline
        sdmitch
        last edited by

        @zackjords said:

        In Autodesk Maya(not quite sure about others) you can press F or A to center the camera view on selected object.im not quite sure you can do this on sketchup or not.after using sketchup for awhile (7years) i keep wondering either this could be complish via plug ins or not..Thank you

        In Sketchup, it requires just a little Ruby code

        mod = Sketchup.active_model
        sel = mod.selection
        vue = mod.active_view
        bb = Geom;;BoundingBox.new
        sel.each{|e|bb.add e.bounds}
        cam = vue.camera
        cam.set cam.eye,bb.center,Z_AXIS
        
        

        You can add

        vue.zoom sel
        

        if you want a closeup view.

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

        http://sdmitch.blogspot.com/

        1 Reply Last reply Reply Quote 0
        • ZackJordsZ Offline
          ZackJords
          last edited by

          Thank you so much, Sdmitch. It work like charm. Ita possible to assign shortkey to this code? Much appreciated

          1 Reply Last reply Reply Quote 0
          • N Offline
            numerobis
            last edited by

            zoom selection

            http://sketchucation.com/forums/viewtopic.php?f=323%26amp;t=1544%26amp;p=472627

            1 Reply Last reply Reply Quote 0
            • ZackJordsZ Offline
              ZackJords
              last edited by

              Thank you so much Numerobis and Sdmitch for your time.cheers

              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