mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Merge pull request #591 from pypeclub/feature/maya-deadline-asset-dependencies-configurable
Maya: Deadline - make use of asset dependencies optional
This commit is contained in:
commit
e3609eefbc
1 changed files with 13 additions and 7 deletions
|
|
@ -262,6 +262,7 @@ class MayaSubmitDeadline(pyblish.api.InstancePlugin):
|
|||
|
||||
use_published = True
|
||||
tile_assembler_plugin = "PypeTileAssembler"
|
||||
asset_dependencies = False
|
||||
|
||||
def process(self, instance):
|
||||
"""Plugin entry point."""
|
||||
|
|
@ -417,9 +418,10 @@ class MayaSubmitDeadline(pyblish.api.InstancePlugin):
|
|||
# Adding file dependencies.
|
||||
dependencies = instance.context.data["fileDependencies"]
|
||||
dependencies.append(filepath)
|
||||
for dependency in dependencies:
|
||||
key = "AssetDependency" + str(dependencies.index(dependency))
|
||||
payload_skeleton["JobInfo"][key] = dependency
|
||||
if self.assembly_files:
|
||||
for dependency in dependencies:
|
||||
key = "AssetDependency" + str(dependencies.index(dependency))
|
||||
payload_skeleton["JobInfo"][key] = dependency
|
||||
|
||||
# Handle environments -----------------------------------------------
|
||||
# We need those to pass them to pype for it to set correct context
|
||||
|
|
@ -731,10 +733,14 @@ class MayaSubmitDeadline(pyblish.api.InstancePlugin):
|
|||
def _get_maya_payload(self, data):
|
||||
payload = copy.deepcopy(payload_skeleton)
|
||||
|
||||
job_info_ext = {
|
||||
# Asset dependency to wait for at least the scene file to sync.
|
||||
"AssetDependency0": data["filepath"],
|
||||
}
|
||||
if not self.asset_dependencies:
|
||||
job_info_ext = {}
|
||||
|
||||
else:
|
||||
job_info_ext = {
|
||||
# Asset dependency to wait for at least the scene file to sync.
|
||||
"AssetDependency0": data["filepath"],
|
||||
}
|
||||
|
||||
plugin_info = {
|
||||
"SceneFile": data["filepath"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue