parent
7031e60376
commit
25b081e53a
|
@ -294,11 +294,24 @@ def pin_down_feets():
|
|||
if not fcu.data_path.endswith('.location'):
|
||||
continue
|
||||
|
||||
all_extremes = [k for k in fcu.keyframe_points if k.type == 'EXTREME']
|
||||
if not all_extremes:
|
||||
if debug: print(f'skip (no extremes marks): {fcu.data_path}')
|
||||
continue
|
||||
|
||||
if len(all_extremes) == len(fcu.keyframe_points):
|
||||
if debug: print(f'skip (only extremes): {fcu.data_path}')
|
||||
continue
|
||||
|
||||
# skip same data path with different array index to avoid multiple iteration
|
||||
if fcu.data_path in viewed_data_paths:
|
||||
if debug: print(f'skip (already evaluated): {fcu.data_path}')
|
||||
continue
|
||||
|
||||
# TODO might need to filter the other array index (using a find)
|
||||
# to do the action only on the one that has the best set of markers
|
||||
# maybe check the wider values ? (meanning it's in direction of move)
|
||||
|
||||
viewed_data_paths.append(fcu.data_path)
|
||||
|
||||
prop = fcu.data_path.split('.')[-1]
|
||||
|
|
|
@ -4,10 +4,10 @@ bl_info = {
|
|||
"name": "Unfold Anim Cycle",
|
||||
"description": "Anim tools to develop walk/run cycles along a curve",
|
||||
"author": "Samuel Bernou",
|
||||
"version": (0, 9, 0),
|
||||
"version": (0, 9, 1),
|
||||
"blender": (3, 0, 0),
|
||||
"location": "View3D",
|
||||
"warning": "WIP",
|
||||
"warning": "",
|
||||
"doc_url": "https://gitlab.com/autour-de-minuit/blender/unfold_anim_cycle",
|
||||
"category": "Object"}
|
||||
|
||||
|
|
Loading…
Reference in New Issue