Use the Distance Between utility

 
 
 

For a description of the Distance Between utility, see Distance Between.

To use the Distance Between utility

  1. Create two locators in your scene and position them as you want to use them for the Distance Between utility node.
  2. Create the Distance Between utility node (from the Hypershade, select Create > Utilities > Distance Between).
  3. Connect the locators to the Point1 and Point2 attributes of the Distance Between locators.
  4. Connect an attribute from the material or texture node to the Distance Between utility node.

    The distance between the locators controls how the attribute on the material or texture appears.