I haven’t explored this yet, but it is possible to script ODV. See ODV “User’s Guide” “Command Files” Chapter.