Probably not that helpful but there is an existing script for the C4D OBJ Sequence Exporter
https://richh.co/c4d-native-obj-sequence-export-no-plugins/