got it working - think i missed the hint(on3dpoint) as an input.

On Apr 28, 12:11 pm, quirin <[email protected]> wrote:
> does anyone have a little example file?
> somehow i'm doing it wrong, cause non of the scripts are working for
> me.
> shouldn't damiens first example simply work with two points as 
> inputs?http://grasshopper3d.googlegroups.com/web/place_camera.jpg?hl=en&gsc=...
>
> thx
>
> On Mar 17, 4:35 pm, damien_alomar <[email protected]> wrote:
>
> > 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 ofcameraand 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. ofcamera
> > > > > functions in grasshopper.  essentially i would like to assign acamera
> > > > > (view) to a point on a curve controlled by a slider.  is there a way
> > > > > to accomplish this at the present time? thx

Reply via email to