I want to make a shader with image sequence, which is gonna be controlled by null(empty). So closer the null to an object, the more image offset is gonna be. Image sequence offset is linked to value node using driver, so I can slide image sequence progress. I want to link it to the distance between null and the object itself.
So what I need to get here is distance between object and null. But I don't know how to say to driver to refer to objects' position. Self isn't working here, because, I think, self references to material, not the object. What I wanted to ask, is there a way to say to material driver to refer object that material was applied? I want it to do this automatically, because I will have 50-100 of these objects