Blender Kitsu: Add Frame Range Pop-up #128
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user