OSC: PTZ Commands

Control camera pan, tilt, zoom, presets, and auto-focus. PTZ commands operate on the preview source.

Commands

Address Args Description
/pmix/ptz/pantilt float, float Pan speed, tilt speed (-1 to 1)
/pmix/ptz/zoom float Zoom speed (-1 to 1)
/pmix/ptz/level float Set absolute zoom level (0–1)
/pmix/ptz/preset/{n} Recall PTZ preset n
/pmix/ptz/store/{n} Store current position as preset n
/pmix/ptz/autofocus Trigger auto-focus
/pmix/ptz/stop Stop all PTZ movement
/pmix/ptz/center Center PTZ (pan=0, tilt=0)

Examples

# Pan right slowly while tilting up
oscsend <ipad-ip> 9000 /pmix/ptz/pantilt ff 0.3 0.2

# Zoom in slowly
oscsend <ipad-ip> 9000 /pmix/ptz/zoom f 0.5

# Set absolute zoom to 50%
oscsend <ipad-ip> 9000 /pmix/ptz/level f 0.5

# Stop all movement
oscsend <ipad-ip> 9000 /pmix/ptz/stop

# Store preset 1, then recall it later
oscsend <ipad-ip> 9000 /pmix/ptz/store/1
oscsend <ipad-ip> 9000 /pmix/ptz/preset/1

# Center and auto-focus
oscsend <ipad-ip> 9000 /pmix/ptz/center
oscsend <ipad-ip> 9000 /pmix/ptz/autofocus

Notes

  • Pan/tilt/zoom speed values range from -1 to 1, where 0 = stopped
  • Send /pmix/ptz/stop to halt continuous movement
  • Presets are numbered — use consistent numbering across your productions
  • PTZ commands affect whichever source is currently in preview