remove path constraint and some fix
1.3.1 - added: button to remove follow path constraint
This commit is contained in:
@@ -61,6 +61,9 @@ class AW_OT_create_a_b_step(bpy.types.Operator):
|
||||
a = markers[0].location
|
||||
b = markers[1].location - a # remove a postion to get position in curve object space
|
||||
|
||||
a_frame = int(markers[0].name.split('_')[-1])
|
||||
b_frame = int(markers[1].name.split('_')[-1])
|
||||
|
||||
# Set the curve and constraint
|
||||
curve = fn.generate_curve(location=a, direction=b, name='curve_path', context=context)
|
||||
settings = context.scene.anim_cycle_settings
|
||||
@@ -72,9 +75,14 @@ class AW_OT_create_a_b_step(bpy.types.Operator):
|
||||
|
||||
# set offset animation ??? (but movement not in sync until action is retimed in NLA)
|
||||
|
||||
# remove all markers or keep for later reuse ?
|
||||
## remove all markers or keep for later reuse ?
|
||||
remove_spacetime_keys(context=None)
|
||||
|
||||
# if speed calculation is done later need to know start and end frame...
|
||||
|
||||
# Set frame start and end
|
||||
settings.start_frame = a_frame
|
||||
settings.end_frame = b_frame
|
||||
return {"FINISHED"}
|
||||
|
||||
class AW_OT_remove_a_b_step(bpy.types.Operator):
|
||||
|
||||
Reference in New Issue
Block a user