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 #3799 from pypeclub/feature/OP-3880_Change-extract…
Browse files Browse the repository at this point in the history
…or-usage-in-nuke

Nuke: Use new Extractor location
  • Loading branch information
iLLiCiTiT authored Sep 16, 2022
2 parents 4f85cb3 + bf02495 commit 24e729c
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 24 deletions.
4 changes: 2 additions & 2 deletions openpype/hosts/nuke/plugins/publish/extract_backdrop.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

import pyblish.api

import openpype
from openpype.pipeline import publish
from openpype.hosts.nuke.api.lib import (
maintained_selection,
reset_selection,
select_nodes
)


class ExtractBackdropNode(openpype.api.Extractor):
class ExtractBackdropNode(publish.Extractor):
"""Extracting content of backdrop nodes
Will create nuke script only with containing nodes.
Expand Down
5 changes: 3 additions & 2 deletions openpype/hosts/nuke/plugins/publish/extract_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
import nuke

import pyblish.api
import openpype.api

from openpype.pipeline import publish
from openpype.hosts.nuke.api.lib import maintained_selection


class ExtractCamera(openpype.api.Extractor):
class ExtractCamera(publish.Extractor):
""" 3D camera exctractor
"""
label = 'Exctract Camera'
Expand Down
4 changes: 2 additions & 2 deletions openpype/hosts/nuke/plugins/publish/extract_gizmo.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import pyblish.api

import openpype
from openpype.pipeline import publish
from openpype.hosts.nuke.api import utils as pnutils
from openpype.hosts.nuke.api.lib import (
maintained_selection,
Expand All @@ -12,7 +12,7 @@
)


class ExtractGizmo(openpype.api.Extractor):
class ExtractGizmo(publish.Extractor):
"""Extracting Gizmo (Group) node
Will create nuke script only with the Gizmo node.
Expand Down
5 changes: 3 additions & 2 deletions openpype/hosts/nuke/plugins/publish/extract_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
from pprint import pformat
import nuke
import pyblish.api
import openpype.api

from openpype.pipeline import publish
from openpype.hosts.nuke.api.lib import (
maintained_selection,
select_nodes
)


class ExtractModel(openpype.api.Extractor):
class ExtractModel(publish.Extractor):
""" 3D model exctractor
"""
label = 'Exctract Model'
Expand Down
10 changes: 6 additions & 4 deletions openpype/hosts/nuke/plugins/publish/extract_render_local.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import pyblish.api
import nuke
import os
import openpype

import pyblish.api
import clique
import nuke

from openpype.pipeline import publish


class NukeRenderLocal(openpype.api.Extractor):
class NukeRenderLocal(publish.Extractor):
# TODO: rewrite docstring to nuke
"""Render the current Nuke composition locally.
Expand Down
7 changes: 4 additions & 3 deletions openpype/hosts/nuke/plugins/publish/extract_review_data.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import os
import pyblish.api
import openpype
from pprint import pformat
import pyblish.api

from openpype.pipeline import publish


class ExtractReviewData(openpype.api.Extractor):
class ExtractReviewData(publish.Extractor):
"""Extracts review tag into available representation
"""

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import os
import pyblish.api
import openpype

from openpype.pipeline import publish
from openpype.hosts.nuke.api import plugin
from openpype.hosts.nuke.api.lib import maintained_selection


class ExtractReviewDataLut(openpype.api.Extractor):
class ExtractReviewDataLut(publish.Extractor):
"""Extracts movie and thumbnail with baked in luts
must be run after extract_render_local.py
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import os
from pprint import pformat
import re
from pprint import pformat
import pyblish.api
import openpype

from openpype.pipeline import publish
from openpype.hosts.nuke.api import plugin
from openpype.hosts.nuke.api.lib import maintained_selection


class ExtractReviewDataMov(openpype.api.Extractor):
class ExtractReviewDataMov(publish.Extractor):
"""Extracts movie and thumbnail with baked in luts
must be run after extract_render_local.py
Expand Down
4 changes: 2 additions & 2 deletions openpype/hosts/nuke/plugins/publish/extract_slate_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
import pyblish.api
import six

import openpype
from openpype.pipeline import publish
from openpype.hosts.nuke.api import (
maintained_selection,
duplicate_node,
get_view_process_node
)


class ExtractSlateFrame(openpype.api.Extractor):
class ExtractSlateFrame(publish.Extractor):
"""Extracts movie and thumbnail with baked in luts
must be run after extract_render_local.py
Expand Down
5 changes: 3 additions & 2 deletions openpype/hosts/nuke/plugins/publish/extract_thumbnail.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import os
import nuke
import pyblish.api
import openpype

from openpype.pipeline import publish
from openpype.hosts.nuke.api import (
maintained_selection,
get_view_process_node
Expand All @@ -13,7 +14,7 @@
unicode = str


class ExtractThumbnail(openpype.api.Extractor):
class ExtractThumbnail(publish.Extractor):
"""Extracts movie and thumbnail with baked in luts
must be run after extract_render_local.py
Expand Down

0 comments on commit 24e729c

Please sign in to comment.