def Get_Status():
    global XMAX, XMIN, YMAX, YMIN, XNOW, YNOW, Velocity, Zoom
    XMAX = ptz_configuration_options.Spaces.AbsolutePanTiltPositionSpace[0].XRange.Max
    XMIN = ptz_configuration_options.Spaces.AbsolutePanTiltPositionSpace[0].XRange.Min
    YMAX = ptz_configuration_options.Spaces.AbsolutePanTiltPositionSpace[0].YRange.Max
    YMIN = ptz_configuration_options.Spaces.AbsolutePanTiltPositionSpace[0].YRange.Min
    XNOW = ptz.GetStatus({'ProfileToken': media_profile.token}).Position.PanTilt.x
    YNOW = ptz.GetStatus({'ProfileToken': media_profile.token}).Position.PanTilt.y
    Velocity = ptz_configuration_options.Spaces.PanTiltSpeedSpace[0].XRange.Max
    Zoom = ptz.GetStatus({'ProfileToken': media_profile.token}).Position.Zoom.x
def Get_Status():
    global XMAX, XMIN, YMAX, YMIN, XNOW, YNOW, Velocity, Zoom
    XMAX = ptz_configuration_options.Spaces.AbsolutePanTiltPositionSpace[0].XRange.Max
    XMIN = ptz_configuration_options.Spaces.AbsolutePanTiltPositionSpace[0].XRange.Min
    YMAX = ptz_configuration_options.Spaces.AbsolutePanTiltPositionSpace[0].YRange.Max
    YMIN = ptz_configuration_options.Spaces.AbsolutePanTiltPositionSpace[0].YRange.Min
    XNOW = ptz.GetStatus({'ProfileToken': media_profile.token}).Position.PanTilt.x
    YNOW = ptz.GetStatus({'ProfileToken': media_profile.token}).Position.PanTilt.y
    Velocity = ptz_configuration_options.Spaces.PanTiltSpeedSpace[0].XRange.Max
    Zoom = ptz.GetStatus({'ProfileToken': media_profile.token}).Position.Zoom.x