You can do it using either map notes or plugin commands.
Here's the plugin command
mv3d camera pitch 0 1
There's a demo project that you can download from github (link above) with more examples.