THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/12/2012 at 14:51, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 14
Platform: Windows ;
Language(s) : C++ ;
---------
Hello;
it seems that the R14 made another undocumented change in the navigation department. In R13, the state of the pivot / point of interest could be determined by looking at the preferences:
Bool pivotSet = GetWorldContainerInstance()->GetBool(ID_CAMERA_SET_PIVOT);
(as stated in a previous thread from a while ago).
Now under R14 this call returns only FALSE all the time, regardless of whether I have set a pivot or not. But there is no other method to get this state either. I tried to get it from the camera:
Bool pivotSet = cameraData->GetBool(ID_CAMERA_SET_PIVOT);
to no avail, it's not stored there either. I tried to compare the actual vector of the pivot against NULL:
Bool pivotSet = NULL != cameraData->GetVector(ID_CAMERA_POINT_OF_INTEREST,NULL);
however this vector is not reset to NULL when the pivot is unset - it stays set in the camera, pivot or not.
So, how can I see in R14 whether the pivot is currently set or not? Since the pivot is a toggling command, this is fairly essential in navigation.