Skip to content

Commit

Permalink
Illicit feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
tokejepsen committed May 7, 2024
1 parent fd71818 commit d8eb451
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ def process(self, context):

# 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
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,11 @@ def process(self, instance):
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)
Expand Down
9 changes: 7 additions & 2 deletions client/ayon_core/plugins/publish/validate_version.py
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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")

Expand Down

0 comments on commit d8eb451

Please sign in to comment.