Hi,
I am trying to access the CameraTarget point from the views that are stored in the Named Views Panel. I know I can access the CameraTarget point from the View List but I cannot access it through the Named Views.
RhinoView[] rhinoViews = Rhino.RhinoDoc.ActiveDoc.Views.GetViewList(true, true);
foreach (RhinoView rhinoView in rhinoViews)
{
cameraLocation = rhinoView.ActiveViewport.CameraLocation;
cameraTarget = rhinoView.ActiveViewport.CameraTarget;
}
There seems to be a property called TargetPoint but I am not sure if this is the same.
NamedViewTable namedViews = Rhino.RhinoDoc.ActiveDoc.NamedViews;
foreach (ViewInfo viewInfo in namedViews)
{
cameraLocation = viewInfo.Viewport.CameraLocation;
//cameraTarget = viewInfo.Viewport.TargetPoint;
}
Any ideas or workarounds would be much appreciated.
-M