PDA

View Full Version : coffee - access editor camera


macripp
08-09-2011, 06:27 PM
Hello!

Is there a way to access the position of the editor camera within coffee?
If yes, how can i do that?

Thanks,
Michael

Scott Ayers
08-09-2011, 10:24 PM
Here's an R12 example:
var cam = doc->GetActiveBaseDraw()#BASEDRAW_DATA_CAMERA;
var campos = cam->GetAbsPos(); //Gets the camera's position
cam->SetAbsPos(vector(0,0,0)); //Moves the camera to this position

Use GetPosition() & SetPosition() for older versions of C4D.

-ScottA

macripp
08-10-2011, 10:33 AM
Hi Scott!


That's exactly what i need!
Thank you very much!

Cheers,
Michael

CGTalk Moderation
08-10-2011, 10:33 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.