This commit is contained in:
Kayla Man 2023-10-18 23:59:39 +08:00
parent f650ecc20e
commit f96b7dbb19

View file

@ -714,10 +714,10 @@ def publish_preview_animation(
endFrame (int): end frame endFrame (int): end frame
review_camera (str): viewport camera for preview render review_camera (str): viewport camera for preview render
""" """
if start_frame is None: if startFrame is None:
start_frame = int(rt.animationRange.start) startFrame = int(rt.animationRange.start)
if end_frame is None: if endFrame is None:
end_frame = int(rt.animationRange.end) endFrame = int(rt.animationRange.end)
with play_preview_when_done(False): with play_preview_when_done(False):
with viewport_camera(review_camera): with viewport_camera(review_camera):
if int(get_max_version()) < 2024: if int(get_max_version()) < 2024: