Camera: 360° rotation

I have a simple Ruby script that can be pasted into the Ruby console. It starts with whatever view you have and creates 360 scenes at 1 degree intervals around the origin. Works in either isometric or perspective views:

c = Sketchup.active_model.active_view.camera
p = Sketchup.active_model.pages
e = c.eye
r = Geom::Transformation.rotation([0,0,0],[0,0,1],Math::PI / 180.0)
for i in 0...360
  c.set(e,[0,0,0],[0,0,1])
  p.add("Scene " + (i+1).to_s)
  e.transform!(r)
end

Two examples:

9 Likes