"Ah, forgot to answer the first question. But I think he wants CameraDirection rather than CameraUp (to get the direction the camera is looking).
To set the camera direction you can use .SetCameraDirection(Vector3d.XAxis, true)"
"I think doc is legacy and we should use RhinoDoc to get the Rhino document.
You have RhinoDocument.Views.ActiveView.ActiveViewport.ZoomExtents(). Just add the line after the setcameralocations line. This will zoom extent all visible objects…"
"My guess is that the scripting component creates an empty DataTree for the input and populates it with whatever is connected to it (well, for every value it converts it from the GH_ type to more native one). If no values are…"