THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/10/2011 at 06:47, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 13
Platform: Windows ;
Language(s) : C++ ;
---------
Good day;
with R13 there are a lot of changes in the navigation department. The preferences have won some parameters, while the camera has lost a lot, and most of the settings have been unified.
I'm now looking for the new R13 way to set and get a camera's pivot / POI point. Earlier, the navigational pivot could be accessed through the camera's basecontainer (if the modes were set accordingly) :
BaseContainer* cameraData = camera->GetDataInstance();
Vector pivot = cameraData->GetVector(CAMERAOBJECT_PIVOT_POSITION);
This constant is gone (and the setting has been removed from the GUI anyway). I can see that there is a new type that holds the desired vectors:
cid ModelingCIDs
{
public:
Vector ID_CAMERA_POINT_OF_INTEREST;
Vector ID_CAMERA_DISPLAY_POI;
};
But I can't find a way to get or set these vectors. In fact, even a textual search in the API files does not turn up any usage for these values. Thus:
1. How do I read these values? How do I write these values?
2. Are these values always accessible regardless of the mode set in the preferences? (Up to R12 I had to walk through a lot of switch/cases on the various modes, because the CAMERAOBJECT_PIVOT_POSITION value was only valid for a single mode, and for a mode like "pivot is selected object" I had to find out the selected object's axis myself.) So, if I set Camera Mode to Object, will I still be able to retrieve the POI (in this case, the object's center) through that vector?
3. What programmatical object is the POI bound to, Prefs or Camera? (Well, I guess that answers itself once I know how to retrieve it...)
4. It seems there are no shortcut-able commands to change the navigational preferences "on the fly" - I have to open the Preferences dialog every time...?
Thanks for any information.