Blender Kitsu: Add Frame Range Pop-up #128

Merged
Nick Alberelli merged 18 commits from :fix/frame-range-popup into main 2023-07-19 17:32:39 +02:00
Showing only changes of commit 8b992410c0 - Show all commits

View File

@ -444,9 +444,20 @@ def load_post_handler_init_version_model(dummy: Any) -> None:
def draw_frame_range_warning(self, context): def draw_frame_range_warning(self, context):
active_shot = cache.shot_active_get()
layout = self.layout layout = self.layout
layout.alert = True layout.alert = True
layout.operator("kitsu.pull_frame_range") layout.label(
text="Frame Range on server does not match the active shot. Please 'pull' the correct frame range from the server"
)
layout.label(
text=f" File Frame Range: {context.scene.frame_start}-{context.scene.frame_end}"
)
layout.label(
text=f' Server Frame Range: {int(active_shot.data["3d_start"])}-{int(active_shot.data["3d_start"]) + int(active_shot.nb_frames) - 1}'
)
layout.operator("kitsu.pull_frame_range", icon='TRIA_DOWN')
@persistent @persistent