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
    • Login

    Overal scene size / dimensions ?

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 212 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 14/04/2014 at 05:46, xxxxxxxx wrote:

      Hi all,

      Is there a clever way to get the overall scene size of e.g all objects?
      I want to create a sphere which is large enough to surround all objects.

      kind regards mogh

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

        On 17/04/2014 at 14:34, xxxxxxxx wrote:

        You can use BaseObject::GetMp() and ~::GetRad() to get the dimensions of one object. Children
        are not included in the data returned so you will have to iterate recursively and update the size of
        the bounding box.

        Best,
        -Niklas

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