[Blender-Kitsu] Fix Frame Start & Frame End Calculation #46

Merged
Nick Alberelli merged 2 commits from fix/kitsu-frame-start into main 2023-05-17 15:37:28 +02:00
Showing only changes of commit 2d2880de4b - Show all commits

View File

@ -337,18 +337,11 @@ def _calc_kitsu_frame_start(self):
Calculates strip.kitsu_frame_start, little hack because it seems like we cant access the strip from a property group Calculates strip.kitsu_frame_start, little hack because it seems like we cant access the strip from a property group
But we need acess to seqeuence properties. But we need acess to seqeuence properties.
""" """
# self.frame_final_start = 50 kitsu_frame_start = (
# self.frame_start = 60 bkglobals.FRAME_START - self.kitsu.frame_start_offset
# self.kitsu.frame_start_offset = 10
offset_start = self.frame_final_start - self.frame_start # 50 - 60 = -10
frame_start_final = (
bkglobals.FRAME_START - self.kitsu.frame_start_offset + offset_start
) )
# 101 - (-10) +(-10) = 101.
return int(frame_start_final) return int(kitsu_frame_start)
def _calc_kitsu_frame_end(self): def _calc_kitsu_frame_end(self):