Accessing the position of the editor viewport camera

I think that is the solution…