Hi!
That’s an interesting project and yes, that should be possible, by using a table input for the gravity magnitude:
As far as the table input goes, it would be something along these lines:
Cheers