mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Suspend all viewports during camera extraction (optimization) (PLN-202)
This commit is contained in:
parent
e2413854a8
commit
da4b30c8a4
2 changed files with 2 additions and 2 deletions
|
|
@ -67,7 +67,7 @@ class ExtractCameraAlembic(colorbleed.api.Extractor):
|
|||
job_str += ' -file "{0}"'.format(path)
|
||||
|
||||
with lib.evaluation("off"):
|
||||
with lib.no_refresh():
|
||||
with avalon.maya.suspended_refresh():
|
||||
cmds.AbcExport(j=job_str, verbose=False)
|
||||
|
||||
if "files" not in instance.data:
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ class ExtractCameraMayaAscii(colorbleed.api.Extractor):
|
|||
self.log.info("Performing camera bakes for: {0}".format(transform))
|
||||
with avalon.maya.maintained_selection():
|
||||
with lib.evaluation("off"):
|
||||
with lib.no_refresh():
|
||||
with avalon.maya.suspended_refresh():
|
||||
baked = lib.bake_to_world_space(
|
||||
transform,
|
||||
frame_range=range_with_handles,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue