mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Use Avalon scene save.
This commit is contained in:
parent
331ffab46f
commit
70333d22ad
2 changed files with 1 additions and 15 deletions
|
|
@ -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])
|
||||
|
|
|
|||
|
|
@ -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"})
|
||||
Loading…
Add table
Add a link
Reference in a new issue