Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Register
    • Login

    Setting Field of View of a Camera

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 540 Views
    Loading More Posts
    • 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.
    • H Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 27/07/2005 at 07:38, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   9.x 
      Platform:   Windows  ; Mac  ;  Mac OSX  ; 
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      I can read and set the Aperture and Focal Lenght of a camera object:

      APERTURE=cambc->GetFloat(CAMERAOBJECT_APERTURE);
      FOCUS=cambc->GetFloat(CAMERAOBJECT_FOCUS);

      cambc->SetFloat(CAMERAOBJECT_APERTURE,APERTURE);
      cambc->SetFloat(CAMERAOBJECT_FOCUS,FOCUS);

      But, can I set the Field of View? If yes, what is the name of the parameter? And, will the Focal Lenght be automatically adjusted?

      Rui Batista

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 27/07/2005 at 11:55, xxxxxxxx wrote:

        Aperture sort of determines the FOV as a relation of (height/width)*FOCUS. There is no other way as far as I know.

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 27/07/2005 at 16:06, xxxxxxxx wrote:

          The parameter name for the FOV is CAMERAOBJECT_FOV.
          Setting this (in radians of course) should change the aperture and focus automatically.

          -Chris

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 28/07/2005 at 03:29, xxxxxxxx wrote:

            Actually, I could only make it work by changing the FOCUS (CAMERAOBJECT_FOCUS). But what matters is that is working. Thank you all 🙂

            Rui Batista

            1 Reply Last reply Reply Quote 0
            • First post
              Last post