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

Commit

Permalink
Merge pull request #3851 from pypeclub/feature/OP-3877_Change-extract…
Browse files Browse the repository at this point in the history
…or-usage-in-hiero

Hiero: Use new Extractor location
  • Loading branch information
iLLiCiTiT authored Sep 16, 2022
2 parents c7fdf97 + b4fec92 commit 4f85cb3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
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

0 comments on commit 4f85cb3

Please sign in to comment.