mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Allow enabling/disabling Attach Reviewables feature
This commit is contained in:
parent
1e651ece9c
commit
ce9970636f
2 changed files with 20 additions and 0 deletions
|
|
@ -26,6 +26,8 @@ class AttachReviewables(
|
|||
order = pyblish.api.IntegratorOrder - 0.499
|
||||
label = "Attach reviewables"
|
||||
|
||||
settings_category = "core"
|
||||
|
||||
def process(self, instance):
|
||||
# TODO: Support farm.
|
||||
# If instance is being submitted to the farm we should pass through
|
||||
|
|
|
|||
|
|
@ -12,6 +12,10 @@ from ayon_server.settings import (
|
|||
from ayon_server.types import ColorRGBA_uint8
|
||||
|
||||
|
||||
class EnabledModel(BaseSettingsModel):
|
||||
enabled: bool = SettingsField(True)
|
||||
|
||||
|
||||
class ValidateBaseModel(BaseSettingsModel):
|
||||
_isGroup = True
|
||||
enabled: bool = SettingsField(True)
|
||||
|
|
@ -1026,6 +1030,17 @@ class PublishPuginsModel(BaseSettingsModel):
|
|||
default_factory=IntegrateHeroVersionModel,
|
||||
title="Integrate Hero Version"
|
||||
)
|
||||
AttachReviewables: EnabledModel = SettingsField(
|
||||
default_factory=EnabledModel,
|
||||
title="Attach Reviewables",
|
||||
description=(
|
||||
"When enabled, expose an 'Attach Reviewables' attribute on review"
|
||||
" and render instances in the publisher to allow including the"
|
||||
" media to be attached to another instance.\n\n"
|
||||
"If a reviewable is attached to another instance it will not be "
|
||||
"published as a render/review product of its own."
|
||||
)
|
||||
)
|
||||
CleanUp: CleanUpModel = SettingsField(
|
||||
default_factory=CleanUpModel,
|
||||
title="Clean Up"
|
||||
|
|
@ -1410,6 +1425,9 @@ DEFAULT_PUBLISH_VALUES = {
|
|||
],
|
||||
"use_hardlinks": False
|
||||
},
|
||||
"AttachReviewables": {
|
||||
"enabled": True,
|
||||
},
|
||||
"CleanUp": {
|
||||
"paterns": [], # codespell:ignore paterns
|
||||
"remove_temp_renders": False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue