mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
Illicit feedback
This commit is contained in:
parent
fd71818d46
commit
d8eb451887
4 changed files with 15 additions and 8 deletions
|
|
@ -28,9 +28,7 @@ class CollectHeadlessFarm(pyblish.api.ContextPlugin):
|
|||
|
||||
# Clear the families as we only want the main family, ei. no review
|
||||
# etc.
|
||||
instance.data["families"] = []
|
||||
instance.data["families"] = ["headless_farm"]
|
||||
|
||||
# Use the workfile instead of published.
|
||||
settings = instance.data["publish_attributes"]
|
||||
settings = settings["NukeSubmitDeadline"]
|
||||
settings["use_published_workfile"] = False
|
||||
instance.data["use_published_workfile"] = False
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ class ExtractHeadlessFarm(pyblish.api.InstancePlugin):
|
|||
order = pyblish.api.ExtractorOrder + 0.499
|
||||
label = "Extract Headless Farm"
|
||||
hosts = ["nuke"]
|
||||
families = ["headless_farm"]
|
||||
|
||||
def process(self, instance):
|
||||
if not instance.context.data.get("headless_farm", False):
|
||||
|
|
|
|||
|
|
@ -128,8 +128,11 @@ class NukeSubmitDeadline(pyblish.api.InstancePlugin,
|
|||
render_path = instance.data['path']
|
||||
script_path = context.data["currentFile"]
|
||||
|
||||
use_published_workfile = instance.data["attributeValues"].get(
|
||||
"use_published_workfile", self.use_published_workfile
|
||||
use_published_workfile = instance.data.get(
|
||||
"use_published_workfile",
|
||||
instance.data["attributeValues"].get(
|
||||
"use_published_workfile", self.use_published_workfile
|
||||
)
|
||||
)
|
||||
if use_published_workfile:
|
||||
script_path = self._get_published_workfile_path(context)
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
import pyblish.api
|
||||
from ayon_core.pipeline.publish import PublishValidationError
|
||||
from ayon_core.pipeline.publish import (
|
||||
PublishValidationError, OptionalPyblishPluginMixin
|
||||
)
|
||||
|
||||
|
||||
class ValidateVersion(pyblish.api.InstancePlugin):
|
||||
class ValidateVersion(pyblish.api.InstancePlugin, OptionalPyblishPluginMixin):
|
||||
"""Validate instance version.
|
||||
|
||||
AYON does not allow overwriting previously published versions.
|
||||
|
|
@ -18,6 +20,9 @@ class ValidateVersion(pyblish.api.InstancePlugin):
|
|||
active = True
|
||||
|
||||
def process(self, instance):
|
||||
if not self.is_active(instance.data):
|
||||
return
|
||||
|
||||
version = instance.data.get("version")
|
||||
latest_version = instance.data.get("latestVersion")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue