Change material att by animated object position

Yes, I would like to add a random value, triggered by “X” translate value.
I really needed to read the location of the actor as you said, but couldn’t figure out how to do it - the correct node, and how to associate my object to it.