parent
7031e60376
commit
25b081e53a
|
@ -294,10 +294,23 @@ 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)
|
||||
|
||||
|
|
|
@ -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"}
|
||||
|
||||
|
|
5
fn.py
5
fn.py
|
@ -506,5 +506,6 @@ def create_cycle_modifiers(ob=None):
|
|||
continue
|
||||
if b_name not in name_list:
|
||||
continue
|
||||
print(f'Adding cycle modifier {fc.data_path}')
|
||||
_m = fc.modifiers.new(type='CYCLES')
|
||||
# print(f'Adding cycle modifier {fc.data_path}')
|
||||
_m = fc.modifiers.new(type='CYCLES')
|
||||
fc.update()
|
Loading…
Reference in New Issue