Blender Kitsu: Add Operator to Push Frame Start #98

Merged
Nick Alberelli merged 6 commits from feature/3d-offset-kitsu into main 2023-06-27 15:35:00 +02:00
Showing only changes of commit e7a329c763 - Show all commits

View File

@ -31,10 +31,18 @@ logger = LoggerFactory.getLogger()
def shot_meta(strip: bpy.types.Sequence, shot: Shot) -> None:
# Update shot info.
# Only set 3d_start if none is found
try:
kitsu_3d_start = shot.data["3d_start"]
except:
kitsu_3d_start = 101 # TODO REPLACE WITH BAKED GLOBAL VALUE
shot.name = strip.kitsu.shot_name
shot.description = strip.kitsu.shot_description
shot.data["frame_in"] = strip.frame_final_start
shot.data["frame_out"] = strip.frame_final_end
shot.data["3d_start"] = kitsu_3d_start
shot.nb_frames = strip.frame_final_duration
shot.data["fps"] = bkglobals.FPS