Another short and sweet one...
Dim rView As MRhinoView = app.ActiveView
Dim OnVP As New OnViewPort (rView.ActiveViewport.VP)
A = OnVP.CameraLocation
B = OnVP.TargetPoint
-Damien
On Mar 17, 7:42 am, joach <[email protected]> wrote:
> How I can get a position of camera and target as point?
> Thx, Joach
>
> On Mar 16, 4:04 pm, damien_alomar <[email protected]> wrote:
>
> > Through a script, yes, and luckily its a small one
>
> > Dim view As MRhinoView = app.ActiveView
>
> > view.ActiveViewport.SetTargetAndCameraLocation(tarPt, camPt)
>
> > This will change the active viewport rather than a specific one, so
> > just be aware that switching views will have GH modify which ever
> > viewport is active. tarPt and camPt are inputs to the script, so
> > however you derive those points is up to you.
>
> > Best,
> > Damien
>
> > On Mar 16, 6:30 am, bdavison <[email protected]> wrote:
>
> > > i've seen some older posts regarding the possible dev. of camera
> > > functions in grasshopper. essentially i would like to assign a camera
> > > (view) to a point on a curve controlled by a slider. is there a way
> > > to accomplish this at the present time? thx