1
$\begingroup$

I need to set a custom property inside the shape key class.

        bpy.types.ShapeKey.groups = bpy.props.StringProperty()

But when I try to change its value, raises me an error:

context.object.data.shape_keys.key_blocks[1].groups = "asdas"
Traceback (most recent call last):
  File "<blender_console>", line 1, in <module>
AttributeError: 'ShapeKey' object attribute 'groups' is read-only

How can I solve this?

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.