mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
OP-3684 - added default to Integrate Setting to skip render.farm
New publisher requires main family as 'render', so there will be need to skip 'render.farm' which should not be integrated during initial publish. (Currently only affecting AE.)
This commit is contained in:
parent
67b9946f20
commit
ef60744d9c
2 changed files with 16 additions and 6 deletions
|
|
@ -167,7 +167,7 @@ class IntegrateAsset(pyblish.api.InstancePlugin):
|
||||||
skip_host_families = []
|
skip_host_families = []
|
||||||
|
|
||||||
def process(self, instance):
|
def process(self, instance):
|
||||||
if self._temp_skip_instance_by_settings(instance):
|
if self.skip_instance_by_settings(instance):
|
||||||
return
|
return
|
||||||
|
|
||||||
# Mark instance as processed for legacy integrator
|
# Mark instance as processed for legacy integrator
|
||||||
|
|
@ -203,11 +203,12 @@ class IntegrateAsset(pyblish.api.InstancePlugin):
|
||||||
# the try, except.
|
# the try, except.
|
||||||
file_transactions.finalize()
|
file_transactions.finalize()
|
||||||
|
|
||||||
def _temp_skip_instance_by_settings(self, instance):
|
def skip_instance_by_settings(self, instance):
|
||||||
"""Decide if instance will be processed with new or legacy integrator.
|
"""Decide if instance will be processed with new integrator.
|
||||||
|
|
||||||
This is temporary solution until we test all usecases with new (this)
|
This might be temporary solution for broken publishing for any families
|
||||||
integrator plugin.
|
(therefore it should fallback into legacy publish plugin) OR this
|
||||||
|
could replace 'exclude_families' in legacy plugin (host is required).
|
||||||
"""
|
"""
|
||||||
|
|
||||||
host_name = instance.context.data["hostName"]
|
host_name = instance.context.data["hostName"]
|
||||||
|
|
|
||||||
|
|
@ -225,7 +225,16 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"IntegrateAsset": {
|
"IntegrateAsset": {
|
||||||
"skip_host_families": []
|
"skip_host_families": [
|
||||||
|
{
|
||||||
|
"host": [
|
||||||
|
"aftereffects"
|
||||||
|
],
|
||||||
|
"families": [
|
||||||
|
"render.farm"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"IntegrateHeroVersion": {
|
"IntegrateHeroVersion": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue