On 30/04/2018 at 06:23, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 16+
Platform:
Language(s) : C++ ;
---------
what I want to do:
pick camera focus (the pick icon from the camera object, then click in the viewport to pick the focus)
I can already call the command for that camera button
doc->SetActiveObject(cam);
DescriptionCommand dcommand;
dcommand.id = CAMERAOBJECT_TARGETDISTANCE_PICK;
cam->Message(MSG_DESCRIPTION_COMMAND, &dcommand);
EventAdd();
now what I want is call a click in the viewport (I already have the BaseDraw*, x and y screen coordinates).