def execute(self, ctx): curve = Curve(ctx.active_object) for spline, points in curve.selection("point"): curve.break_point(spline, points) curve.update() self.report({'INFO'}, 'bpy.ops.curve.break()') return {"FINISHED"}
def execute(self, ctx): curve = Curve(ctx.active_object) for splineindex, points in curve.selection("point"): if len(points) == 1: spline = curve.splines[splineindex] spline.make_first(points[0]) curve.update() self.report({'INFO'}, 'bpy.ops.curve.make_first()') return {"FINISHED"}