Suspend all viewports during camera extraction (optimization) (PLN-202)

This commit is contained in:
Roy Nieterau 2018-12-14 11:50:01 +01:00
parent e2413854a8
commit da4b30c8a4
2 changed files with 2 additions and 2 deletions

View file

@ -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:

View file

@ -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,