This is exactly what I was looking for, thanks guys.
Just a quick question, but is there any way to set the X and Y in the rubyscript to the current sketchup active window size? Something like, but not necessarily /
keys = {
;filename => "c;/tmp/write_image.png",
;width => ActivewindowResX,
;height => ActivewindowResY,
;antialias => false,
;compression => 0.9,
;transparent => true
}
model = Sketchup.active_model
view = model.active_view
view.write_image keys