Blender 3.2.1
- added a driver to the z location of a cube.
- added a custom property to the cube and named the property “Height”.
- added the custom property as an input variable of the z location driver.
- Error: Invalid Python Expression is the result
I’m following a driver tutorial by Gustav Nilsson and am trying to set up a custom property that is controlled by a driver.
Driver screencap:

Custom property screencap:

file:
drivers-delete.blend (832.5 KB)
DNorman
(DNorman)
2
Because you added the custom property to the “object data properties” not the object properties. So in the ID type you need to use object data.
In this case your driver should look like this:
Hi @Blender_Gorilla,
is this the issue ?
your updated file with this driver:
drivers-delete1.blend (831.0 KB)
Cheers,
Dj.
Thanks, DNorman and DamianJ. If I could check the solution for both of your posts I would but I checked the first one.