With midi or audio you can send Pd a message on load which you get either
with [get-midi-dialog] and [get-audio-dialog] or by connecting [r pd] to
[print], then go to midi/audio settings and press ok. This gives you the
message you have to send so you can use these settings immediately (say, if
you use pd -nogui).
What about using a camera other than the built-in? You can set that by
sending [dialog( to [pix_video], but is it possible to set it by sending Pd
a message? If so, where do you get this message from?