Blender Kitsu: Add Frame Range Pop-up #128
@ -443,29 +443,6 @@ def load_post_handler_init_version_model(dummy: Any) -> None:
|
||||
opsdata.init_playblast_file_model(bpy.context)
|
||||
|
||||
|
||||
def draw_frame_range_failed_context(self, context):
|
||||
layout = self.layout
|
||||
layout.alert = True
|
||||
layout.label(text="Kitsu Context could not be detected from current file")
|
||||
|
||||
|
||||
def draw_frame_range_warning(self, context):
|
||||
active_shot = cache.shot_active_get()
|
||||
layout = self.layout
|
||||
layout.alert = True
|
||||
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
|
||||
def load_post_handler_check_frame_range(dummy: Any) -> None:
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user