Welcome! Have you looked at the thread: Convenient and Efficient Exports/Updates from Gramps to RootsMagic
It might already cover some of the ground you’re asking about. (But you should be made aware, our leading contributor to such RootsMagic discussions … Enno … sadly passed last year.)