Using RIR to set material image mapping location

Hi all,
I found that the way using Revit to change the material image mapping is not straight forward and not efficient…you have to do quite a few steps to go into the material mapping editor and you have to try many x and y position value to make it match.
I wonder if there is a way using RIR to use 2 sliders to adjust the mapping location. I guess you can see the result immediately?
Thanks for any suggestion.

Hi Jack,

The enscape window threw me off.

I’m getting a schema error in R2024 and its in the queue to get fixed, but if everything was working it would be something like this…

Many thanks Japhy, I will try you script.