# What is the most accurate way to get the data path for a value?

what is the most accurate way to get the full path for a value so I can use it in a single property drivers.

• The location you get is a Python object of type Vector. You can access its x-value by adding .x to the data path. For the default cube this would be bpy.data.objects["Cube"].location.x. Alternatively you can access the vector components by index. ...location[0] also gives you the x value. The index of the y value is 1 and the index of the z value is 2 respectively. – maddin45 Feb 21 '15 at 18:13