ID properties are only available for IDs (and a few other special cases, like bones and some UI classes). Other types just do not support them at all.

To check wether a type supports ID properties, just try to use one of its mapping protocol item (e.g. C.object.keys() works, while C.object.vertex_groups[0].keys() does not).


Le 30/06/2016 à 13:08, Khalifa Lame a écrit :
Hi. I need assign custom properties to mesh vertices, edges and faces. It doesn't throw any errors on creation of the custom props, but after they've been created, they don't behave as one would expect. They are read-only tuples rather than bpy.props.IntProperty() for example.

For comparison, here's the normal behavior of a custom property


Here's what I get on certain bpy.types

​An unusable tuple!

And if I try to assign a value, I get

​

Is there a reason for this? Is there a known workaround or hack? I really do need to store custom props on vertices, edges, faces and vertex groups.
​

--
khalibloo®



_______________________________________________
Bf-python mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-python

_______________________________________________
Bf-python mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-python

Reply via email to