A follow up question to How to get Geometry nodes modifier inputs and its type using python
But the code:
bpy.data.objects["Cube"].modifiers["GeometryNodes"]["Input_2_attribute_name"] = "UVMap"
does not work
here "UVMap" can be any attributes like points position, vertex group indicator etc. But assigning the name does not work. We cannot find the corresponding code in the script window in GUI. It only tells us the above code, which does not work. It is surely a bug. But how to solve it?