How to define a CurveProfile property?

Hi!
This commit (https://developer.blender.org/rBba1e9ae4733ae956331c7e8899f6939997205298)
added the CurveProfile type (https://docs.blender.org/api/2.82/bpy.types.CurveProfile.html?highlight=curveprofile) but how to define a property (of a Operator) as a CurveProfile type to be added in a python addon?

1 Like

I wish there were a way right now to do this, but unfortunately I don’t think there is.

The hack with CurveMapping is to use a node group with it inside, but there is no node with a CurveProfile in it.

I will try to make this possible, but I’m not exactly sure how, so it will depend on the help of other developers and honestly this is sort of low priority compared to other stuff I guess.

Probably the same situation as with bpy.types.CurveMapping and bpy.types.ColorRamp, all of which are not possible to create from the Python API.

It’s quite depressing.

It’s a hack, but you may find it somehow useful