Skip to content

Instantly share code, notes, and snippets.

View TheBlizWiz's full-sized avatar

David Rossington TheBlizWiz

View GitHub Profile
@TheBlizWiz
TheBlizWiz / keyframes_to_pose_library.py
Created July 14, 2021 15:54
Blender script to take each of your keyframes in your timeline/dope sheet and turn them into pose library poses. Since it scans one frame at a time, tweening is preserved.
import bpy
start = bpy.context.scene.frame_start
end = bpy.context.scene.frame_end
# Corrects the name so that every action starts on frame 1
# If anim starts on keyframe 1, enter 0
# If anim starts on keyframe 0, enter -1
# Otherwise type in start - 1
offset = start - 1
@TheBlizWiz
TheBlizWiz / pose_library_to_keyframes.py
Last active July 14, 2021 15:54
Blender script to take a list of poses in a pose library and turn them into keyframes
import bpy
# Leave this value at 1
start_f_pose_number = 1
# Change this value to the F number of the last pose in your
# pose library action
end_f_pose_number = 106
# *** IMPORTANT ***