Center the view on selected object
-
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
-
@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_AXISYou can add
vue.zoom selif you want a closeup view.
-
Thank you so much, Sdmitch. It work like charm. Ita possible to assign shortkey to this code? Much appreciated
-
-
Thank you so much Numerobis and Sdmitch for your time.cheers
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement