Blender Kitsu: Add Operator to Push Frame Start #98
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user