Hi, I am trying to use a script to modify values of an object with a geometry nodes modifier on it, if I use these examples, it sort of works, but it doesn't update the UI or 3d viewport. Is there a better method or approach to this?
bpy.data.objects['Object'].modifiers["GeoNodes"]["Socket_0"] = 3 (if the object is active selected)
bpy.context.object.modifiers["GN_Trophy"]["Socket_0"] = 1