Thanks! I was able to use your code to add this feature to my Master Material.
I use the Static X, Y, Z parameters to identify which coordinates to use. I created the toggle at the bottom to turn the feature on and off.
Also, I noticed the constants were just duplicates of the coordinates, so I was able to eliminate the static constants by plugging in the scale where the constants were.
Thought I’d share.