Use aePrefMaker yo create a pref pass with your geo and camera directly in nuke.
Download here: https://github.com/aitorecheveste/aeTools
Update Log:
aePrefMaker v1.0 – 11 July 2022
Feedback, bugs and ssuggestion will be welcome. Hope you find it useful!