mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Use new import source of Extractor
This commit is contained in:
parent
a515e58196
commit
4790846519
3 changed files with 7 additions and 8 deletions
|
|
@ -6,10 +6,10 @@ import csv
|
|||
from PIL import Image, ImageDraw, ImageFont
|
||||
|
||||
import openpype.hosts.harmony.api as harmony
|
||||
import openpype.api
|
||||
from openpype.pipeline import publish
|
||||
|
||||
|
||||
class ExtractPalette(openpype.api.Extractor):
|
||||
class ExtractPalette(publish.Extractor):
|
||||
"""Extract palette."""
|
||||
|
||||
label = "Extract Palette"
|
||||
|
|
|
|||
|
|
@ -3,12 +3,11 @@
|
|||
import os
|
||||
import shutil
|
||||
|
||||
import openpype.api
|
||||
from openpype.pipeline import publish
|
||||
import openpype.hosts.harmony.api as harmony
|
||||
import openpype.hosts.harmony
|
||||
|
||||
|
||||
class ExtractTemplate(openpype.api.Extractor):
|
||||
class ExtractTemplate(publish.Extractor):
|
||||
"""Extract the connected nodes to the composite instance."""
|
||||
|
||||
label = "Extract Template"
|
||||
|
|
@ -50,7 +49,7 @@ class ExtractTemplate(openpype.api.Extractor):
|
|||
dependencies.remove(instance.data["setMembers"][0])
|
||||
|
||||
# Export template.
|
||||
openpype.hosts.harmony.api.export_template(
|
||||
harmony.export_template(
|
||||
unique_backdrops, dependencies, filepath
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@ import os
|
|||
import shutil
|
||||
from zipfile import ZipFile
|
||||
|
||||
import openpype.api
|
||||
from openpype.pipeline import publish
|
||||
|
||||
|
||||
class ExtractWorkfile(openpype.api.Extractor):
|
||||
class ExtractWorkfile(publish.Extractor):
|
||||
"""Extract and zip complete workfile folder into zip."""
|
||||
|
||||
label = "Extract Workfile"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue