Did this work for you? Because even after I cleared out the smartquotes it errored, and we have two working solutions above – I’m looking to mark this solved.
Next time, do print(dir(method)) to output all of the methods, classes, functions, etc of an API element. help() & type() are also there for accessibly outputs.
Here’s how to get values of all attributes.
import bpy
o = bpy.data.objects["Suzanne"]
for a in o.data.attributes:
print(a.data)
Or:
for a in o.data.attributes:
for d in a.data:
print(d)
This will list per-vertex in this case, because it’s geometry… and that can slow Blender down though.
import bpy
o = bpy.data.objects["Suzanne"]
for a in o.data.attributes:
for d in a.data:
print(d.value)
Don’t take this the wrong way, but why aren’t you checking these things yourself using the methods I described? It’s easy enough to check on your own, I think.
This is because you’ve chosen vertex as your requested data type… if you want a different type you need to state that by changing your data type when you create your mesh attribute. Note: You can also click on the arrow icon below the plus & minus attribute icons to convert existing attributes to other data types.