Custom data segments update

Hi everyone,

I am developing an addon where I need store segments curve data.

I store that info in a curve propertie as a dictionary where the keys are the segments and the value are the data that I need to retrieve. The problem comes when some operation that adds or removes segments is done on the curve because my dictionary for segments info is not updated.

I have thought to develop a modal that ‘listen’ every time some of that operations are done and then update the data. But I don’t think is a clean solution. I need something like the vertex groups with data meshes but Blender doesn’t have it for curve points.

Have anyone any Idea how can I solve it?
Thanks!

1 Like