Hi - when rendering a Sun Study inside the following method…
override protected Result Render(RhinoDoc doc, RunMode mode, bool fastPreview)
…how do you determine the Viewport that was specified in the One Day Sun Animation panel? ie. The sun animation might be for the Perspective window, but the use has activated the Top view, so checking the doc.Views.ActiveView.ActiveViewport will be the Top view, not the Perspective view.