ok, i cooked it by myself.
#records camera movements into camera_path and camera_target curves
#to be used to Set up path animation in Animation Settings
#camera path color is set to red
import rhinoscriptsyntax as rs
view = rs.CurrentView()
point_target = 
print "Recording camera movements. Long press ESC to stop."
CameraTarget = rs.ViewCameraTarget(view)
#check for esc press
print "ESC pressed "
break #get out of the loop
camera_path = rs.AddCurve(point_camera)
camera_target = rs.AddCurve(point_target)