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_AXIS
You can add
vue.zoom sel
if 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
Advertisement