mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Merge branch 'develop' into bugfix/houdini_usdrender_deadline_submission
This commit is contained in:
commit
b21498c8b2
6 changed files with 42 additions and 5 deletions
|
|
@ -3,14 +3,13 @@ import uuid
|
|||
|
||||
import ayon_api
|
||||
|
||||
from ayon_core.lib import NestedCacheItem, CacheItem
|
||||
from ayon_core.lib.events import QueuedEventSystem
|
||||
from ayon_core.pipeline import Anatomy, get_current_context
|
||||
from ayon_core.host import ILoadHost
|
||||
from ayon_core.tools.common_models import (
|
||||
ProjectsModel,
|
||||
HierarchyModel,
|
||||
NestedCacheItem,
|
||||
CacheItem,
|
||||
ThumbnailsModel,
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,36 @@
|
|||
from pathlib import Path
|
||||
|
||||
import pyblish.api
|
||||
|
||||
import bpy
|
||||
|
||||
|
||||
class CollectFileDependencies(pyblish.api.ContextPlugin):
|
||||
"""Gather all files referenced in this scene."""
|
||||
|
||||
label = "Collect File Dependencies"
|
||||
order = pyblish.api.CollectorOrder - 0.49
|
||||
hosts = ["blender"]
|
||||
families = ["render"]
|
||||
|
||||
@classmethod
|
||||
def apply_settings(cls, project_settings):
|
||||
# Disable plug-in if not used for deadline submission anyway
|
||||
settings = project_settings["deadline"]["publish"]["BlenderSubmitDeadline"] # noqa
|
||||
cls.enabled = settings.get("asset_dependencies", True)
|
||||
|
||||
def process(self, context):
|
||||
dependencies = set()
|
||||
|
||||
# Add alembic files as dependencies
|
||||
for cache in bpy.data.cache_files:
|
||||
dependencies.add(
|
||||
Path(bpy.path.abspath(cache.filepath)).resolve().as_posix())
|
||||
|
||||
# Add image files as dependencies
|
||||
for image in bpy.data.images:
|
||||
if image.filepath:
|
||||
dependencies.add(Path(
|
||||
bpy.path.abspath(image.filepath)).resolve().as_posix())
|
||||
|
||||
context.data["fileDependencies"] = list(dependencies)
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""Package declaring AYON addon 'blender' version."""
|
||||
__version__ = "0.2.0"
|
||||
__version__ = "0.2.1"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
name = "blender"
|
||||
title = "Blender"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
|
||||
client_dir = "ayon_blender"
|
||||
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ class BlenderSubmitDeadline(abstract_submit_deadline.AbstractSubmitDeadline,
|
|||
|
||||
return plugin_payload
|
||||
|
||||
def process_submission(self):
|
||||
def process_submission(self, auth=None):
|
||||
instance = self._instance
|
||||
|
||||
expected_files = instance.data["expectedFiles"]
|
||||
|
|
|
|||
|
|
@ -270,6 +270,7 @@ class BlenderSubmitDeadlineModel(BaseSettingsModel):
|
|||
optional: bool = SettingsField(title="Optional")
|
||||
active: bool = SettingsField(title="Active")
|
||||
use_published: bool = SettingsField(title="Use Published scene")
|
||||
asset_dependencies: bool = SettingsField(title="Use Asset dependencies")
|
||||
priority: int = SettingsField(title="Priority")
|
||||
chunk_size: int = SettingsField(title="Frame per Task")
|
||||
group: str = SettingsField("", title="Group Name")
|
||||
|
|
@ -413,6 +414,7 @@ DEFAULT_DEADLINE_PLUGINS_SETTINGS = {
|
|||
"optional": False,
|
||||
"active": True,
|
||||
"use_published": True,
|
||||
"asset_dependencies": True,
|
||||
"priority": 50,
|
||||
"chunk_size": 10,
|
||||
"group": "none",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue