Announcement

Collapse
No announcement yet.

SketchUp camera position

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SketchUp camera position

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

    Thank you all

  • #2
    Re: SketchUp camera position

    Code:
    Sketchup.active_model.active_view.camera.eye
    Please mention what V-Ray and SketchUp version you are using when posting questions.

    Comment


    • #3
      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/ap...oc/camera.html

      Comment


      • #4
        Re: SketchUp camera position

        Inches. SU always uses inches internally - regardless of model units.
        http://code.google.com/apis/sketchup...oc/length.html

        Check the Sketchup Ruby API for full set of methods available:
        http://code.google.com/apis/sketchup...oc/camera.html

        The Sketchucation's Ruby forum is a good place to look around if you do any SU Ruby work.
        http://forums.sketchucation.com/viewforum.php?f=180
        Please mention what V-Ray and SketchUp version you are using when posting questions.

        Comment

        Working...
        X