nuke: adding extension to plugins

This commit is contained in:
Jakub Jezek 2023-02-24 11:26:46 +01:00 committed by Jakub Trllo
parent 1bd5f04880
commit f432fb29de
11 changed files with 20 additions and 10 deletions

View file

@ -17,6 +17,7 @@ class SetFrameRangeLoader(load.LoaderPlugin):
"yeticache",
"pointcache"]
representations = ["*"]
extension = {"*"}
label = "Set frame range"
order = 11

View file

@ -25,8 +25,9 @@ from openpype.hosts.nuke.api import containerise, update_container
class LoadBackdropNodes(load.LoaderPlugin):
"""Loading Published Backdrop nodes (workfile, nukenodes)"""
representations = ["nk"]
families = ["workfile", "nukenodes"]
representations = ["*"]
extension = {"nk"}
label = "Import Nuke Nodes"
order = 0

View file

@ -25,7 +25,8 @@ class AlembicCameraLoader(load.LoaderPlugin):
"""
families = ["camera"]
representations = ["abc"]
representations = ["*"]
extension = {"abc"}
label = "Load Alembic Camera"
icon = "camera"

View file

@ -43,7 +43,6 @@ class LoadClip(plugin.NukeLoader):
"review"
]
representations = ["*"]
extensions = set(
ext.lstrip(".") for ext in IMAGE_EXTENSIONS.union(VIDEO_EXTENSIONS)
)

View file

@ -22,8 +22,9 @@ from openpype.hosts.nuke.api import (
class LoadEffects(load.LoaderPlugin):
"""Loading colorspace soft effect exported from nukestudio"""
representations = ["effectJson"]
families = ["effect"]
representations = ["*"]
extension = {"json"}
label = "Load Effects - nodes"
order = 0

View file

@ -23,8 +23,9 @@ from openpype.hosts.nuke.api import (
class LoadEffectsInputProcess(load.LoaderPlugin):
"""Loading colorspace soft effect exported from nukestudio"""
representations = ["effectJson"]
families = ["effect"]
representations = ["*"]
extension = {"json"}
label = "Load Effects - Input Process"
order = 0

View file

@ -24,8 +24,9 @@ from openpype.hosts.nuke.api import (
class LoadGizmo(load.LoaderPlugin):
"""Loading nuke Gizmo"""
representations = ["gizmo"]
families = ["gizmo"]
representations = ["*"]
extension = {"gizmo"}
label = "Load Gizmo"
order = 0

View file

@ -26,8 +26,9 @@ from openpype.hosts.nuke.api import (
class LoadGizmoInputProcess(load.LoaderPlugin):
"""Loading colorspace soft effect exported from nukestudio"""
representations = ["gizmo"]
families = ["gizmo"]
representations = ["*"]
extension = {"gizmo"}
label = "Load Gizmo - Input Process"
order = 0

View file

@ -8,7 +8,9 @@ class MatchmoveLoader(load.LoaderPlugin):
"""
families = ["matchmove"]
representations = ["py"]
representations = ["*"]
extension = {"py"}
defaults = ["Camera", "Object"]
label = "Run matchmove script"

View file

@ -23,7 +23,8 @@ class AlembicModelLoader(load.LoaderPlugin):
"""
families = ["model", "pointcache", "animation"]
representations = ["abc"]
representations = ["*"]
extension = {"abc"}
label = "Load Alembic"
icon = "cube"

View file

@ -20,8 +20,9 @@ from openpype.hosts.nuke.api import (
class LinkAsGroup(load.LoaderPlugin):
"""Copy the published file to be pasted at the desired location"""
representations = ["nk"]
families = ["workfile", "nukenodes"]
representations = ["*"]
extension = {"nk"}
label = "Load Precomp"
order = 0