Thank you, that worked flawlessly!
I was trying to do something similar earlier but I gave up cause the getter being a float, while the setter is an int, sounded like a redflag to me and I was trying to multiply by the viewport size to make up for it, hahah. Doing it like you showed works perfectly. Thanks a lot, cheers!