Skip to content
0
  • Recent
  • Tags
  • Popular
  • SAMSON Connect
  • Get SAMSON
  • Recent
  • Tags
  • Popular
  • SAMSON Connect
  • Get SAMSON
Collapse
SAMSON Forum
  1. Home
  2. SAMSON
  3. SAMSON
  4. Load and save camera settings

Load and save camera settings

Scheduled Pinned Locked Moved SAMSON
4 Posts 3 Posters 4.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K
    K
    Khoa
    wrote on last edited by
    #1

    For the purpose of making pictures, I would like to have take photos of different models (.sam, .samx) at the same camera positions and views. Is it possible to save and load camera settings?

    1 Reply Last reply
    0
    • DmitriyMarinD
      DmitriyMarinD
      DmitriyMarin
      wrote on last edited by DmitriyMarin
      #2

      Using Python script your can get the camera's position like this:

      camera=SAMSON.getActiveCamera()
      position=camera.eyePosition
      

      or just:

      SAMSON.getActiveCamera().eyePosition
      

      To set the eye position of the camera to the desired one you can do:

      position=Type.position3(1000, 10000, -10000)
      SAMSON.getActiveCamera().eyePosition=position
      

      Dmitriy,
      The SAMSON Team, https://s-c.io

      1 Reply Last reply
      0
      • StephaneS
        StephaneS
        Stephane
        wrote on last edited by Admin
        #3

        Yes, and you will also need to save and restore the up vector and the target position.

        Note that another possibility is to copy paste the camera from one document to another:

        • open the document with the camera position you like (document 1)
        • open the document with the camera you want to change (document 2)
        • copy the camera from document 1 (select the camera of document 1, Edit /Copy)
        • paste the camera to document 2 (select the camera of document 2 to indicate where you want to paste, then Edit / Paste)
        • make the new camera of document 2 active (right click / Set as active camera)
        1 Reply Last reply
        0
        • K
          K
          Khoa
          wrote on last edited by
          #4

          Thanks for the replies, Dmitriy and Stephane.

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Login or register to search.
          • First post
            Last post