Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    • Register
    • Login

    CENTER AN OBJECT IN THE VIEW AND MAXIMIZE ITS SIZE

    Cinema 4D SDK
    python
    3
    3
    508
    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.
    • P
      pyr
      last edited by ferdinand

      I got a setup with a stationary camera. i need to keep the object centered in my view and maximize its size but i can't change the rotation / position of my camera.

      what i have so far is the following:

      i calculate the center of the objekt and change the offset accordingly to center the object. now if i want to zoom in my offset calculations are wrong again.

      correct.PNG

      fovProblem.c4d

      edit:

      can someone please move the thread into the right subforum?

      ManuelM 1 Reply Last reply Reply Quote 0
      • ManuelM
        Manuel @pyr
        last edited by

        hi,

        Did you had a look at this thread the problem was almost the same (but to create render).

        @ferdinand also answer to this question on Core 4D (that was a bit harder to find)

        Let us know if those resource helped you or not.

        Cheers,
        Manuel

        MAXON SDK Specialist

        MAXON Registered Developer

        1 Reply Last reply Reply Quote 0
        • ferdinandF
          ferdinand
          last edited by

          Hello @pyr,

          without any further questions or replies, we will consider this topic as solved by Monday and flag it accordingly.

          Thank you for your understanding,
          Ferdinand

          MAXON SDK Specialist
          developers.maxon.net

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