I am trying for the first time to have a look at some python API.
So my goal would be to create a bevel modifier with the custom curve that I create:
point_init(&profile->path[0], 1.0f, 0.0f, 0, HD_VECT, HD_VECT);
point_init(&profile->path[1], 1.0f, 0.25f, 0, HD_VECT, HD_VECT);
point_init(&profile->path[2], 0.75f, 0.25f, 0, HD_VECT, HD_VECT);
point_init(&profile->path[10], 0.0f, 1.0f, 0, HD_VECT, HD_VECT);
So I can use use_custom_profile
The API doc: https://docs.blender.org/api/current/bpy.types.BevelModifier.html?highlight=b
I don't understand is this:
custom_profile The path for the custom profile
Type: CurveProfile, (readonly)
Does this mean that it's not possible to give CurveProfile the points I want?
Thanks :)
C.object.modifiers['Bevel'].custom_profile.points.add(x, y)
$\endgroup$bpy.ops.text.run_script() bpy.ops.object.modifier_add(type='BEVEL') bpy.context.object.modifiers["Bevel"].use_custom_profile = True nothing
$\endgroup$