mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
cleanup the code
This commit is contained in:
parent
0aa5b59384
commit
f695ea7284
1 changed files with 1 additions and 4 deletions
|
|
@ -33,9 +33,6 @@ def viewport_camera(camera):
|
|||
"""
|
||||
original = rt.viewport.getCamera()
|
||||
has_autoplay = rt.preferences.playPreviewWhenDone
|
||||
nitrousGraphicMgr = rt.NitrousGraphicsManager
|
||||
viewport_setting = nitrousGraphicMgr.GetActiveViewportSetting()
|
||||
orig_preset = viewport_setting.ViewportPreset
|
||||
if not original:
|
||||
# if there is no original camera
|
||||
# use the current camera as original
|
||||
|
|
@ -48,7 +45,6 @@ def viewport_camera(camera):
|
|||
finally:
|
||||
rt.viewport.setCamera(original)
|
||||
rt.preferences.playPreviewWhenDone = has_autoplay
|
||||
viewport_setting.ViewportPreset = orig_preset
|
||||
|
||||
|
||||
@contextlib.contextmanager
|
||||
|
|
@ -95,6 +91,7 @@ def viewport_preference_setting(general_viewport,
|
|||
for key, value in nitrous_viewport_original.items():
|
||||
setattr(viewport_setting, key, value)
|
||||
|
||||
|
||||
def publish_review_animation(instance, staging_dir, start,
|
||||
end, ext, fps, viewport_options):
|
||||
"""Function to set up preview arguments in MaxScript.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue