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

    Frame custom object w/Camera in View

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 248 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 08/07/2007 at 19:12, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R8.2-R10 
      Platform:   Windows  ; Mac  ;  Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      I am uncertain how I would take a camera and frame a custom object in the view. The camera is being set as the scene camera. The problem is that the custom object is a bone and really doesn't have a bounding box that matches the geometry. I do setup GetDimension() for the custom object - but then I need to know how to call View:Frame Active Objects.

      Thank you very much,

      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 08/07/2007 at 20:47, xxxxxxxx wrote:

        Okay, I have an alternative plan using a sphere scaled to match the bounds of the polygon selection ("Frame Selected Elements" doesn't do a very good job of what is desired).

        The Sphere is made the only active object for the process. But how do I then call the View manager's "Frame Active Objects" command (been a while)? SendCoreMessage() perhaps?

        Thanks!

        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 09/07/2007 at 00:05, xxxxxxxx wrote:

          SendCoreMessage() did the trick. I just hate that you guys can't settle on where you want to store the Command IDs (c4d_symbols.coh, c4d_symbols.h, etc.). Since the ID for IDM_SHOWACTIVE has not changed from 8.2 to 10, I just hard-coded the value and avoided the ensuing mess. 😉

          Thanks!

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