Not a 3.0 instrument, but an old example I posted to an old thread, which could easily be adapted.
dblue-autopan.xrns