Use Avalon scene save.

This commit is contained in:
Toke Stuart Jepsen 2020-05-27 10:35:04 +01:00
parent 331ffab46f
commit 70333d22ad
2 changed files with 1 additions and 15 deletions

View file

@ -42,7 +42,6 @@ class ExtractRender(pyblish.api.InstancePlugin):
func = """function func(args)
{
node.setTextAttr(args[0], "DRAWING_NAME", 1, args[1]);
scene.saveAll();
}
func
"""
@ -52,6 +51,7 @@ class ExtractRender(pyblish.api.InstancePlugin):
"args": [instance[0], path + "/" + instance.data["name"]]
}
)
harmony.save_scene()
# Execute rendering.
output = pype.lib._subprocess([application_path, "-batch", scene_path])

View file

@ -1,14 +0,0 @@
import pyblish.api
from avalon import harmony
class ExtractSaveScene(pyblish.api.ContextPlugin):
"""Save the scene."""
label = "Extract Save Scene"
order = pyblish.api.ExtractorOrder - 0.49
hosts = ["harmony"]
families = ["render"]
def process(self, instance):
harmony.send({"function": "scene.saveAll"})