I have a driver on x rotation with this expression and "Use_self" ticked:
-var/.35 + self["prop"]
I have a custom property named "prop" with float
If I change the value with the UI it's working and make my mesh turn with the offset value
If I try to change the value with this script it changes the value in the property (if I'm hovering on the field otherwise it's not) but not in the 3dviewport
Looks like an update problem ?
Thanks
C = bpy.context
obj = C.object
obj["prop"] = 2.08