mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
maya 'ValidateFrameRange' is handling AYON settings
This commit is contained in:
parent
bf4c8c7b3d
commit
a657dfac4e
2 changed files with 4 additions and 7 deletions
|
|
@ -39,7 +39,7 @@ class ValidateFrameRange(pyblish.api.InstancePlugin,
|
|||
"yeticache"]
|
||||
optional = True
|
||||
actions = [RepairAction]
|
||||
exclude_families = []
|
||||
exclude_product_types = []
|
||||
|
||||
def process(self, instance):
|
||||
if not self.is_active(instance.data):
|
||||
|
|
@ -73,7 +73,9 @@ class ValidateFrameRange(pyblish.api.InstancePlugin,
|
|||
|
||||
# compare with data on instance
|
||||
errors = []
|
||||
if [ef for ef in self.exclude_families
|
||||
# QUESTION shouldn't this be just:
|
||||
# 'if instance.data["family"] in self.exclude_product_types:'
|
||||
if [ef for ef in self.exclude_product_types
|
||||
if instance.data["family"] in ef]:
|
||||
return
|
||||
if (inst_start != frame_start_handle):
|
||||
|
|
|
|||
|
|
@ -336,11 +336,6 @@ def _convert_maya_project_settings(ayon_settings, output):
|
|||
# --- Publish (START) ---
|
||||
ayon_publish = ayon_maya["publish"]
|
||||
|
||||
validate_frame_range = ayon_publish["ValidateFrameRange"]
|
||||
if "exclude_product_types" in validate_frame_range:
|
||||
validate_frame_range["exclude_families"] = (
|
||||
validate_frame_range.pop("exclude_product_types"))
|
||||
|
||||
# Extract playblast capture settings
|
||||
validate_rendern_settings = ayon_publish["ValidateRenderSettings"]
|
||||
for key in (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue