Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Hiero: Use new Extractor location #3851

Merged
merged 3 commits into from
Sep 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions openpype/hosts/hiero/plugins/publish/extract_clip_effects.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
import os
import json
import pyblish.api
import openpype

from openpype.pipeline import publish

class ExtractClipEffects(openpype.api.Extractor):

class ExtractClipEffects(publish.Extractor):
"""Extract clip effects instances."""

order = pyblish.api.ExtractorOrder
Expand Down
13 changes: 9 additions & 4 deletions openpype/hosts/hiero/plugins/publish/extract_frames.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import os
import pyblish.api
import openpype

from openpype.lib import (
get_oiio_tools_path,
run_subprocess,
)
from openpype.pipeline import publish

class ExtractFrames(openpype.api.Extractor):

class ExtractFrames(publish.Extractor):
"""Extracts frames"""

order = pyblish.api.ExtractorOrder
Expand All @@ -13,7 +18,7 @@ class ExtractFrames(openpype.api.Extractor):
movie_extensions = ["mov", "mp4"]

def process(self, instance):
oiio_tool_path = openpype.lib.get_oiio_tools_path()
oiio_tool_path = get_oiio_tools_path()
staging_dir = self.staging_dir(instance)
output_template = os.path.join(staging_dir, instance.data["name"])
sequence = instance.context.data["activeTimeline"]
Expand Down Expand Up @@ -43,7 +48,7 @@ def process(self, instance):
args.extend(["--powc", "0.45,0.45,0.45,1.0"])

args.extend([input_path, "-o", output_path])
output = openpype.api.run_subprocess(args)
output = run_subprocess(args)

failed_output = "oiiotool produced no output."
if failed_output in output:
Expand Down
5 changes: 3 additions & 2 deletions openpype/hosts/hiero/plugins/publish/extract_thumbnail.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import os
import pyblish.api
import openpype.api

from openpype.pipeline import publish

class ExtractThumnail(openpype.api.Extractor):

class ExtractThumnail(publish.Extractor):
"""
Extractor for track item's tumnails
"""
Expand Down