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:
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,
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?
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.