THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/08/2009 at 18:26, xxxxxxxx wrote:
Cinema 4D Version: R10-R11
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;
In my new plugin project, users can add objects to a library (each stored as .c4d documents). In the process of adding the object to the library, a 32x32 TIF icon image file is created for use in my plugin Generator Object. There is a template .c4d document that I've set up for this that is loaded when the user adds an object and the object is then inserted for rendering to create the icon image.
The problem is that calling IDM_SHOWACTIVE doesn't seem to be responding very well in this case. Works nicely for extruded/beveled shapes but that is probably because these are closely controlled size and extrusion amount with respect to the render document. Now I need something a bit more flexible and the results are all over the place. The objects do have their global matrices make unitary in the process.
Is there any consistent means to frame an active object in a scene with a camera (Perspective) programmatically?