mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
fix(sp): adding "clip" family to better filter editorial instances
This commit is contained in:
parent
76a241afe9
commit
b7211626b0
3 changed files with 8 additions and 6 deletions
|
|
@ -17,13 +17,13 @@ class CollectClipInstances(pyblish.api.InstancePlugin):
|
||||||
subsets = {
|
subsets = {
|
||||||
"referenceMain": {
|
"referenceMain": {
|
||||||
"family": "review",
|
"family": "review",
|
||||||
"families": ["review", "ftrack"],
|
"families": ["clip", "ftrack"],
|
||||||
# "ftrackFamily": "review",
|
# "ftrackFamily": "review",
|
||||||
"extension": ".mp4"
|
"extension": ".mp4"
|
||||||
},
|
},
|
||||||
"audioMain": {
|
"audioMain": {
|
||||||
"family": "audio",
|
"family": "audio",
|
||||||
"families": ["ftrack"],
|
"families": ["clip", "ftrack"],
|
||||||
# "ftrackFamily": "audio",
|
# "ftrackFamily": "audio",
|
||||||
"extension": ".wav",
|
"extension": ".wav",
|
||||||
# "version": 1
|
# "version": 1
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ class ExtractShotData(pype.api.Extractor):
|
||||||
|
|
||||||
label = "Extract Shot Data"
|
label = "Extract Shot Data"
|
||||||
hosts = ["standalonepublisher"]
|
hosts = ["standalonepublisher"]
|
||||||
families = ["review", "audio"]
|
families = ["clip"]
|
||||||
|
|
||||||
# presets
|
# presets
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
import os
|
|
||||||
|
|
||||||
import pyblish.api
|
import pyblish.api
|
||||||
import pype.api
|
import pype.api
|
||||||
|
|
||||||
|
|
@ -9,10 +7,14 @@ class ValidateEditorialResources(pyblish.api.InstancePlugin):
|
||||||
|
|
||||||
label = "Validate Editorial Resources"
|
label = "Validate Editorial Resources"
|
||||||
hosts = ["standalonepublisher"]
|
hosts = ["standalonepublisher"]
|
||||||
families = ["audio", "review"]
|
families = ["clip"]
|
||||||
|
|
||||||
order = pype.api.ValidateContentsOrder
|
order = pype.api.ValidateContentsOrder
|
||||||
|
|
||||||
def process(self, instance):
|
def process(self, instance):
|
||||||
|
self.log.debug(
|
||||||
|
f"Instance: {instance}, Families: "
|
||||||
|
f"{[instance.data['family']] + instance.data['families']}")
|
||||||
check_file = instance.data["editorialVideoPath"]
|
check_file = instance.data["editorialVideoPath"]
|
||||||
msg = f"Missing \"{check_file}\"."
|
msg = f"Missing \"{check_file}\"."
|
||||||
assert check_file, msg
|
assert check_file, msg
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue