Skip to content

Commit

Permalink
fix def name
Browse files Browse the repository at this point in the history
  • Loading branch information
Pullusb committed Mar 1, 2023
1 parent ad5aed9 commit b4ce868
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions snippets/bpy/has_key_at_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ def has_key_at_frame(item, act=None, frame=None, channel='location', verbose=Fal
# item = bpy.context.active_pose_bone

## Test per channel
has_channel_key_at_frame(item, channel='location', verbose=True)
has_channel_key_at_frame(item, channel='rotation_euler', verbose=True)
has_channel_key_at_frame(item, channel='scale', verbose=True)
has_key_at_frame(item, channel='location', verbose=True)
has_key_at_frame(item, channel='rotation_euler', verbose=True)
has_key_at_frame(item, channel='scale', verbose=True)

## multiple channels loop
# for chan in ('location', 'rotation_euler', 'scale'):
# if has_channel_key_at_frame(item, channel=chan):
# if has_key_at_frame(item, channel=chan):
# ## ex: insert a key only if there is a keyframe already
# item.keyframe_insert(chan)

0 comments on commit b4ce868

Please sign in to comment.