SketchUp camera position

Hi,
just want to know if there’s a way of getting the coordinates of the SU camera.

Thank you all

Re: SketchUp camera position


Sketchup.active_model.active_view.camera.eye

Re: SketchUp camera position

Do you know in which unit are the coordinates?

I got this: Point3d(4599.76, 998.761, 1157.9)

Changing the model units doesn’t affect the values, then it must be some program standard.
Also, is it possible to get the Rotation in X, Y, Z too?

I want to animate in an external app.

Found this: http://code.google.com/intl/pt-BR/apis/sketchup/docs/ourdoc/camera.html

Re: SketchUp camera position

Inches. SU always uses inches internally - regardless of model units.

Check the Sketchup Ruby API for full set of methods available:

The Sketchucation’s Ruby forum is a good place to look around if you do any SU Ruby work.