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

    Box model from exisiting object [SOLVED]

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 260 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 04/11/2014 at 06:24, xxxxxxxx wrote:

      How can I make a "box model" from an existing model?
      Something like the Display tag does, when you set Style = Box

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

        On 04/11/2014 at 06:35, xxxxxxxx wrote:

        Hello,

        you could simply iterate through all objects and get the bounding box of each object with GetRad() [URL-REMOVED]and GetMp()[URL-REMOVED]. Then you could simply create a cube at the given position with the given size.

        best wishes,
        Sebastian


        [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

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

          On 04/11/2014 at 07:46, xxxxxxxx wrote:

          Yes, that is a thought when there are multiple parts in the object.
          But what to do if the object is just one part.

          How is cinema 4d doing this when converting it to style=box?

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

            On 04/11/2014 at 08:28, xxxxxxxx wrote:

            Hello,

            The "Figure" object in your example is a generator that returns a list ob sub-objects. So you can apply the above solution to all these sub-objects in the generator's cache.

            best wishes,
            Sebastian

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