Skip to content

Instantly share code, notes, and snippets.

@Roumenov
Created November 18, 2019 06:27
Show Gist options
  • Save Roumenov/30a398fd877de61a4cef872d122d1beb to your computer and use it in GitHub Desktop.
Save Roumenov/30a398fd877de61a4cef872d122d1beb to your computer and use it in GitHub Desktop.
blocking out thoughts for a useful animation curve utility
start_time = 0
end_time = 10
keyed_channels = get_keyed_channels()
for curve in keyed_channels:
#what is the best method to select the target keys?
#select keys in range(start_time,end_time)
first_key_value = 3
anchor_key_value = 1.5
offset_value = anchor_key_value - first_key_value
keyframe -animation keys -relative -valueChange (0 + offset_value) ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment