Even Curve Segments

Hey:)
I needed a way to get the Bevel Time Animation same Speed as the Evaluation Time so the Object following the Path and the Start/End Bevel Factor are always at the same Location.

[Bevel orientates on Segment Length]
[Evaluation/Follow Path on the whole Length of the Curve]

So i needed a way to make all Curve Segments same Length


SCRIPT:

import bpy
#Delete Bevel
bpy.context.object.data.bevel_object = None
#Curve to Mesh
bpy.ops.object.convert(target=‘MESH’, keep_original=False)
#Switch to Editmode
bpy.ops.object.editmode_toggle()
#Even Segments (LOOPTOOL ADDON)
bpy.ops.mesh.looptools_space(influence=100, input=‘selected’, interpolation=‘linear’)
#Switch back to Objectmode
bpy.ops.object.editmode_toggle()
#Mesh to Curve
bpy.ops.object.convert(target=‘CURVE’, keep_original=False)
#Add Bevel to Curve
bpy.context.object.data.bevel_object = bpy.data.objects[“BezierCircle”]
#Enable Path Animation
bpy.context.object.data.use_path = True
#Path Animation [Duration]
bpy.context.object.data.path_duration = 105

So i used the LoopTool Addon, you have to activate it first.

And my question is if someone could Show me how i can do this with for example 8 curves selected like
for…in bpy.context.selected_objects or so :smiley:

Would be nice to explaine each step as well :slight_smile:

Thanks!:))