Capture current camera position as two points

Hi All,

Is there a quick way to capture current camera position and target as points in grasshopper? So I wouldn’t have to manually copy over these values?

image

Thank you for your help in advance!

Regards,

Jonas Blazinskas

Camera = Rhino.RhinoDoc.ActiveDoc.Views.ActiveView.ActiveViewport.CameraLocation;
Target = Rhino.RhinoDoc.ActiveDoc.Views.ActiveView.ActiveViewport.CameraTarget;

Camera.gh (13.7 KB)

You can also use cameraCrane from Heteroptera.

3 Likes