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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Create Camera Command and Editing its Attributes

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 275 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

      On 17/03/2016 at 12:15, xxxxxxxx wrote:

      Hi,

      I was looking for the command to create a new camera in Python.
      And then how to access it's attributes like: focal length and sensor size.

      Thank you for the help!

      Cheers,

      Matt

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

        On 17/03/2016 at 12:30, xxxxxxxx wrote:

        OK, I answered my own question, but I won't delete the thread in case some else needs to search for it in the future.

        newCamera = c4d.CameraObject()
        newCamera.SetAperture(30)
        newCamera.InsertBefore(cameraObject)

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

          On 18/03/2016 at 01:42, xxxxxxxx wrote:

          Hi Matt,

          at first, a warm welcome from MAXON's SDK Support team 🙂

          Glad you already found a solution. And yes, it's good to leave your thread here for future reference. In general you don't have to worry about deleting threads. We'll take care, if needed, but except for spam, that rarely happens.

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