0
$\begingroup$

I'm looking for a way to animate custom Blender attributes. Let's say we have an attribute created using the solution from this post: Manually setting custom attributes per edge / vertex / etc

import bpy

mesh = bpy.context.collection.objects["Cube"].data
attribute = mesh.attributes.new(name="new attribute", type="FLOAT", domain="POINT")
attribute_values = [i for i in range(len(mesh.vertices))]
attribute.data.foreach_set("value", attribute_values)

Now, when I'm trying to add animation using attribute.keyframe_insert(), I'm facing a problem. What should be entered into the data_path argument? I've tried entering "value" or the output of dir(attribute) without success.

$\endgroup$
2
  • $\begingroup$ Can you set keyframes for attributes manually (through the interface)? I thought we can only keyframe properties. $\endgroup$ Commented Mar 31, 2024 at 19:38
  • $\begingroup$ i am also not totally sure but i think too that this isn't possible and not "keyframable" $\endgroup$ Commented Apr 1, 2024 at 6:29

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.