What's the python's equivalent of "SetView C T" would be?

Doing this now:

rs.Command("SetView C T"), False

I think something like this -

    plane = rs.ViewCPlane()
    camInfo  = rs.ViewCameraTarget()
    vecCam = camInfo[1]- camInfo[0]
    vecTarg = plane.ZAxis * vecCam.Length
    rs.ViewCameraTarget(rs.CurrentView(),plane.Origin + vecTarg,plane.Origin)


1 Like

Wow, that’s neither short, readable or intuitive…

well… sorry - there may well be a better way, but my guess is the command does something very like this, internally.