Obtaining the normal vector of the camera view

Good afternoon,

I need to compute the cross-product between flow velocity values and a given direction and I would like to automatize the process if possible. The only workaround that I found at the moment is creating a clip or a plane clicking the “Camera Normal” option and manually copying the resulting vector to a calculator. Is it possible to access this value through python? So far, I have only managed to found the camera position after view = GetActiveView().

Kind regards,
Xabier

You can use python scripting for that

1 Like

Hi! Thanks for your prompt response.

Any hint on where should I look at? I have been checking the properties obtained from GetActiveView(), but so far I have not been able to find the direction of the camera.

Kind regards,
Xabier

GetActiveCamera() should do the trick here.

Thank you very much! I managed to do it with GetActiveCamera().GetViewPlaneNormal().