Good day!
Here is second script. It exports camera position, rotation,fov and resolution to Octane macro xml file.
Doesn't work with orthographic.
How to use:
1) select cameras you need to export.
If no cameras is selected, script will export all cameras instead.
If there is no camera in scene, it will export only resolution settings.
2)System>Run Script or Shift+F5.
Select script. Run and save as *.ocm
3)in octane import node through upper menu>Node>import Nodes
or right click>import macro.